/* The image sequence occupies the existing hero image area at every width. */
.w38-hero-image[data-w41-carousel] {
  overflow: hidden;
  isolation: isolate;
}

[data-w41-carousel] > .w41-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

[data-w41-carousel] > .w41-hero-slide[data-leaving] {
  opacity: 1;
  z-index: 1;
}

[data-w41-carousel] > .w41-hero-slide[data-active] {
  opacity: 1;
  z-index: 2;
}

[data-w41-carousel][data-w41-state="static"] > .w41-hero-slide {
  transition: none;
}

[data-w41-carousel] > .w41-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--w41-position, center 57%);
}

@media (max-width: 760px) {
  [data-w41-carousel] > .w41-hero-slide img {
    object-position: var(--w41-position-mobile, var(--w41-position, center));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-w41-carousel] > .w41-hero-slide {
    transition: none !important;
  }
}
