/* ==========================================================================
   slider-hero.css — full-width auto-advancing image slider.

   Images display at their natural aspect ratio (no `cover` cropping): each
   image fills the full width and the height follows. Because slides can have
   different heights, slider-hero.js sets the viewport height to the active
   slide so the section grows/shrinks smoothly between slides.
   On small screens a per-slide mobile image is used when provided.
   ========================================================================== */

.slider-hero {
  position: relative;
  width: 100%;
}

.slider-hero__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* JS sets an explicit height; this transition animates the change. */
  transition: height 0.4s ease;
}

.slider-hero__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.slider-hero__link {
  display: block;
}

.slider-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Arrows --------------------------------------------------------------- */
.slider-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #2b2a2a;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.slider-hero__arrow:hover {
  background: #fff;
}

.slider-hero__arrow svg {
  width: 1.4rem;
  height: 1.4rem;
}

.slider-hero__arrow--prev {
  left: 1.5rem;
  transform: translateY(-50%) rotate(90deg);
}

.slider-hero__arrow--next {
  right: 1.5rem;
  transform: translateY(-50%) rotate(-90deg);
}

/* --- Dots ----------------------------------------------------------------- */
.slider-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.8rem;
}

.slider-hero__dot {
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-hero__dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.slider-hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* --- Small screens -------------------------------------------------------- */
@media (max-width: 767px) {
  .slider-hero__arrow {
    width: 3.6rem;
    height: 3.6rem;
  }

  .slider-hero__arrow--prev {
    left: 0.8rem;
  }

  .slider-hero__arrow--next {
    right: 0.8rem;
  }

  .slider-hero__dots {
    bottom: 1rem;
  }
}
