/* The hero keeps its original layout while the project photography changes. */
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  touch-action: pan-y pinch-zoom;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility 0s linear .65s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, 50% 48%);
}

.hero-slider::after {
  z-index: 1;
  pointer-events: none;
}

.hero-slider .photo-note {
  left: 12%;
  right: 24px;
  bottom: 102px;
  z-index: 2;
}

.hero-slider-controls {
  position: absolute;
  left: 12%;
  right: 24px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slider-controls[hidden] {
  display: none;
}

.hero-slider-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffff70;
  background: #07172cd9;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.hero-slider-controls button:hover {
  border-color: var(--gold-light);
  background: var(--navy);
}

.hero-slider-controls button:focus-visible {
  outline-color: var(--gold-light);
  outline-offset: 3px;
}

.hero-slider-controls .hero-playback {
  min-width: 72px;
  font-size: 12px;
  font-weight: 600;
}

.hero-slide-count {
  margin-right: auto;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-slider .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hero-slider .photo-note {
    left: 20px;
    right: 20px;
    bottom: 88px;
  }

  .hero-slider-controls {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

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