/* =========================================================
   KKF Ads Slider
   Version: 1.0.0
   ========================================================= */

.kkf-ads {
  --ads-sun: var(--kkf-sun, #f0522b);
  --ads-mango: var(--kkf-mango, #f7941d);
  --ads-ink: var(--kkf-ink, #17211f);

  position: relative;
  width: min(100%, 1120px);
  margin: 22px auto;
  font-family: var(--kkf-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
}

.kkf-ads *,
.kkf-ads *::before,
.kkf-ads *::after {
  box-sizing: border-box;
}

.kkf-ads-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f5f4;
  box-shadow:
    0 24px 60px -42px rgba(23, 33, 31, .58),
    0 4px 12px rgba(23, 33, 31, .04);
}

.kkf-ads-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3.2 / 1;
}

.kkf-ads-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity .5s ease,
    transform .7s cubic-bezier(.22, .61, .36, 1);
}

.kkf-ads-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.kkf-ads-link,
.kkf-ads-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.kkf-ads-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.kkf-ads-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  color: var(--ads-ink);
  cursor: pointer;
  box-shadow: 0 12px 32px -20px rgba(23, 33, 31, .65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}

.kkf-ads-arrow:hover {
  transform: scale(1.06);
  background: #fff;
}

.kkf-ads-arrow.is-prev {
  left: 14px;
}

.kkf-ads-arrow.is-next {
  right: 14px;
}

.kkf-ads-arrow span {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--arrow-icon) center / contain no-repeat;
  mask: var(--arrow-icon) center / contain no-repeat;
}

.kkf-ads-arrow.is-prev span {
  --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E");
}

.kkf-ads-arrow.is-next span {
  --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
}

.kkf-ads-dots {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(23, 33, 31, .24);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.kkf-ads-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}

.kkf-ads-dot.is-active {
  width: 22px;
  background: #fff;
}

@media (max-width: 700px) {
  .kkf-ads {
    margin: 16px auto;
  }

  .kkf-ads-viewport {
    border-radius: 18px;
  }

  .kkf-ads-track {
    aspect-ratio: 1.9 / 1;
  }

  .kkf-ads-arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .kkf-ads-arrow.is-prev {
    left: 9px;
  }

  .kkf-ads-arrow.is-next {
    right: 9px;
  }

  .kkf-ads-dots {
    bottom: 9px;
  }
}

@media (max-width: 480px) {
  .kkf-ads-track {
    aspect-ratio: 1.55 / 1;
  }

  .kkf-ads-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkf-ads-slide,
  .kkf-ads-arrow,
  .kkf-ads-dot {
    transition: none !important;
  }
}
