/* ============================================================================
   RING — software gallery page. Built on theme.css tokens + site.css components.
   ============================================================================ */
.galhero { background: var(--hero-gradient); color:#fff; padding: var(--space-3xl) 0 var(--space-2xl); position:relative; overflow:hidden; }
.galhero::after { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(1100px 420px at 82% -12%, rgba(255,255,255,0.22), rgba(255,255,255,0) 60%); }
.galhero .container { position:relative; z-index:1; }
.galhero__eyebrow { color: var(--text-on-accent-muted); text-transform:uppercase; letter-spacing:0.1em; font-size:var(--fs-caption); font-weight:700; }
.galhero h1 { color:#fff; font-size: var(--fs-h1); max-width: 24ch; margin-top: var(--space-m); letter-spacing:-0.01em; }
.galhero p { color: var(--text-on-accent-muted); max-width: 64ch; font-size: 1.12rem; margin-top: var(--space-m); }
.galnote { display:inline-flex; gap:8px; align-items:center; background: rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.28); border-radius: var(--radius-pill); padding:7px 15px;
  font-size: var(--fs-caption); color:#fff; margin-top: var(--space-l); font-weight:600; }
.galnote::before { content:""; width:8px; height:8px; border-radius:50%; background:#fbbf24; box-shadow:0 0 0 3px rgba(251,191,36,0.25); }

/* sticky category jump bar */
.galjumpbar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px); border-bottom:1px solid var(--border); }
.galjumpbar .container { display:flex; gap:var(--space-s); flex-wrap:wrap; padding-top:12px; padding-bottom:12px; }
.galjump { font-size: var(--fs-small); font-weight:650; color: var(--text-muted); background:#fff;
  border:1px solid var(--border-strong); border-radius: var(--radius-pill); padding:6px 14px; white-space:nowrap;
  transition: all var(--dur) var(--ease); }
.galjump:hover { border-color: var(--accent); color: var(--accent); text-decoration:none; transform:translateY(-1px); }

.galcat { padding: var(--space-2xl) 0; }
.galcat:nth-of-type(even) { background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.galcat .section-head { margin-bottom: var(--space-xl); }

.shots { display:grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: var(--space-l); }
.shot { margin:0; background: var(--card); border:1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow:hidden; cursor: zoom-in; display:flex; flex-direction:column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.shot:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: var(--border-strong); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot__imgwrap { position:relative; aspect-ratio: 16 / 9; background: var(--card-inset); border-bottom:1px solid var(--border); overflow:hidden; }
.shot__imgwrap img { width:100%; height:100%; object-fit: cover; object-position: top center; display:block; }
.shot__imgwrap::after { content:"\2922"; position:absolute; top:8px; right:9px; width:26px; height:26px; border-radius:6px;
  display:flex; align-items:center; justify-content:center; font-size:0.95rem; color:#fff;
  background: rgba(17,24,39,0.55); opacity:0; transition: opacity var(--dur) var(--ease); }
.shot:hover .shot__imgwrap::after { opacity:1; }
.shot__cap { padding: var(--space-m) var(--space-l) var(--space-l); display:flex; flex-direction:column; gap:4px; }
.shot__t { font-weight:700; font-size: var(--fs-small); color: var(--text); }
.shot__c { font-size: var(--fs-caption); color: var(--text-muted); line-height:1.45; }

/* lightbox */
.lightbox { position:fixed; inset:0; background: rgba(9,12,20,0.94); z-index:200; display:none;
  align-items:center; justify-content:center; padding: var(--space-xl); }
.lightbox.is-open { display:flex; }
.lightbox__stage { position:relative; max-width:96vw; max-height:88vh; display:flex; flex-direction:column; align-items:center; gap:14px; }
.lightbox img { max-width: 96vw; max-height: 80vh; border-radius: var(--radius-card); box-shadow: 0 24px 70px rgba(0,0,0,0.55); background:#fff; }
.lightbox__cap { color:#e5e7eb; font-size: var(--fs-small); text-align:center; max-width: 70ch; }
.lightbox__cap b { color:#fff; font-weight:700; }
.lightbox__count { color:#94a3b8; font-size: var(--fs-caption); margin-left:8px; }
.lightbox__x, .lightbox__nav { position:absolute; border:none; background: rgba(255,255,255,0.14); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition: background var(--dur) var(--ease); }
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.30); }
.lightbox__x { top:-6px; right:-6px; width:44px; height:44px; border-radius:50%; font-size:1.5rem; }
.lightbox__nav { top:38%; width:52px; height:52px; border-radius:50%; font-size:1.7rem; }
.lightbox__nav--prev { left:-70px; } .lightbox__nav--next { right:-70px; }
@media (max-width: 900px){ .lightbox__nav--prev{ left:6px; } .lightbox__nav--next{ right:6px; }
  .lightbox__nav{ background: rgba(255,255,255,0.22); } }
