.product-gallery { position: relative; min-width: 0; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  column-gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { min-width: 0; scroll-snap-align: start; }
.gallery-worn { aspect-ratio: 1; }
.gallery-worn img { width: 100%; height: 100%; object-fit: cover; object-position: center 74%; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.gallery-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow[data-direction="previous"] { left: 12px; right: auto; }
.gallery-arrow[data-direction="previous"] svg { transform: rotate(180deg); }
