/* ============================================================
   lightbox.css  ·  shared click-to-zoom lightbox styles
   ------------------------------------------------------------
   Pairs with js/lightbox.js. Linked by every page that uses the
   shared lightbox: the five case studies (after case-study.css)
   and side-projects.html. Moved out of case-study.css in Nov 2026
   so non-case-study pages can use it without pulling in all the
   case-study components. photo-gallery.html has its own lightbox.

   Markup a page needs (see starweave.html for a full example):
   #lightbox.lightbox-overlay > prev/next .lightbox-nav buttons +
   .lightbox-inner (close button, #lightbox-img, #lightbox-label).
   ============================================================ */
.lightbox-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(14, 17, 38, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; backdrop-filter: blur(4px); }
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { position: relative; max-width: 90vw; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-inner img { max-width: 100%; max-height: 85vh; width: auto; height: auto; border-radius: 6px; display: block; box-shadow: 0 24px 64px rgba(0,0,0,0.5); background: #ffffff; }
.lightbox-label { font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.lightbox-close { position: fixed; top: 16px; right: 16px; background: rgba(14, 17, 38, 0.6); border: 0.5px solid rgba(255,255,255,0.15); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: rgba(255,255,255,0.7); padding: 0; display: flex; align-items: center; justify-content: center; transition: color 0.15s ease, background 0.15s ease; }
.lightbox-close:hover { color: #fff; background: rgba(14, 17, 38, 0.9); }

/* Prev/next: same fixed-circle treatment as close, pinned to the
   left/right edges of the viewport, vertically centered. */
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(14, 17, 38, 0.6); border: 0.5px solid rgba(255,255,255,0.15); border-radius: 50%; width: 44px; height: 44px; cursor: pointer; color: rgba(255,255,255,0.7); padding: 0; display: flex; align-items: center; justify-content: center; transition: color 0.15s ease, background 0.15s ease; z-index: 501; }
.lightbox-nav:hover { color: #fff; background: rgba(14, 17, 38, 0.9); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
