/* Touch scrolling is native: no carousel library or JavaScript is required. */
.gallery-swipe-hint { display: none; }
.gallery:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; border-radius: var(--radius); }
.gallery .gallery__photo { object-fit: contain; background: var(--gray-100); }
@media (max-width: 768px) {
  .gallery-swipe-hint { display: block; margin: 0 0 1rem; font-size: .9rem; color: var(--text); }
  .gallery {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .25rem;
    overscroll-behavior-x: contain;
    padding: .3rem .25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--pink) var(--gray-100);
  }
  .gallery figure:nth-child(n) {
    flex: 0 0 min(82vw, 360px);
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
    transform: none;
    transition: none;
    opacity: 1;
    will-change: auto;
  }
  .gallery figure:nth-child(n) img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--gray-100);
    transform: none;
    transition: none;
  }
}
