/* Images gallery + lightbox (loaded alongside styles.css, mirrors videos/gallery.css) */

.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin: 26px 0 2px; }
.page-head .sub { color: var(--muted); font-size: 14px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* justified rows */
#igallery { display: block; }
.irow { display: flex; gap: 14px; margin-bottom: 14px; }
.iitem {
  position: relative; display: block; min-width: 0; height: 100%;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--surface);
}
.iitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.iitem:hover img { filter: brightness(1.12); }
.iitem .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 10px; font-size: 12.5px; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* album stack badge (multi-image uploads) */
.stack-badge {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6); color: var(--ink);
  padding: 4px 9px; border-radius: 999px; font-size: 12px;
}
.stack-badge .stack { color: var(--accent); }
.stack-badge .count { font-weight: 600; }

/* ── lightbox / album mini-gallery ───────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 12, .92);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; text-align: center; max-width: min(92vw, 1100px); max-height: 92vh; }
.lb-stage img {
  max-width: 100%; max-height: 78vh; margin: 0 auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.lb-stage figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 999px; font-size: 22px; cursor: pointer;
}
.lb-nav {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 999px; font-size: 26px; cursor: pointer;
  transition: all .15s;
}
.lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.lb-nav[disabled] { opacity: .3; cursor: default; }

/* ── right-click / download deterrent ──────────────────────
   NOTE: deterrent only, not DRM — the images are still reachable
   from the network tab / page source. Mirrors the intended handling
   for <video> players site-wide. */
.iitem img, video {
  user-select: none;
  -webkit-user-drag: none;
}
