.gallery-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.gallery-hero[hidden],
.gallery-hero__slide[hidden],
.gallery-hero__controls[hidden],
.gallery-hero__sound[hidden] {
  display: none !important;
}

.gallery-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-hero__slide img,
.gallery-hero__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gallery-hero__controls {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
}

.gallery-hero__controls button,
.gallery-hero__controls span {
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  line-height: 1;
}

.gallery-hero__controls button {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gallery-hero__controls button:hover {
  background: #b70d0d;
  border-color: #b70d0d;
}

.gallery-hero__controls button:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.gallery-hero__sound {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid #3f3f46;
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gallery-hero__sound:hover {
  background: #b70d0d;
  border-color: #b70d0d;
}

.gallery-hero__sound:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.gallery-hero__sound-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.gallery-hero__sound-icon.is-hidden {
  display: none !important;
}

.gallery-hero__sound.is-on {
  background: #b70d0d;
  border-color: #b70d0d;
}

.gallery-hero__dots {
  position: absolute;
  left: 0.75rem;
  bottom: 0.85rem;
  z-index: 4;
  display: flex;
  gap: 0.35rem;
}

.gallery-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gallery-hero__dot[aria-current="true"] {
  background: #ef4444;
  width: 1.1rem;
}

.branch-gallery-header .hero-copy {
  padding: 2.5rem 1rem 3.5rem;
}

@media (min-width: 1024px) {
  .gallery-hero {
    z-index: 1;
  }

  /* Copy sits under the proportional media band (not overlaid on a stretched viewport) */
  .hero-section:has(.gallery-hero) .hero-copy {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    padding: 2rem 0 2.75rem;
    text-align: center;
  }

  .hero-section:has(.gallery-hero) .hero-copy a,
  .hero-section:has(.gallery-hero) .hero-copy button {
    pointer-events: auto;
  }

  .gallery-hero__controls {
    bottom: 1rem;
    right: 1.25rem;
  }

  .gallery-hero__sound {
    top: 1rem;
    right: 1.25rem;
  }

  .gallery-hero__dots {
    left: 1.25rem;
    bottom: 1.15rem;
  }
}
