/* ==========================================================================
   The rest of the file, shared by every stone page.

   A stone page shows its lead photograph; this is where the other twenty or thirty live, so
   the page is not a dead end and a buyer never has to go elsewhere to see stock. It uses the
   tokens of /assets/site.css (--ink, --brass-2, --serif, --mono, …): one palette, defined once.
   ========================================================================== */

.gal { max-width: 1440px; margin: 0 auto; padding: clamp(70px, 11vh, 130px) var(--g) 0; }
.gal[hidden] { display: none; }
.gal-head { margin-bottom: 34px; display: grid; gap: 16px; }
.gal-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.025em; line-height: 0.95; }
.gal-head h2 em { font-style: italic; font-weight: 300; color: var(--brass-2); }
.gal-head p:not(.eyebrow) { max-width: 54ch; color: var(--on-dark-2); line-height: 1.7; }

/* Small tiles on purpose: a column that never exceeds ~300px keeps even the smallest file on
   the shelf above its own resolution. */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(8px, 1vw, 14px); }
.gal-grid button { padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; position: relative; aspect-ratio: 1 / 1; border-radius: 2px; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1s var(--ease), opacity 0.4s ease; }
.gal-grid button:hover img { transform: scale(1.07); opacity: 1; }
.gal-grid button:focus-visible { outline: 1px solid var(--brass-2); outline-offset: 3px; }

/* ── the lens ──────────────────────────────────────────────────────────────
   Full screen, zoom to 8×, drag to pan. No grain, no scrim, no saturation curve: a buyer reading
   vein and grain should see the file, not our treatment. */
.lens { position: fixed; inset: 0; z-index: 110; background: #060505; display: none; align-items: center; justify-content: center; overscroll-behavior: contain; touch-action: none; }
.lens.open { display: flex; }
.lens img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0; will-change: transform; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lens.zoomed img { cursor: grab; }
.lens.zoomed.dragging img { cursor: grabbing; }
.lens-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: linear-gradient(rgba(6, 5, 5, 0.7), transparent); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.lens-bar .name { color: var(--on-dark); letter-spacing: 0.1em; }
.lens-tools { display: flex; align-items: center; gap: 8px; }
.lens-tools button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(243, 238, 229, 0.08); color: var(--on-dark); font-size: 15px; cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.lens-tools button:hover { background: var(--brass-2); color: var(--ink); }
.lens-tools .pct { min-width: 52px; text-align: center; font-size: 10.5px; letter-spacing: 0.1em; }
.lens-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(6, 5, 5, 0.5); color: var(--on-dark); font-size: 25px; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.25s ease, color 0.25s ease; }
.lens-nav:hover { background: var(--brass-2); color: var(--ink); }
.lens-nav.prev { left: 16px; } .lens-nav.next { right: 16px; }
.lens.zoomed .lens-nav { opacity: 0.25; }
.lens-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); background: rgba(6, 5, 5, 0.55); padding: 7px 14px; border-radius: 999px; transition: opacity 0.5s ease; }
.lens.zoomed .lens-hint { opacity: 0; }
body.lens-open { overflow: hidden; }

@media (max-width: 700px) {
  .lens-nav { width: 44px; height: 44px; font-size: 21px; }
  .lens-bar .name { display: none; }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .gal-grid img { transition: none; } }
