/* ============================================================
  GLOBAL
============================================================ */
.ioeffects {
  padding-left: 15px;
}
.ioeffects .ioimg {
  position: relative;
  float: left;
  margin-bottom: 5px;
  overflow: hidden;
  width: 100%;
}
.ioeffects .ioimg:nth-child(n) {
  margin-right: 5px;
}
.ioeffects .ioimg:first-child {
  margin-left: -15px;
}
.ioeffects .ioimg:last-child {
  margin-right: 0;
}
.ioeffects .ioimg img {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.iooverlay {
  display: block;
  position: absolute;
  z-index: 20;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

a.ioclose-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.ioclose-overlay.iohidden {
  display: none;
}

a.ioexpand {
  display: block;
  position: absolute;
  z-index: 100;
  width: 60px;
  height: 60px;
  border: solid 5px #fff;
  text-align: center;
  color: #fff;
  line-height: 50px;
  font-weight: 700;
  font-size: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
  border-radius: 30px;
}

/* ============================================================
  EFFECT 1 - SLIDE IN BOTTOM
============================================================ */
#ioeffect-1 .iooverlay {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}
#ioeffect-1 .iooverlay a.ioexpand {
  left: 0;
  right: 0;
  bottom: 50%;
  margin: 0 auto -30px auto;
}
#ioeffect-1 .ioimg.iohover .iooverlay {
  height: 100%;
}

/* ============================================================
  EFFECT 2 - SLIDE IN TOP
============================================================ */
#ioeffect-2 .iooverlay {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}
#ioeffect-2 .iooverlay a.ioexpand {
  left: 0;
  right: 0;
  top: 50%;
  margin: -30px auto 0 auto;
}
#ioeffect-2 .ioimg.iohover .iooverlay {
  height: 100%;
}

/* ============================================================
  EFFECT 3 - SLIDE IN LEFT
============================================================ */
#ioeffect-3 .iooverlay {
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 100%;
}
#ioeffect-3 .iooverlay a.ioexpand {
  top: 0;
  bottom: 0;
  left: 50%;
  margin: auto 0 auto -30px;
}
#ioeffect-3 .ioimg.iohover .iooverlay {
  width: 100%;
}

/* ============================================================
  EFFECT 4 - SLIDE IN RIGHT
============================================================ */
#ioeffect-4 .iooverlay {
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  height: 100%;
}
#ioeffect-4 .iooverlay a.ioexpand {
  top: 0;
  bottom: 0;
  right: 50%;
  margin: auto -30px auto 0;
}
#ioeffect-4 .ioimg {
  overflow: hidden;
}
#ioeffect-4 .ioimg.iohover .iooverlay {
  width: 100%;
}

/* ============================================================
  EFFECT 5 - ICON BORDER ANIMATE
============================================================ */
#ioeffect-5 .iooverlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}
#ioeffect-5 .iooverlay a.ioexpand {
  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;
}
#ioeffect-5 .ioimg.iohover .iooverlay {
  opacity: 1;
}
#ioeffect-5 .ioimg.iohover .iooverlay a.ioexpand {
  width: 60px;
  height: 60px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
  border-radius: 30px;
}

/* ============================================================
  EFFECT 6 - ICON BOUNCE IN
============================================================ */
#ioeffect-6 .iooverlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}
#ioeffect-6 .iooverlay a.ioexpand {
  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;
}
#ioeffect-6 .ioimg.iohover .iooverlay {
  opacity: 1;
}
#ioeffect-6 .ioimg.iohover .iooverlay a.ioexpand {
  top: 50%;
  margin-top: -30px;
  opacity: 1;
}

/* ------------------------------------------------------------ *\
|* ------------------------------------------------------------ *|
|* Media Queries
|* ------------------------------------------------------------ *|
\* ------------------------------------------------------------ */
@media only screen and (max-width: 1100px) {
  .ioeffects {
    padding-left: 5px;
  }
  .ioeffects .ioimg {
    width: 50%;
  }
  .ioeffects .ioimg:nth-child(n) {
    margin-right: 5px;
  }
  .ioeffects .ioimg:first-child {
    margin-left: 0;
  }
  .ioeffects .ioimg:nth-child(2n-1) {
    margin-left: -5px;
  }
  .ioeffects .ioimg:nth-child(2n) {
    margin-right: 0;
  }
  .ioeffects .ioimg:last-child {
    margin-right: 0;
  }
}
@media only screen and (max-width: 520px) {
  .ioeffects .ioimg {
    width: 100%;
  }
  .ioeffects .ioimg:nth-child(n) {
    margin-right: 0;
  }
  .ioeffects .ioimg:first-child {
    margin-left: 0;
  }
  .ioeffects .ioimg:nth-child(2n-1) {
    margin-left: 0;
  }
  .ioeffects .ioimg:nth-child(2n) {
    margin-right: 0;
  }
  .ioeffects .ioimg:last-child {
    margin-right: 0;
  }
  .ioeffects .ioimg img {
    margin: 0 auto;
  }
}
