/* Styles for image hover overlays on individual case studies pages */

.effects {
  padding-left: 0px;
  max-width: 100%;
}
.effects .img {
  position: relative;
  float: left;
  margin-bottom: 0px;
  width: 100%;
  overflow: hidden;
}
.effects .img:nth-child(n) {
  margin-right: 5px;
}
.effects .img:first-child {
  margin-left: 0px;
}
.effects .img:last-child {
  margin-right: 0;
}
.effects .img img {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.overlay {
  display: block;
  position: absolute;
  z-index: 20;
  width:100%;
  max-width:350px;
  background: rgba(56, 56, 56, 0.7);
  overflow: hidden;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

a.close-overlay {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  width: 45px;
  height: 45px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 45px;
  text-align: center;
  background-color: #000;
  cursor: pointer;
}
a.close-overlay.hidden {
  display: none;
}

a.expand {
  display: block;
  position: absolute;
  z-index: 100;
  width: 60px;
  height: 60px;
  border: solid 0px #fff;
  text-align: center;
  color: #fff;
  line-height: 26px;
  font-weight: 700;
  font-size: 16px;
  text-decoration:none;
  -webkit-border-radius: 22px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  border-radius: 20px;
}

a.expand span {
	text-decoration:underline;
	font-size:15px;
}

/* ============================================================
  EFFECT 1 - SLIDE IN BOTTOM
============================================================ */
.effect-1 .overlay {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}
.effect-1 .overlay a.expand {
  left: 0;
  right: 0;
  bottom: 50%;
  margin: 0 auto -30px auto;
}
.effect-1 .img.hover .overlay {
  height: 100%;
}

.effect-1 .img.hover .overlay a.expand, .effect-5 .img.visited .overlay a.expand {
  width: 300px;
  height: 170px;
  padding-top:60px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  border-radius: 0px;
  background-image:none;
  background-color:none;
}

/* ============================================================
  EFFECT 2 - SLIDE IN TOP
============================================================ */
.effect-2 .overlay {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}
.effect-2 .overlay a.expand {
  left: 0;
  right: 0;
  top: 50%;
  margin: -30px auto 0 auto;
}
.effect-2 .img.hover .overlay {
  height: 100%;
}

/* ============================================================
  EFFECT 3 - SLIDE IN LEFT
============================================================ */
#effect-3 .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
}
#effect-3 .overlay a.expand {
  top: 0;
  bottom: 0;
  left: 50%;
  margin: auto 0 auto -30px;
}
#effect-3 .img.hover .overlay {
  width: 100%;
}

/* ============================================================
  EFFECT 4 - SLIDE IN RIGHT
============================================================ */
#effect-4 .overlay {
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  height: 100%;
}
#effect-4 .overlay a.expand {
  top: 0;
  bottom: 0;
  right: 50%;
  margin: auto -30px auto 0;
}
#effect-4 .img {
  overflow: hidden;
}
#effect-4 .img.hover .overlay {
  width: 100%;
}

/* ============================================================
  EFFECT 5 - ICON BORDER ANIMATE
============================================================ */
.effect-5 .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  z-index:10000;
}
.effect-5 .overlay a.expand {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  border:none;
  outline:none;
}
.effect-5 .img.hover .overlay {
  opacity: 1;
}
.effect-5 .img.hover .overlay a.expand, .effect-5 .img.visited .overlay a.expand {
  width: 300px;
  height: 170px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  border-radius: 0px;
  background-image:none;
  background-color:none;
}

/* ============================================================
  EFFECT 6 - ICON BOUNCE IN
============================================================ */
#effect-6 .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}
#effect-6 .overlay a.expand {
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  opacity: 0;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
#effect-6 .img.hover .overlay {
  opacity: 1;
}
#effect-6 .img.hover .overlay a.expand {
  top: 50%;
  margin-top: -30px;
  opacity: 1;
  background-image:url('../images/symbols/mag-glass2.png');background-repeat:no-repeat;
}

/* ------------------------------------------------------------ *\
|* ------------------------------------------------------------ *|
|* Media Queries
|* ------------------------------------------------------------ *|
\* ------------------------------------------------------------ */
@media only screen and (max-width: 1100px) {
  .effects {
    padding-left: 5px;
  }
  .effects .img {
    width: 100%;
  }
  .effects .img:nth-child(n) {
    margin-right: 5px;
  }
  .effects .img:first-child {
    margin-left: 0;
  }
  .effects .img:nth-child(2n-1) {
    margin-left: -5px;
  }
  .effects .img:nth-child(2n) {
    margin-right: 0;
  }
  .effects .img:last-child {
    margin-right: 0;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
	a.expand {
		font-size:14px;
		/*margin-left:-12px !important;*/
		line-height:24px !important;
		padding:62px 11% 0px 4% !important;
		
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	a.expand {
		font-size:12px;
		margin-left:-12px !important;
		line-height:15px !important;
		padding-top:90px !important;
		padding-left:20px !important;
		padding-right:85px !important;
	}
	
	a.expand span {
		font-size:13px;
	}
}

@media (min-width: 700px) and (max-width: 767px) {   
	a.expand {
		font-size:12px;
		margin-left:-12px !important;
		line-height:14px !important;
		padding-top:90px !important;
		padding-left:15px !important;
		padding-right:95px !important;
	}
	
	a.expand span {
		font-size:13px;
	}
}

@media (max-width: 699px) { 
	.effects .img img {
    	margin: 0px auto 0px auto;
	}
	
	.effect-1 .overlay {
    	margin: 0px auto !important;
	}
	
}

@media (min-width: 350px) and (max-width: 399px) {
	a.expand {
		font-size:15px;
		line-height:22px !important;
		padding-top:70px !important;
		max-width:90%;
	}
	
	a.expand span {
		font-size:14px;
	}
	
	.effect-1 .overlay {
    	text-align:center;
		
	}
}

@media (min-width: 276px) and (max-width: 349px) {
	a.expand {
		font-size:13px;
		line-height:18px !important;
		padding-top:75px !important;
		max-width:90%;
	}
	
	a.expand span {
		font-size:12px;
	}
	
	.effect-1 .overlay {
    	text-align:center;
		
	}
}

@media (min-width: 0px) and (max-width: 275px) {
	a.expand {
		font-size:12px;
		line-height:14px !important;
		padding-top:80px !important;
		max-width:95%;
	}
	
	a.expand span {
		font-size:12px;
	}
	
	.effect-1 .overlay {
    	text-align:center;
		
	}
}

/* @media only screen and (max-width: 520px) {
  .effects .img {
    width: 100%;
  }
  .effects .img:nth-child(n) {
    margin-right: 0;
  }
  .effects .img:first-child {
    margin-left: 0;
  }
  .effects .img:nth-child(2n-1) {
    margin-left: 0;
  }
  .effects .img:nth-child(2n) {
    margin-right: 0;
  }
  .effects .img:last-child {
    margin-right: 0;
  }
  .effects .img img {
    margin: 0 auto;
  }
} */

