.header, .footer {
  display: none;
}

.gallery {
  position: relative;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -webkit-transition: all 1s;
  transition: all 1s;
}
.gallery:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #efefef;
  z-index: 1;
  top: 0;
  right: 0;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -webkit-transition: all 1s;
  transition: all 1s;
}
.gallery.show:before {
  width: 0;
}
.gallery-bg {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 45%;
  width: 100%;
  background: #efefef;
}
.gallery-title {
  position: fixed;
  bottom: 0;
  left: 20px;
  font-size: 1rem;
  font-weight: normal;
  color: #000;
  line-height: 40px;
}
.gallery-title:after {
  content: "";
  width: 50px;
  height: 1px;
  background: #da5b62;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 10px;
}
.gallery-info {
  position: fixed;
  right: 20px;
  bottom: 0;
  font-size: 0.875em;
  line-height: 40px;
  letter-spacing: 0.1em;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-info:hover {
  cursor: pointer;
  letter-spacing: 0.3em;
}
.gallery-info:before {
  content: "";
  width: 50px;
  height: 1px;
  background: #da5b62;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 10px;
}
.gallery-content {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: #efefef;
  z-index: 50;
  display: none;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-flow: column;
  flex-flow: column;
  opacity: 0;
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-content.active {
  display: flex;
}
.gallery-content.show {
  opacity: 1;
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.gallery-content p {
  width: 50%;
  max-width: 700px;
  padding: 30px 0 0;
  text-align: left;
  font-size: 0.875em;
}
.gallery-subtitle:after {
  content: "";
  width: 1px;
  height: 40px;
  background: #da5b62;
  display: block;
  margin: 20px auto 0;
}
.gallery-btn {
  border: 1px solid #746a6a;
  border-radius: 25px;
  width: 25px;
  height: 25px;
  margin-top: 50px;
  position: relative;
  -moz-transition: background 0.6s;
  -o-transition: background 0.6s;
  -webkit-transition: background 0.6s;
  transition: background 0.6s;
}
.gallery-btn span {
  width: 15px;
  height: 1px;
  background: #666;
  position: absolute;
  top: 50%;
  left: 20%;
  -moz-transition: background 0.6s, -moz-transform 0.3s;
  -o-transition: background 0.6s, -o-transform 0.3s;
  -webkit-transition: background 0.6s, -webkit-transform 0.3s;
  transition: background 0.6s, transform 0.3s;
}
.gallery-btn span:nth-child(1) {
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.gallery-btn span:nth-child(2) {
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.gallery-btn:hover {
  cursor: pointer;
  background: #746a6a;
}
.gallery-btn:hover span {
  background: #FFF;
}
.gallery-btn:hover span:nth-child(1) {
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}
.gallery-btn:hover span:nth-child(2) {
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.gallery-photos {
  position: relative;
  margin: 0 50px;
  top: 50px;
}
.gallery-num {
  position: fixed;
  bottom: 0;
  line-height: 40px;
  left: 50%;
  font-size: 0.875em;
  width: 150px;
  margin-left: -75px;
  text-align: center;
}
.gallery-next, .gallery-prev {
  position: fixed;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: #ccc solid 1px;
  text-align: center;
  line-height: 45px;
  margin-top: -21px;
  cursor: pointer;
}
.gallery-next:hover, .gallery-prev:hover {
  background: #efefef;
}
.gallery-next {
  right: 5px;
}
.gallery-prev {
  left: 5px;
}
.gallery-close {
  position: fixed;
  right: 5px;
  top: 1%;
  font-size: 0.875em;
  line-height: 28px;
  height: 24px;
  padding: 0 20px;
  border: #ccc solid 1px;
  border-radius: 10px 0 10px 0;
  overflow: hidden;
}
.gallery-close i {
  margin-right: 10px;
  -moz-transition: -moz-transform 0.6s;
  -o-transition: -o-transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
}
.gallery-close:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #FFF;
  z-index: -1;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.gallery-close:hover:before {
  width: 100%;
}
.gallery-close:hover i {
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

@media screen and (max-width: 1100px) {
  .gallery {
    text-align: center;
  }
  .gallery:before {
    display: none;
  }
  .gallery-title {
    position: relative;
    bottom: unset;
    top: 50px;
    left: 50px;
    text-align: left;
    -moz-transition: all 2s;
    -o-transition: all 2s;
    -webkit-transition: all 2s;
    transition: all 2s;
  }
  .gallery-title:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF;
    z-index: 1;
    top: 0;
    right: 0;
    -moz-transition: all 2s;
    -o-transition: all 2s;
    -webkit-transition: all 2s;
    transition: all 2s;
  }
  .gallery-title.show:before {
    width: 0;
  }
  .gallery-info {
    display: none;
  }
  .gallery-content {
    display: block;
    position: relative;
    z-index: unset;
    opacity: 1;
    background: unset;
    width: unset;
    margin: 100px 50px;
  }
  .gallery-content p {
    width: 100%;
    max-width: unset;
    padding: 20px 0 0;
    opacity: 0;
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    -moz-transition: all 0.6s;
    -o-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
  }
  .gallery-content p.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .gallery-subtitle {
    font-size: 0.875em;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    opacity: 0;
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    -moz-transition: all 0.6s;
    -o-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
  }
  .gallery-subtitle.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .gallery-subtitle:after {
    display: none;
  }
  .gallery-btn {
    display: none;
  }
  .gallery-photos {
    margin: 100px 50px;
    top: 0;
  }
  .gallery-photos img {
    width: 100%;
    margin: 3% 0;
    opacity: 0;
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -moz-transition: all 0.6s;
    -o-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
  }
  .gallery-photos img.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .gallery-photos img:nth-child(1) {
    margin-top: 0;
  }
  .gallery-photos img:last-child {
    margin-bottom: 0;
  }
  .gallery-num {
    display: none;
  }
  .gallery-control {
    display: none;
  }
  .gallery-close {
    position: relative;
    bottom: 50px;
    opacity: 0;
    -moz-transform: translateY(-40px);
    -ms-transform: translateY(-40px);
    -webkit-transform: translateY(-40px);
    transform: translateY(-40px);
    -moz-transition: all 0.6s;
    -o-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
  }
  .gallery-close.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@media screen and (max-width: 640px) {
  .gallery-title {
    left: 5%;
    top: 30px;
  }
  .gallery-content {
    margin: 50px 5%;
  }
  .gallery-photos {
    margin: 50px 5%;
  }
  .gallery-close {
    bottom: 22px;
  }
}
