#main .hero-media {
  position: absolute;
  inset: 0;
}

#main .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

#main .hero-slide.is-active {
  opacity: 1;
}

#main .hero-slide .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#main .hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: var(--page);
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--plum);
}

#main .hero-carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

#main .hero-carousel-controls button:hover {
  background: transparent;
}

#main .hero-carousel-controls button:focus-visible {
  outline-offset: -4px;
}

#main .hero-carousel-controls button:disabled {
  opacity: .3;
}

#main .hero-carousel-controls svg {
  width: 20px;
  height: 20px;
}

#main .hero-carousel-dots {
  display: flex;
}

#main .hero-carousel-dots button > span {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #faf8f399;
  box-shadow: 0 0 0 2px #faf8f333;
}

#main .hero-carousel-dots button[aria-current="true"] > span {
  background: currentColor;
}

#main .hero-carousel-playback {
  padding: 0;
}

#main .hero-carousel-playback:focus-visible {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  clip: auto;
  overflow: visible;
  background: var(--paper);
  border-radius: 50%;
}

#main .hero-play-icon,
#main .hero-carousel-playback.is-paused .hero-pause-icon {
  display: none;
}

#main .hero-carousel-playback.is-paused .hero-play-icon {
  display: block;
}

@media (max-width: 760px) {
  #main .hero-media {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  #main .hero-slide .hero-image {
    object-position: center;
  }

  #main .hero-carousel-controls {
    right: 12px;
    bottom: 12px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main .hero-slide {
    transition: none;
  }
}
