/* ============================================================
  GLOBAL
============================================================ */
/* ============================================================
  EFFECTS
	1 - SLIDE IN BOTTOM 		.effect-sib;
	2 - SLIDE IN TOP 			.effect-sit;
	3 - SLIDE IN LEFT 			.effect-sil;
	4 - SLIDE IN RIGHT 			.effect-sir;
	5 - ICON BORDER ANIMATE 	.effect-iba;
	6 - ICON BOUNCE IN 			.effect-ibi;
============================================================ */
.ioverlay {
  padding-left: 0px;
  margin-bottom: 8px;
  -webkit-box-shadow: 3px 3px 5px 0px #000000;
  box-shadow: 3px 3px 5px 0px #000000;
  /* ============================================================
  EFFECT 1 - SLIDE IN BOTTOM 		.effect-sib;
 ============================================================ */
  /* ============================================================
  EFFECT 2 - SLIDE IN TOP 			.effect-sit;
 ============================================================ */
  /* ============================================================
  EFFECT 3 - SLIDE IN LEFT 			.effect-sil;
 ============================================================ */
  /* ============================================================
  EFFECT 4 - SLIDE IN RIGHT 			.effect-sir;
 ============================================================ */
  /* ============================================================
  EFFECT 5 - ICON BORDER ANIMATE 	.effect-iba;
 ============================================================ */
  /* ============================================================
  EFFECT 6 - ICON BOUNCE IN 			.effect-ibi;
 ============================================================ */
}

.ioverlay .img {
  position: relative;
  float: left;
  margin-bottom: 0px;
  /*width: 25%;*/
  min-width: 100%;
  overflow: hidden;
  border-radius: 0.3em;
}

.ioverlay .img:nth-child(n) {
  margin-right: 0px;
}

.ioverlay .img:first-child {
  margin-left: 0px;
}

.ioverlay .img:last-child {
  margin-right: 0;
}

.ioverlay .img img {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.ioverlay .overlay {
  display: block;
  position: absolute;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ioverlay a {
  text-decoration: none;
}

.ioverlay 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;
}

.ioverlay a.close-overlay.hidden {
  display: none;
}

.ioverlay a.expand {
  display: block;
  position: absolute;
  z-index: 100;
  width: 60px;
  height: 60px;
  border: solid 3px #fff;
  text-align: center;
  color: #fff;
  line-height: 54px;
  font-weight: 700;
  font-size: 30px;
  border-radius: 30px;
}

.ioverlay.effect-sib .overlay {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}

.ioverlay.effect-sib .overlay a.expand {
  left: 0;
  right: 0;
  bottom: 50%;
  margin: 0 auto-30px auto;
}

.ioverlay.effect-sib .img.hover .overlay {
  height: 100%;
}

.ioverlay.effect-sit .overlay {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}

.ioverlay.effect-sit .overlay a.expand {
  left: 0;
  right: 0;
  top: 50%;
  margin: -30px auto 0 auto;
}

.ioverlay.effect-sit .img.hover .overlay {
  height: 100%;
}

.ioverlay.effect-sil .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
}

.ioverlay.effect-sil .overlay a.expand {
  top: 0;
  bottom: 0;
  left: 50%;
  margin: auto 0 auto-30px;
}

.ioverlay.effect-sil .img.hover .overlay {
  width: 100%;
}

.ioverlay.effect-sir .overlay {
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  height: 100%;
}

.ioverlay.effect-sir .overlay a.expand {
  top: 0;
  bottom: 0;
  right: 50%;
  margin: auto-30px auto 0;
}

.ioverlay.effect-sir .img.hover .overlay {
  width: 100%;
}

.ioverlay.effect-iba .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.ioverlay.effect-iba .overlay a.expand {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 0.5em;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ioverlay.effect-iba .img.hover .overlay {
  opacity: 1;
}

.ioverlay.effect-iba .img.hover .overlay a.expand {
  width: 60px;
  height: 60px;
  border-radius: 30px;
}

.ioverlay.effect-ibi .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.ioverlay.effect-ibi .overlay a.expand {
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  opacity: 0;
  border-radius: all 0.5s;
}

.ioverlay.effect-ibi .img.hover .overlay {
  opacity: 1;
}

.ioverlay.effect-ibi .img.hover .overlay a.expand {
  top: 50%;
  margin-top: -30px;
  opacity: 1;
}

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

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