@charset "utf-8";
/*==================================================

Gallery
==================================================*/
#gallery .gallery-content {
  background: #faffde;
  text-align: center;
}
#gallery .gallery-content h2 {
  margin: 40px auto 0;
  max-width: 270px;
}
#gallery .gallery-content h2 + p {
  margin: 60px 0 80px;
}
#gallery .gallery-content .image-wrapper {
  display: flex;
  flex-wrap: wrap;
}
#gallery .gallery-content .image-wrapper figure {
  flex: 0 1 50%;
  padding: 0 20px 0 0;
  margin-bottom: 50px;
}
#gallery .gallery-content .image-wrapper figure img {
  opacity: 0;
}
#gallery .gallery-content .image-wrapper .inview img {
  opacity: 1;
}
#gallery .gallery-content .image-wrapper .onScreen img {
  opacity: 0;
  transform: translateY(2em);
  animation: onScreen 0.7s 0.1s forwards;
}
@keyframes onScreen {
  from {
    opacity: 0;
    transform: translateY(2em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#gallery .gallery-content .image-wrapper figure img {
  cursor: pointer;
}
#gallery .gallery-content .image-wrapper figure:nth-child(even) {
  padding: 0 0 0 20px;
}
#gallery .gallery-content .image-wrapper figure figcaption {
  text-align: left;
  margin-top: 20px;
  display: none;
}
#gallery .gallery-content .viewmore {
  display: block;
  margin: 30px auto;
  width: 200px;
  height: 50px;
  line-height: 48px;
  border-radius: 1000px;
  border: 1px solid #7ad1bc;
  background: #fff;
  color: #7ad1bc;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
#gallery .gallery-content .viewmore:hover {
  border: 1px solid #7ad1bc;
  background: #7ad1bc;
  color: #fff;
}
#gallery .lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45%;
  height: 100%;
  padding: 30px;
  position: fixed;
  left: 0;
  top: 0;
  color: #fff;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
  transform-origin: center center;
  transition: all 0.3s;
}
#gallery .lightbox.active {
  z-index: 10;
  opacity: 1;
}
#gallery .lightbox .mask {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #000;
  opacity: 0.4;
  z-index: 0;
}
#gallery .lightbox .inner {
  position: relative;
  z-index: 1;
  transition: all 1s;
  transform: translateY(3%);
  opacity: 0;
}
#gallery .lightbox.active .inner {
  transform: translateY(0);
  opacity: 1;
}
#gallery .lightbox .inner i {
  display: block;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: right;
}
#gallery .lightbox .inner p {
  margin-top: 20px;
}
@media only screen and (max-width: 768px) {
  #gallery .gallery-content h2 {
    max-width: 260px;
    margin: 80px auto 0;
  }
  #gallery .gallery-content h2 + p {
    margin: 50px 0 60px;
    text-align: left;
    display: inline-block;
  }
  #gallery .gallery-content .image-wrapper figure img {
    pointer-events: none;
    width: 100%;
  }
  #gallery .gallery-content .image-wrapper figure figcaption {
    display: block;
  }
  #gallery .gallery-content .viewmore {
    margin-top: 0;
    background: #FFF !important;
    color: #7ad1bc !important;
  }
  #gallery .lightbox {
    display: none;
  }
}
@media only screen and (max-width: 560px) {
  #gallery .gallery-content .image-wrapper figure {
    flex: 1 1 100%;
    padding: 0 !important;
    margin-bottom: 80px;
  }
}