.hero-carousel {
  --carousel-background: #181818;
  --carousel-ink: #fff9f2;
  --carousel-stage-height: min(56.25vw, 68svh, 800px);
  position: relative;
  width: 100%;
  background: var(--carousel-background);
  color: var(--carousel-ink);
}
.hero-carousel [hidden] { display: none; }
.carousel-stage { position: relative; }
#hero-slides { position: relative; overflow: hidden; }
.hero-slide.is-leaving { position: absolute; inset: 0; pointer-events: none; }
.hero-slide { margin: 0; }
.carousel-art {
  display: grid;
  isolation: isolate;
  position: relative;
  place-items: center;
  height: var(--carousel-stage-height);
  overflow: hidden;
  background: #180f20 url("banner-stage-extension.webp") center / 100% 100% no-repeat;
}
.carousel-art::before,.carousel-art::after {
  position: absolute;
  z-index: -1;
  inset-block: -12px;
  width: calc(54% + 12px);
  content: "";
  background: var(--poster) center 25% / cover no-repeat;
  filter: blur(7px) saturate(.82);
  opacity: .5;
  pointer-events: none;
}
.carousel-art::before {
  left: -12px;
  mask-image: linear-gradient(to right, transparent 15%, #000 57%, #000 82%, transparent 100%);
}
.carousel-art::after {
  right: -12px;
  mask-image: linear-gradient(to left, #000 82%, transparent 100%);
}
.carousel-art picture,.carousel-art img,.carousel-art video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.carousel-art img,.carousel-art video { object-fit: contain; }
.carousel-art video { background:#181818; }
.carousel-arrow,.carousel-play {
  min-height: 44px;
  border: 1px solid #aa8f9d;
  color: var(--carousel-ink);
  background: #271d29;
  font: 600 .875rem / 1.25 var(--site-sans);
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(.22,1,.36,1);
}
.carousel-arrow:hover,.carousel-play:hover { background-color: #563348; }
.carousel-arrow:active,.carousel-play:active { background-color: #72465c; }
.hero-carousel :focus-visible { outline: 3px solid #ffe1ae; outline-offset: 3px; }
.carousel-arrow {
  position: absolute;
  z-index: 1;
  top: calc(var(--carousel-stage-height) / 2);
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 0 4px 16px #160a19a8;
}
.carousel-prev { inset-inline-start: clamp(12px,3vw,48px); }
.carousel-next { inset-inline-end: clamp(12px,3vw,48px); }
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-bar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 16px;
  max-width: var(--site-wide);
  min-height: 68px;
  margin-inline: auto;
  padding: 8px var(--site-gutter);
}
.carousel-caption {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.carousel-caption:not([href]) { text-decoration:none; }
.carousel-play {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 24px;
  white-space: nowrap;
}
.carousel-play svg { width: 16px; height: 16px; }
.carousel-play [data-pause-icon],
.carousel-play[data-playing] [data-play-icon] { display: none; }
.carousel-play[data-playing] [data-pause-icon] { display: block; }
.carousel-position {
  grid-column: 3;
  justify-self: end;
  color: #f1dbde;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.carousel-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media screen and (max-width: 760px) {
  .hero-carousel { --carousel-stage-height: clamp(220px, min(96vw, 59svh), 460px); }
  .carousel-arrow { inline-size: 44px; block-size: 44px; }
  .carousel-bar { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; padding-inline: 16px; }
  .carousel-play { position: relative; min-width: 44px; padding: 0; }
  .carousel-play [data-rotation-text] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media screen and (max-width: 760px), screen and (max-width: 950px) and (hover: none) and (pointer: coarse) {
  .carousel-art { background-size: cover; }
  .carousel-art::before,.carousel-art::after { content: none; }
}
@media (max-width: 400px) {
  .carousel-prev { inset-inline-start: 8px; }
  .carousel-next { inset-inline-end: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-arrow,.carousel-play { transition: none; }
}
@media print {
  .hero-carousel { --carousel-stage-height: 70mm; }
  .carousel-arrow,.carousel-play { display: none; }
  .carousel-bar { display: block; }
}
