/* Image viewer (js/lightbox.js) — admin and GICT portal */
a[data-lightbox] { cursor: zoom-in; }
html.lb-noscroll { overflow: hidden; }
.lb-dialog { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb-dialog::backdrop { background: rgba(6, 16, 30, .95); }
.lb-frame { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    padding: 3.5rem 4.5rem 5.5rem; pointer-events: none; box-sizing: border-box; }
.lb-frame > * { pointer-events: auto; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); background: #fff; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font: inherit; line-height: 1; padding: 0; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; font-size: 1.9rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 10px; font-size: 2.4rem; }
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }
.lb-nav[hidden] { display: none; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem;
    background: rgb(6, 16, 30); color: #fff; font-family: "Segoe UI", system-ui, Arial, sans-serif; }
.lb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { color: #BFD7EA; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { color: #BFD7EA; font-size: .88rem; white-space: nowrap; }
.lb-download { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .95rem; border-radius: 999px; background: #fff;
    color: #0B1F3A; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.lb-download:hover { background: #E6F6FC; color: #0B1F3A; }
@media (max-width: 600px) {
    .lb-frame { padding: 3.6rem .5rem 7rem; }
    .lb-nav { width: 38px; height: 52px; font-size: 2rem; background: rgba(6, 16, 30, .55); }
    .lb-prev { left: .3rem; }
    .lb-next { right: .3rem; }
    .lb-bar { flex-wrap: wrap; gap: .5rem .8rem; }
    .lb-text { flex-basis: 100%; }
    .lb-download { margin-left: auto; }
}
