/* ============================================================
  NAVIGATION
============================================================ */

/* ============================================================
  GLOBAL
============================================================ */
#scene{
  width: 100%;
}

.col-4{
  width: 25%
}
.wrapper:after{
content: '';
clear: both;
display: block;
}


.effects .item {
  position: relative;
  float: left;
  margin-bottom: 0;
  overflow: hidden;
}

.effects .item:last-child {
  margin-right: 0;
}
.effects .item img {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.overlay {
  display: block;
  position: absolute;
  z-index: 5;
  background: rgba(186, 222, 213, 0.8);
  overflow: hidden;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
.overlay a{
text-decoration: none;
}

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

p.expand {
  display: block;
  position: absolute;
  z-index: 100;
  /*width: 60px;
  height: 60px;
  border: solid 5px #fff;*/
  text-align: center;
  color: #867158;
  line-height: 35px;
  font-weight: 100;
  font-size: 22px;
  letter-spacing: 3px;
  padding: 0 50px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
  border-radius: 30px;
}

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

/* ============================================================
  EFFECT 2 - SLIDE IN TOP
============================================================ */
#effect-2 .overlay {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}
#effect-2 .overlay p.expand {
  left: 0;
  right: 0;
  top: 50%;
  margin: -30px auto 0 auto;
}
#effect-2 .item.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 p.expand {
  top: 0;
  bottom: 0;
  left: 50%;
  margin: auto 0 auto -30px;
}
#effect-3 .item.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 p.expand {
  top: 0;
  bottom: 0;
  right: 50%;
  margin: auto -30px auto 0;
}
#effect-4 .item {
  overflow: hidden;
}
#effect-4 .item.hover .overlay {
  width: 100%;
}

/* ============================================================
  EFFECT 5 - ICON BORDER ANIMATE
============================================================ */
#effect-5 .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}
#effect-5 .overlay p.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;
}
#effect-5 .item.hover .overlay {
  opacity: 1;
}
#effect-5 .item.hover .overlay p.expand {
  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
============================================================ */
#effect-6 .overlay {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}
#effect-6 .overlay p.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 .item.hover .overlay {
  opacity: 1;
}
#effect-6 .item.hover .overlay p.expand {
  top: 50%;
  margin-top: -35px;
  opacity: 1;
}
  .effects .item h4 {
    display: none;
  }

/* ------------------------------------------------------------ *\
|* ------------------------------------------------------------ *|
|* Media Queries
|* ------------------------------------------------------------ *|
\* ------------------------------------------------------------ */
@media only screen and (max-width: 980px) {
.col-4{
  width: 50%
}

  .effects {
    padding-left: 0px;
    padding-top: 0;
    position: relative;
    background-color: white;
  }
  .effects .item:nth-child(n) {
    margin-right: 5px;
  }
  .effects .item:first-child {
    margin-left: 0;
  }
  .effects .item:nth-child(2n-1) {
    margin-left: -5px;
  }
  .effects .item:nth-child(2n) {
    margin-right: 0;
  }
  .effects .item:last-child {
    margin-right: 0;
  }
  .effects .item h4 {
    display: block;
    margin: 10px auto 20px;
	  padding: 0 15px;
	  box-sizing: border-box;
  }


p.expand {
  font-size: 18px;
}
}
@media only screen and (max-width: 520px) {
  .effects .item {
    width: 100%;    background-color: white;
  }
  .effects .item:nth-child(n) {
    margin-right: 0;
  }
  .effects .item:first-child {
    margin-left: 0;
  }
  .effects .item:nth-child(2n-1) {
    margin-left: 0;
  }
  .effects .item:nth-child(2n) {
    margin-right: 0;
  }
  .effects .item:last-child {
    margin-right: 0;
  }
  .effects .item img {
    margin: 0 auto;
  }
  .effects .item h4 {
    margin: 10px auto 20px;
	 padding: 0 15px;
	 box-sizing: border-box;
	  font-size: 20px;
	  text-align: center;
  }
  
}
