/* ============================================================
   SWIPER HERO TRACK
   Swiper owns the slide track and drag physics. GSAP only moves
   the layers inside each slide to create the depth shift.
   ============================================================ */
.hero-swiper {
  width: 100%;
  overflow: hidden;
  background: var(--uaa-hero-black);
  touch-action: pan-y;
  --swiper-navigation-color: #fff;
  --swiper-navigation-size: 2rem;
  --swiper-wrapper-transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.hero-swiper .swiper-wrapper {
  align-items: stretch;
}

.hero-swiper .swiper-slide {
  position: relative;
  height: auto;
  overflow: hidden;
  isolation: isolate;
}

.hero-swiper.swiper-initialized {
  cursor: grab;
}

.hero-swiper.swiper-initialized:active {
  cursor: grabbing;
}

.hero-swiper :is(a, button, input, select, textarea, label, [contenteditable="true"]) {
  cursor: auto;
}

/* Swiper moves each slide. These targets receive only the smaller internal
   GSAP depth offset. They never receive a full-slide fade. */
.hero-swiper [data-parallax-layer] {
  opacity: 1 !important;
  transition: none !important;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-swiper-button-prev,
.hero-swiper-button-next {
  width: 4rem;
  height: 5rem;
  margin-top: -2.5rem;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, .16);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  transition: background-color .2s ease;
  z-index: 12;
}

.hero-swiper-button-prev { left: 0; }
.hero-swiper-button-next { right: 0; }

.hero-swiper-button-prev:hover,
.hero-swiper-button-next:hover,
.hero-swiper-button-prev:focus-visible,
.hero-swiper-button-next:focus-visible {
  background: rgba(0, 0, 0, .34);
}

.hero-swiper-button-prev::after,
.hero-swiper-button-next::after {
  font-weight: 700;
}

/* Do not let the decorative top PNG block Swiper controls or hero content. */
.hero-swiper .hero-layer-top {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 767.98px) {
  .hero-swiper-button-prev,
  .hero-swiper-button-next {
    width: 3rem;
    height: 4rem;
    margin-top: -2rem;
    --swiper-navigation-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper {
    --swiper-wrapper-transition-timing-function: ease;
  }

  .hero-swiper [data-parallax-layer] {
    transform: none !important;
    will-change: auto;
  }
}
