/* Each card follows its photograph's intrinsic ratio. The tallest supplied
   photo is 861 × 1600, so reserve enough space for it without resizing the
   stage during navigation or clipping a neighbouring photograph. */
.gallery-carousel {
  --photo-height: calc(var(--photo-width) * 1.859);
}

.gallery-carousel .gallery-item {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  appearance: none;
}

.gallery-carousel .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.gallery-carousel .gallery-item:focus-visible {
  outline: 2px solid #f4d0dc;
  outline-offset: 5px;
}
