@-webkit-keyframes UpDown {
  0 {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes UpDown {
  0 {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.five-img-gallery {
  margin-top: -20px;
  overflow: hidden;
  padding-top: 20px;
  position: relative;
  width: 100%;
}

.five-img-gallery span,
.five-img-gallery img,
.five-img-gallery a {
  display: block;
}

.five-img-gallery img {
  height: 100%;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.five-img-gallery .images {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  max-width: 2115px;
}

.five-img-gallery .image {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: UpDown;
  animation-name: UpDown;
  color: #ffffff;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 423px;
  flex: 0 0 423px;
  font-size: 20px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  padding: 0 12.5px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  width: 20%;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .five-img-gallery .image {
    font-size: 16px;
  }
}

.five-img-gallery .image:nth-child(odd) {
  margin-top: 30px;
}

.five-img-gallery .image:nth-child(1) {
  -webkit-animation-duration: 7s;
  animation-duration: 7s;
}

.five-img-gallery .image:nth-child(2) {
  -webkit-animation-duration: 13s;
  animation-duration: 13s;
}

.five-img-gallery .image:nth-child(3) {
  -webkit-animation-duration: 10s;
  animation-duration: 10s;
}

.five-img-gallery .image:nth-child(4) {
  -webkit-animation-duration: 20s;
  animation-duration: 20s;
}

.five-img-gallery .image:nth-child(5) {
  -webkit-animation-duration: 9s;
  animation-duration: 9s;
}

.five-img-gallery .image-inner {
  position: relative;
  overflow: hidden;
}

.five-img-gallery .image-inner:before {
  content: '';
  display: block;
  padding-top: 69.095477387%;
  width: 100%;
}

.five-img-gallery .image-inner svg {
  bottom: 15px;
  fill: #FFFFFF;
  height: 25px;
  left: 15px;
  position: absolute;
  stroke-width: 0;
  stroke: #FFFFFF;
  width: auto;
}

.five-img-gallery .image-inner span {
  bottom: 0;
  left: 0;
  padding: 18.224%;
  position: absolute;
  width: 100%;
}

.five-img-gallery .image.has-text .image-inner:after {
  background-color: #000000;
  content: "";
  height: 100%;
  left: 0;
  opacity: 0.4;
  position: absolute;
  top: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
}

.five-img-gallery .image.has-text:hover .image-inner:after,
.five-img-gallery .image.has-text:focus .image-inner:after {
  opacity: 0;
}

@media (max-width: 1024px) {
  .five-img-gallery .image {
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  .five-img-gallery .image {
    -ms-flex: 0 0 239px;
    flex: 0 0 239px;
    padding: 0 7.5px;
  }
}
