/* The badge gallery of /concept and /concept/features (assets/gallery.js): rendered badge pages inside one badge, a
   sharp holder on the purple lanyard printed JOAN, with a taped PROTOTYPE label (Luka, 2026-10-17: "sharp / industrial /
   collage"; the label: STORIES-FINAL.md). Without JavaScript it is a plain horizontal scroll with snap points and a
   caption under each page; gallery.js adds the class g-js, the arrows, the dots and one caption under the badge. */
.gallery { --g-w: 236px; margin: 26px 0 0; display: flex; flex-direction: column; align-items: center; }
.gallery-sm .gallery { --g-w: 210px; }
.g-badge { position: relative; width: var(--g-w); padding-top: calc(var(--g-w) * 0.5); }
.g-strap { position: absolute; top: 0; width: calc(var(--g-w) * 0.14); height: calc(var(--g-w) * 0.62); background: #4205dd; overflow: hidden;
  display: flex; justify-content: center; align-items: center; padding-bottom: calc(var(--g-w) * 0.12); transform-origin: 50% 100%; }
.g-strap i { writing-mode: vertical-rl; white-space: nowrap; font: normal 800 calc(var(--g-w) * 0.07) / 1 var(--display, system-ui); letter-spacing: 0.22em;
  color: #fff; }
.g-strap-l { left: 17%; transform: rotate(4deg); }
.g-strap-r { right: 17%; transform: rotate(-4deg); }
.g-holder { position: relative; padding: calc(var(--g-w) * 0.13) calc(var(--g-w) * 0.055) calc(var(--g-w) * 0.065); background: #fff;
  border: 2px solid #17111e; box-shadow: 10px 10px 0 #17111e; }
.g-clip { position: absolute; top: calc(var(--g-w) * 0.04); width: calc(var(--g-w) * 0.11); height: calc(var(--g-w) * 0.045); background: #17111e; }
.g-clip-l { left: 21%; } .g-clip-r { right: 21%; }
.g-holder > .tape { bottom: 9%; right: -14%; font-size: calc(var(--g-w) * 0.062); }
.g-track { position: relative; display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  box-shadow: 0 0 0 1px rgba(23, 17, 30, 0.25); -webkit-overflow-scrolling: touch; }
.g-track:focus-visible { outline: 3px solid #ffd500; outline-offset: 4px; }
.g-fig { margin: 0; }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.g-slide img { display: block; width: 100%; height: auto; aspect-ratio: 528 / 768; }
.g-slide figcaption { padding: 8px 4px 2px; font-size: 0.85rem; font-weight: 600; text-align: center; color: #3f3a48; }
.g-nav, .g-dots { display: none; }

/* With gallery.js: no scrollbar, one caption under the badge, arrows and dots. */
.g-js .g-track { scrollbar-width: none; }
.g-js .g-track::-webkit-scrollbar { display: none; }
.g-js .g-slide figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-js .g-nav { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; margin: 24px 0 0; }
.g-cap { flex: 1; margin: 0; min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 700 0.78rem / 1.3 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #17111e; }
.g-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 0;
  border: 2px solid #17111e; background: #fff; color: #17111e; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.g-btn:hover:not(:disabled) { background: #17111e; color: #fff; }
.g-btn:disabled { opacity: 0.3; cursor: default; }
.g-btn:focus-visible, .g-dot:focus-visible { outline: 3px solid #ffd500; outline-offset: 2px; }
.g-js .g-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 6px 0 0; }
.g-dot { width: 22px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.g-dot::before { content: ''; width: 8px; height: 8px; background: #cfcad8; }
.g-dot[aria-current="true"]::before { width: 16px; background: #17111e; }
@media (prefers-reduced-motion: reduce) { .g-track { scroll-behavior: auto; } }
