/*------------------------------------------------------*/
/*---------------------- 18. KENBURNS SLIDER ----------------------*/

.kenburns-wrap.fade-effect .kenburns div.img,
.kenburns-wrap.fade-effect .kenburns div.img.active {
  -webkit-transform: scale(1) !important;
  transform: scale(1) !important;
}

$caption-animation-duration: 500ms;

.kenburns {
  height: 100vh;

  .item-ken {
    .img {
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat;
      height: 100%;
      width: 100%;
      -webkit-transition: transform 6s ease-in, opacity 1s ease-in;
      transition: transform 6s ease-in, opacity 1s ease-in;
      opacity: 0;
    }

    &:nth-child(even) .img {
      -webkit-transform: scale(1.2);
      transform: scale(1.2);
    }

    &:nth-child(odd) .img {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    &.active {
      .img.zoomin {
        opacity: 1;
      }
      .caption {
        opacity: 1;
        -webkit-transition-delay: $caption-animation-duration + 100ms;
        transition-delay: $caption-animation-duration + 100ms;
      }
      .img.zoomout {
        opacity: 1;
      }
    }
  }
}

.kenburns-wrap {
  position: relative;
  cursor: url(../img/cursor-pause.png), auto;
  min-height: 70vh;
  .but-eye-wrap{
    cursor: pointer;
    position: absolute;
    background-color: transparent;
    bottom: 180px;
    right: 100px;
    height: 45px;
    width: 45px;
    border-radius: 0;
    border: none;
    -webkit-transition: all 350ms ease;
    -moz-transition: all 350ms ease;
    -ms-transition: all 350ms ease;
    -o-transition: all 350ms ease;
    transition: all 350ms ease;
    &:hover{
      opacity: .7;
    }
    i{
      position: absolute;
      color: #ffffff;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      font-size: 16px;
      line-height: 40px;
      text-align: center;
      display: block;
      -webkit-transition: all 0.3s ease;
      transition: all 0.3s ease;
    }
    &.active i::before{
      content: '\f070';
    }
  }

  &.pause {
    cursor: url(../img/cursor_play.png), auto;
  }
  .item-ken {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  .caption {
    font-size: 70px;
    font-family: "Open Sans", sans-serif;
    color: #fff;
    line-height: 1.2;
    font-weight: bold;
    position: absolute;
    left: 100px;
    width: -webkit-calc(100% - 250px);
    width: calc(100% - 250px);
    opacity: 0;
    z-index: 100;
    -webkit-transition: opacity $caption-animation-duration linear;
    transition: opacity $caption-animation-duration linear;
  }
  .kenburns-play {
    display: none;
  }
  .awa-sound-btn {
    position: absolute;
    background-color: transparent;
    bottom: 90px;
    right: 100px;
    height: 45px;
    width: 45px;
    border-radius: 0;
    border: none;
    z-index: 999999;
    &:before {
      content: '\f026';
      position: absolute;
      color: #ffffff;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      font-family: 'FontAwesome', sans-serif;
      font-size: 16px;
      line-height: 40px;
      display: block;
      -webkit-transition: all 0.3s ease;
      transition: all 0.3s ease;
    }
    &.play {
      &::before {
        content: '\f028';
      }
    }
    &:hover {
      background-color: transparent;
    }
  }
}

.kenburns-play {
  position: absolute;
  right: 60px;
  bottom: 80px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  height: 45px;
  width: 45px;
  border-radius: 0;
  border-color: transparent;
  z-index: 9999;
  cursor: pointer;
  &::before {
    content: "\f04b";
    font-family: "FontAwesome";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 53%;
    font-size: 14px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  &.pause::before {
    content: "\f04c";
    left: 50%;
  }
}

@media only screen and (max-width: 991px) {
  .kenburns-wrap .caption {
    font-size: 55px;
  }
}

@media only screen and (max-width: 767px) {
  .kenburns-wrap .caption {
    font-size: 35px;
    left: 30px;
    text-align: center;
    width: -webkit-calc(100% - 80px);
    width: calc(100% - 80px);
  }
  .kenburns-wrap .but-eye-wrap,
  .kenburns-wrap .awa-sound-btn {
    right: 13px;
    bottom: 80px!important;
  }
}

.kenburning-container {
  position: relative;
  overflow: hidden
}

.kenburning-container .img {
  position: absolute;
  max-width: none;
  top: 0;
  left: 0;
  z-index: 6;
  opacity: 0;
  transform: scale(1)
}

.kenburning-container .img.active {
  z-index: 10
}

.kenburning-container .img.last-active {
  z-index: 9
}
