/* gallery.css: two snap strips, photos and technique videos */
.gallery__label { font: 500 .85rem/1 var(--font-body); letter-spacing: .14em; color: var(--soft); margin: 0 0 1rem; }
.gallery__row { grid-auto-columns: clamp(200px, 21vw, 270px); margin-bottom: 2.5rem; }
.gallery__row img, .gallery__row video {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); background: var(--lilac-deep);
}
.gallery__row--video { grid-auto-columns: clamp(180px, 17vw, 230px); }
.gallery__row--video video { aspect-ratio: 9 / 16; }
.gallery__tagged { position: relative; }
.gallery__tagged span {
  position: absolute; bottom: .8rem; inset-inline-start: .8rem;
  padding: .35rem .8rem; border-radius: var(--radius-pill); background: var(--white); color: var(--plum); font-size: .85rem; font-weight: 400;
}

/* tilted plane with two endless rows (js/modules/marquee.js adds .is-running, desktop/tablet with motion only).
   With motion stopped the rows fall back to the swipe strips above. */
.gallery { overflow-x: clip; }
.gallery__plane { display: grid; }
html:not(.a11y-no-motion) .gallery__plane.is-running {
  gap: 14px; margin-block: 1rem 4rem;
  transform: perspective(1400px) rotateX(14deg) rotateZ(-4deg) scale(1.08); transform-origin: center;
}
html:not(.a11y-no-motion) .gallery__plane.is-running .gallery__row {
  display: flex; width: max-content; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  animation: marquee 75s linear infinite;
}
html:not(.a11y-no-motion) .gallery__plane.is-running .gallery__row--rev { animation-direction: reverse; animation-duration: 85s; }
html:not(.a11y-no-motion) .gallery__plane.is-running .gallery__row:hover { animation-play-state: paused; }
html:not(.a11y-no-motion) .gallery__plane.is-running .gallery__row > li { flex: none; width: clamp(180px, 16vw, 240px); margin-inline-end: 14px; }
.gallery__plane img.magnet { transition: transform .18s ease-out; will-change: transform; }
.gallery__plane img.magnet:not(:hover) { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }

/* 2026-11-09 upgrade: short intro under the gallery heading */
.gallery__lead { display: grid; gap: .5rem; margin-top: 1rem; }
