.position-relative {
  position: relative;
}

.slider .item {
  position: relative;
  height: 100vh;
}

.slider .item .photo img {
  width: 100%;
}

.slider .item .overlay {
  position: absolute;
  top: 24%;
  left: 0;
  width: 100%;
  font-size: 100%;
  padding: 0 14%;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 5px #8b8b8b;
  /* font-family: 'Kurale', serif; */
}


.slider .item .overlay img {
  width: 100%;
  height: 100%;
}

.slider .owl-item.active .item .photo img {
  animation: mobileburns 30s infinite;
}

@media screen and (min-width: 800px) {
  .slider .owl-item.active .item .photo img {
    animation: kenburns 30s infinite;
  }
}

@media screen and (min-width: 1200px) {
  .slider .item .overlay {
    bottom: 20%;
    right: 10%;
    top: auto;
    left: auto;
    text-align: justify;
    padding: unset;
    width: 500px;
    font-size: 20px;
    font-family: serif; 
    font-style: italic;
  }

}

@keyframes kenburns {
  5% {
    transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
    animation-timing-function: ease-in;
  }

  45% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-100px, -30px, 0px);
    animation-timing-function: ease-in;
  }

  60% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-100px, -30px, 0px);
    animation-timing-function: ease-in;
  }

  100% {
    transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
    animation-timing-function: ease-in;
  }
}

@keyframes mobileburns {
  5% {
    transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
    animation-timing-function: ease-in;
  }

  65% {
    transform: scale3d(2.5, 2.5, 2.5) translate3d(-100px, -30px, 0px);
    animation-timing-function: ease-in;
  }

  80% {
    transform: scale3d(2.5, 2.5, 2.5) translate3d(-100px, -30px, 0px);
    animation-timing-function: ease-in;
  }

  100% {
    transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
    animation-timing-function: ease-in;
  }
}

@keyframes noburns {
  100% {
    transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
    animation-timing-function: ease-in;
  }
}