.image-gallery .image-item {
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-gallery .image-item img {
  transition: all 0.5s ease-in-out;
}
.image-gallery .image-item i {
  opacity: 0;
  position: absolute;
  color: #FFF;
  z-index: 10;
  font-size: 22px;
  transition: all 0.4s ease-in-out;
}
.image-gallery .image-item:hover:after {
  transform: scale(1);
  opacity: 1;
}
.image-gallery .image-item:hover img {
  transform: scale(1.2);
}
.image-gallery .image-item:hover i {
  opacity: 1;
}
.image-gallery .image-item:after {
  content: " ";
  transition: all 0.4s ease-in-out;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 11, 11, 0.8);
  opacity: 0;
  transform: scale(0.8);
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: .75;
    left: -1em;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: .75;
    left: -1em;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: .75;
    left: -1em;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@Keyframes fadeIn {
  0% {
    opacity: .75;
    left: -1em;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.mfp-figure {
  -webkit-animation-name: fadeIn;
  -moz-animation-name: fadeIn;
  -o-animation-name: fadeIn;
  animation-name: fadeIn;
  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
  -ms-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  -ms-animation-fill-mode: both;
  -o-animation-fill-mode: both;
  animation-fill-mode: both;
}

.horizontal-gallery {
  padding-top: 15px;
}
.horizontal-gallery .image-item {
  height: 500px;
  margin: 0 15px 15px 15px;
}