.top-images {
  height: 300px;
}

.top-title {
  bottom: 35%;
}

.inner {
  max-width: 1000px;
}

.gallery-item {
  margin: 1% 0;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.gallery-item.show {
  opacity: 1;
}
.gallery-item.show .gallery-img:before {
  height: 0;
}
.gallery-item.show .gallery-info:after {
  width: 0%;
}
.gallery-item a {
  display: -ms-flexbox;
  display: flex;
}
.gallery-item:nth-child(even) a {
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}
.gallery-item:nth-child(even) .gallery-img {
  position: relative;
  -moz-transition: all 0.6s 0.6s;
  -o-transition: all 0.6s 0.6s;
  -webkit-transition: all 0.6s;
  -webkit-transition-delay: 0.6s;
  transition: all 0.6s 0.6s;
}
.gallery-item:nth-child(even) .gallery-img:before {
  top: 0;
  left: 0;
}
.gallery-item:nth-child(even) .gallery-info {
  margin-bottom: 33%;
  margin-right: 1%;
  position: relative;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-item:nth-child(even) .gallery-info:before {
  left: 50%;
}
.gallery-item:nth-child(even) .gallery-info:after {
  top: 0;
  left: 0;
}
.gallery-item:nth-child(even) .gallery-name:before {
  right: -6px;
}
.gallery-item:nth-child(odd) .gallery-img {
  position: relative;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-item:nth-child(odd) .gallery-img:before {
  bottom: 0;
  left: 0;
}
.gallery-item:nth-child(odd) .gallery-info {
  margin-top: 33%;
  margin-left: 1%;
  position: relative;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-item:nth-child(odd) .gallery-info:before {
  right: 50%;
}
.gallery-item:nth-child(odd) .gallery-info:after {
  top: 0;
  right: 0;
}
.gallery-item:nth-child(odd) .gallery-name:before {
  left: -6px;
}
.gallery-img {
  position: relative;
  width: 66%;
  overflow: hidden;
}
.gallery-img img {
  width: 100%;
  -moz-transition: -moz-transform 0.6s;
  -o-transition: -o-transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
}
.gallery-item:hover .gallery-img img {
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.gallery-img:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFF;
  z-index: 1;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-img:after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  border: #FFF solid 1px;
  opacity: 0.3;
}
.gallery-info {
  position: relative;
  width: 33%;
  background: #efefef;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.gallery-info:before {
  content: "";
  width: 50%;
  height: 1px;
  background: #746a6a;
  position: absolute;
  top: 50%;
  opacity: 0.3;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.gallery-item:hover .gallery-info:before {
  width: 70%;
}
.gallery-info:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFF;
  z-index: 1;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.gallery-name {
  position: relative;
  margin: auto;
  color: #000;
  background: #efefef;
  padding: 0 10px;
  max-width: 160px;
}
.gallery-name:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 50%;
  margin-top: -3px;
  background: #746a6a;
  border-radius: 50%;
}
.gallery-item:hover .gallery-name {
  color: #666;
}

@media screen and (max-width: 800px) {
  .gallery-item:nth-child(even) .gallery-info {
    margin-bottom: unset;
  }
  .gallery-item:nth-child(odd) .gallery-info {
    margin-top: unset;
  }
  .gallery-img {
    width: 50%;
  }
  .gallery-img:after {
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  .gallery-info {
    width: 50%;
  }
}
@media screen and (max-width: 640px) {
  .gallery-item {
    margin: 1% 0 8%;
  }
  .gallery-item.show .gallery-name {
    opacity: 1;
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  .gallery-item a {
    display: block;
  }
  .gallery-item:nth-child(even) .gallery-img:before {
    top: unset;
    bottom: 0;
    background: #efefef;
  }
  .gallery-item:nth-child(even) .gallery-info {
    margin-top: 3%;
    margin-right: unset;
  }
  .gallery-item:nth-child(even) .gallery-info:before {
    left: unset;
  }
  .gallery-item:nth-child(odd) .gallery-img:before {
    background: #efefef;
  }
  .gallery-item:nth-child(odd) .gallery-info {
    margin-top: 3%;
    margin-left: unset;
  }
  .gallery-item:nth-child(odd) .gallery-info:before {
    right: unset;
  }
  .gallery-item:nth-child(odd) .gallery-info:after {
    right: unset;
    left: 0;
  }
  .gallery-item:nth-child(odd) .gallery-name:before {
    left: unset;
    right: -6px;
  }
  .gallery-item:last-child {
    margin: 1% 0;
  }
  .gallery-img {
    width: 100%;
  }
  .gallery-info {
    width: 100%;
    background: #fff;
  }
  .gallery-info:before {
    width: 100%;
  }
  .gallery-name {
    margin: 0 auto 0 0;
    background: #fff;
    padding: 0 10px 0 0;
    z-index: 5;
    max-width: unset;
    opacity: 0;
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    -moz-transition: all 0.6s 0.3s;
    -o-transition: all 0.6s 0.3s;
    -webkit-transition: all 0.6s;
    -webkit-transition-delay: 0.3s;
    transition: all 0.6s 0.3s;
  }
}
