.photo-carousel {
  margin: 1.5rem auto;
  max-width: 68rem;
}

.photo-carousel__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-carousel__track::-webkit-scrollbar {
  display: none;
}

.photo-carousel__slide {
  background: #18251e;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.photo-carousel__slide img {
  display: block;
  height: clamp(14rem, 55vw, 36rem);
  object-fit: contain;
  width: 100%;
}

.photo-carousel__slide figcaption {
  color: #fff;
  padding: 0.65rem 1rem;
}

.photo-carousel__controls {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.photo-carousel__arrow {
  align-items: center;
  background: #24543b;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.photo-carousel__arrow:hover {
  background: #173b29;
}

.photo-carousel__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.photo-carousel__dot {
  background: #a7b0aa;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 0.7rem;
  padding: 0;
  width: 0.7rem;
}

.photo-carousel__dot[aria-current="true"] {
  background: #24543b;
  transform: scale(1.2);
}

.photo-carousel__arrow:focus-visible,
.photo-carousel__dot:focus-visible {
  outline: 3px solid #d28b2e;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .photo-carousel__track {
    scroll-behavior: auto;
  }
}
