/* ===== Hero Ken Burns slideshow (copy of Elementor's bg slideshow) ===== */
.art-hero-header-beauty.has-kb-slideshow {
  overflow: hidden;                  /* stops the scaled image spilling out */
  background-image: none !important; /* the slides replace the static bg */
}
.art-hero-header-beauty .kb-slideshow {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.art-hero-header-beauty .kb-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1500ms ease;   /* = transition_duration 1500 */
}
.art-hero-header-beauty .kb-slide.is-visible { opacity: 1; }
.art-hero-header-beauty .kb-slide__image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: top;          /* matches this theme's existing hero image position */
  transform-origin: center center;
  transform: scale(1);
  transition: transform 10s linear;  /* leaving slide eases back */
  will-change: transform;
}
.art-hero-header-beauty .kb-slide.is-active .kb-slide__image {
  transform: scale(1.3);             /* direction "in" */
  transition-duration: 20s;
}

/* Dark overlay so heading/buttons/info strip stay readable on every slide.
   The theme ships an .art-hero-header-beauty-mask with this exact value
   (rgba(0,0,0,.4)) but it is commented out of the hero markup, so it is
   recreated here scoped to the slideshow. */
.art-hero-header-beauty .kb-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* existing content must sit above the slides and overlay */
.art-hero-header-beauty > .container { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .art-hero-header-beauty .kb-slide__image { transition: none !important; transform: none !important; }
}
