/* The carousel uses the existing hero image frame and leaves the page layout intact. */
.hero-carousel { touch-action: pan-y; }
.hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.hero-carousel .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .7s ease;
}
.hero-carousel .hero-slide img { object-position: center; }
.hero-carousel-controls {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 12px 10px 18px;
  background: linear-gradient(transparent, rgba(10, 19, 28, .72));
  pointer-events: none;
}
.hero-carousel-controls[hidden] { display: none; }
.hero-carousel-controls:not(:focus-within) { background: none; }
.carousel-count {
  display: none;
}
.carousel-buttons { display: flex; gap: 4px; pointer-events: auto; }
/* Keep the image clear while retaining controls for keyboard access. */
.carousel-buttons:not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.carousel-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(229, 220, 206, .38);
  border-radius: 2px;
  background: rgba(25, 42, 59, .65);
  color: #f4efe7;
}
.carousel-control:hover { background: #20344b; border-color: #e5dcce; }
.carousel-control:focus-visible { outline: 2px solid #f4efe7; outline-offset: 2px; }
.carousel-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-rotation .icon-play { display: none; }
.carousel-rotation.is-paused .icon-play { display: block; }
.carousel-rotation.is-paused .icon-pause { display: none; }
.carousel-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-slide { transition: none; }
}
