.kzphc-carousel,
.kzphc-carousel * {
  box-sizing: border-box;
}

.kzphc-carousel {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}

.kzphc-viewport,
.kzphc-track,
.kzphc-slide,
.kzphc-slide-link {
  width: 100%;
  height: 100%;
}

.kzphc-viewport {
  position: relative;
  overflow: hidden;
}

.kzphc-track {
  display: flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.kzphc-slide {
  position: relative;
  min-width: 100%;
  flex: 0 0 100%;
  overflow: hidden;
}

.kzphc-slide.kzphc-clone {
  pointer-events: none;
}

.kzphc-slide-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.kzphc-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translateZ(0);
}

.kzphc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--kzphc-overlay-top, rgba(0, 0, 0, 0.18)) 0%,
    var(--kzphc-overlay-middle, rgba(0, 0, 0, 0)) 45%,
    var(--kzphc-overlay-bottom, rgba(0, 0, 0, 0.42)) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.kzphc-no-overlay .kzphc-slide::after {
  display: none;
}

.kzphc-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 40px 60px 60px;
  color: #fff;
  pointer-events: none;
}

.kzphc-eyebrow {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kzphc-title {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
}

.kzphc-description {
  max-width: 620px;
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.55;
}

.kzphc-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  appearance: none;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
}

.kzphc-arrow:hover {
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.kzphc-arrow:focus-visible,
.kzphc-dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.kzphc-arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.kzphc-arrow i {
  font-size: 16px;
  line-height: 1;
}

.kzphc-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.kzphc-arrow-prev {
  left: 24px;
}

.kzphc-arrow-next {
  right: 24px;
}

.kzphc-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.kzphc-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  appearance: none;
}

.kzphc-dot.is-active {
  width: 26px;
  background: #fff;
}

.kzphc-carousel[data-kzphc-effect="fade"] .kzphc-track,
.kzphc-effect-fade .kzphc-track {
  display: block;
  transform: none !important;
}

.kzphc-effect-fade .kzphc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-timing-function: ease;
}

.kzphc-effect-fade .kzphc-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

@media (max-width: 1024px) {
  .kzphc-carousel {
    height: 550px;
  }
}

@media (max-width: 767px) {
  .kzphc-carousel {
    height: 400px;
  }

  .kzphc-content {
    padding: 28px 24px 52px;
  }

  .kzphc-arrow {
    width: 36px;
    height: 36px;
  }

  .kzphc-arrow-prev {
    left: 14px;
  }

  .kzphc-arrow-next {
    right: 14px;
  }
}
