/* Full-screen photo viewer (views/partials/lightbox.php; opened by vender/blocks.js).
   The whole photo is shown, never cropped: it fits the screen with its caption underneath. */
.lightbox { display: none; position: fixed; z-index: 9999; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem 1.5rem 1.5rem; overflow: auto; overscroll-behavior: contain; background-color: rgba(0, 0, 0, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; cursor: zoom-out; }
.lightbox.show { opacity: 1; }
.lightbox-content { display: block; max-width: min(100%, 1600px); max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; border-radius: 16px; box-shadow: 0 0 30px rgba(255, 255, 255, 0.15); animation: cmsZoomIn 0.4s cubic-bezier(0.25, 1, 0.5, 1); object-fit: contain; cursor: default; }
@keyframes cmsZoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #f1f1f1; font-size: 40px; font-weight: 300; line-height: 1; cursor: pointer; background: rgba(255, 255, 255, 0.08); border: 0; transition: background 0.2s; }
.lightbox-close:hover, .lightbox-close:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.18); outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.lightbox-caption { width: 100%; max-width: 700px; text-align: center; color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.3px; line-height: 1.45; cursor: default; }
.lightbox-caption:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } .lightbox-content { animation: none; } }
