/* ==========================================================================
   Case Studies Grid Discreet Styles
   ========================================================================== */

.case-study-page {
	border-bottom: 1px solid #000;
	padding-bottom: 4rem !important;
	padding-left: 0 !important;
  padding-top: 5rem !important;
}
.case-study-page .grid,
.case-study-page .grid2 {
    margin: 0 0 0 7vw;
}
.grid,
.grid2 {
  background: none;
  clear: both;
  margin: 0 auto;
  max-width: 1640px;
}


.grid-item.case_studies.hidden,
.grid-item2.before_after.hidden {
  visibility:hidden;
  width:0px!important;
  height:0px!important;
  margin:0px!important;
  padding:0px!important;
}
.grid-item.case_studies,
.grid-item2.before_after {
  float: left;
  height: 26vw;
  width: 26vw;
  margin: 0 0 16px;
  max-width: 350px;
  max-height: 350px;

}
/*
.grid-item.case_studies .overlay-info {
    align-items: center;
	display: flex;
    font-family: superior-title, Georgia, serif;
    height: 100%;
    justify-content: center;
    margin: 0;
    position: relative;
    text-align: unset;
    vertical-align: unset;
    width: 100%;
}
*/
.grid-item.case_studies img,
.grid-item2.before_after img {
  color: transparent;
  height: 100%;
  width: 100%;
}
.grid-item.case_studies .overlay-info h2,
.grid-item2.before_after .overlay-info h2 {
  font-size: 2rem;
  letter-spacing: 0.1rem;
  line-height: 3rem;
}

@media only screen and (min-width: 420px) {
	.case-study-page .grid,
  .case-study-page .grid2 {
    	margin: 0 0 0 7vw;
	}
}
@media only screen and (min-width: 540px) {
	.case-study-page .grid,
  .case-study-page .grid2 {
    	margin: 0 0 0 7vw;
	}
}
@media only screen and (min-width: 767px) {
	.grid-item.case_studies,
  .grid-item2.before_after {
	  height: 27vw;
	  width: 27vw;
	}
	.grid-item.case_studies .overlay-info h2,
  .grid-item2.before_after .overlay-info h2 {
	  font-size: 2.5rem;
	  line-height: 3.5rem;
	}	
	.case-study-page .grid
  .case-study-page .grid2 {
    	margin: 0 0 0 6vw;
	}
}
@media only screen and (min-width: 1000px) {
	.grid-item.case_studies,
  .grid-item2.before_after {
	  height: 28vw;
	  width: 28vw;
	}
	.grid-item.case_studies .overlay-info h2,
  .grid-item2.before_after .overlay-info h2 {
	  font-size: 3rem;
	  line-height: 4rem;
	}	
}
@media only screen and (min-width: 1140px) {
	.case-study-page .grid,
  .case-study-page .grid2 {
	    margin: 0;
	}
}
.load-more-container,
.alm-btn-wrap {
  margin-top: 4rem;
  text-align: center;
}
.btn-case-load-more,
.alm-load-more-btn {
  background-color: transparent;
  background-image: url("/wp-content/uploads/2022/06/more-down-arrow.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  border: none;
  color: #888159;
  font-weight: 700;
  padding-bottom: 3rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.btn-case-load-more:hover,
.alm-load-more-btn:hover {
	background-image: url("/wp-content/uploads/2022/11/more-down-arrow-w.svg");
	color: #FFFFFF;
}
.grid-item.case_studies:nth-of-type(n+7) img[src=""],
.grid-item.case_studies:nth-of-type(n+7) img:not([src]) {
  visibility: hidden;
}

.overlay-info {
    display: flex;
    font-family: superior-title, Georgia, serif;
    height: 100%;
    margin: 0;
    position: relative;
    /* text-align: center; */
    /* vertical-align: top; */
    width: 100%;
    justify-content: center;
    align-items: center;
}