/* The photo viewer (lightbox.js). Neutral so it sits on any design; --lb-accent colors the counter and focus ring. */
:root { --lb-accent: #fff; }
.lb { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(8, 9, 12, .94); color: #fff; }
.lb.lb-on { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr; align-items: center; }
body.lb-open { overflow: hidden; }
.lb-fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 56px 0 48px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-cap { margin-top: 12px; font-size: 15px; line-height: 1.4; color: #d7dae0; text-align: center; max-width: 70ch; padding: 0 12px; }
.lb-x, .lb-prev, .lb-next { background: transparent; border: 0; color: #fff; cursor: pointer; font: 300 44px/1 system-ui, sans-serif; padding: 0; width: 64px; height: 64px; display: grid; place-items: center; opacity: .85; }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-x { position: absolute; top: 4px; right: 4px; font-size: 40px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
.lb-count { position: absolute; top: 20px; left: 20px; font: 600 14px/1 system-ui, sans-serif; letter-spacing: .06em; color: var(--lb-accent); }
.lb :focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 759px) {
  .lb.lb-on { grid-template-columns: 1fr; }
  .lb-fig { grid-column: 1; padding: 56px 8px 72px; }
  .lb-prev, .lb-next { position: absolute; bottom: 8px; width: 50%; height: 56px; font-size: 36px; }
  .lb-prev { left: 0; } .lb-next { right: 0; }
}
@media (prefers-reduced-motion: no-preference) { .lb-img { animation: lb-in .18s ease-out; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
