.hero .gallery-slide { opacity: 0; pointer-events: none; }
.hero .gallery-slide.is-current { opacity: 1; }
.gallery-controls {
  position: absolute;
  bottom: clamp(1rem, 2.5vw, 2.15rem);
  right: max(var(--gutter), calc((100% - 1530px) / 2 + var(--gutter)));
  display: flex;
  align-items: center;
  padding: 0 .2rem;
  color: white;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(11,25,44,.91);
  border-radius: 3px;
  line-height: 1;
}
.gallery-controls[hidden] { display: none; }
.gallery-controls button {
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: inherit;
  width: 2.4rem;
  min-height: 2.55rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.gallery-controls button:hover { background: #ffffff26; }
.gallery-controls button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.gallery-toggle .icon-play, .gallery-toggle.is-paused .icon-pause { display: none; }
.gallery-toggle.is-paused .icon-play { display: block; }
.gallery-separator { width: 1px; height: .9rem; background: #ffffff55; margin-inline: .12rem; }
.gallery-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  font-size: .79rem;
  color: #dce8f4;
  user-select: none;
}
.gallery-count b { color: white; }
.gallery-count > span { color: #acc2d5; padding-inline: .28rem; }
.gallery-announcement {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .gallery-controls {
    top: .65rem; left: var(--gutter); bottom: auto; right: auto;
  }
  .gallery-controls button { width: 2.1rem; min-height: 2.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .gallery-slide { transition: opacity .65s ease-in-out; }
}
