.lw-hero-slider {
  position: relative;
  width: 100%;
  min-height: var(--lw-hero-height, 520px);
}

.lw-hero-slider__slides {
  position: relative;
  width: 100%;
  min-height: var(--lw-hero-height, 520px);
  overflow: hidden;
}

.lw-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: lwFade 18s infinite;
}

.lw-hero-slide__media {
  position: absolute;
  inset: 0;
}

.lw-hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: lwKenBurns 18s infinite;
}

.lw-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--lw-overlay, 0.35));
}

.lw-hero-slide__content {
  position: relative;
  z-index: 2;
  height: var(--lw-hero-height, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}

.lw-hero-slide__heading {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px 0;
  font-weight: 800;
}

.lw-hero-slide__text {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.4;
  max-width: 58ch;
  margin: 0 0 18px 0;
}

.lw-hero-slide__link {
  display: inline-block;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
}

.lw-hero-slide__link:hover {
  background: rgba(255,255,255,0.20);
}

/* Stagger start times */
.lw-hero-slide--1 { animation-delay: 0s; }
.lw-hero-slide--2 { animation-delay: 6s; }
.lw-hero-slide--3 { animation-delay: 12s; }

.lw-hero-slide--1 img { animation-delay: 0s; }
.lw-hero-slide--2 img { animation-delay: 6s; }
.lw-hero-slide--3 img { animation-delay: 12s; }

/* Fade: 18s total, each slide “active” for 6s */
@keyframes lwFade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  33%  { opacity: 1; }
  39%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Ken Burns: slow zoom + slight move */
@keyframes lwKenBurns {
  0%   { transform: scale(1) translate3d(0,0,0); }
  33%  { transform: scale(1.12) translate3d(-2%, -1%, 0); }
  39%  { transform: scale(1.12) translate3d(-2%, -1%, 0); }
  100% { transform: scale(1) translate3d(0,0,0); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .lw-hero-slide,
  .lw-hero-slide__media img {
    animation: none !important;
  }
  .lw-hero-slide {
    opacity: 1;
    position: relative;
    min-height: var(--lw-hero-height, 520px);
  }
}