/* Image viewer (ImageViewer::render + zcms-lightbox.js). Theme-agnostic. */
.zlb-trigger { position: relative; display: inline-block; max-width: 100%; cursor: zoom-in; vertical-align: top; }
.zlb-trigger--block { display: block; width: fit-content; }
.zlb-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.zlb-badge {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(20, 25, 31, .72); color: #fff;
    font: 600 12px/1 system-ui, sans-serif; padding: 6px 9px; border-radius: 999px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    pointer-events: none;
}
.zlb-badge svg { width: 14px; height: 14px; }

.zlb-open, .zlb-open body { overflow: hidden; }
.zlb {
    position: fixed; inset: 0; z-index: 10001;
    display: flex; flex-direction: column;
    background: rgba(10, 12, 15, .92); color: #e8ecf1;
    font-family: inherit;
}
.zlb[hidden] { display: none; }
.zlb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.zlb-count { opacity: .7; }
.zlb-btns { display: flex; gap: 8px; margin-left: auto; }
.zlb button { font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.zlb button:hover { background: rgba(255, 255, 255, .2); }
.zlb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zlb button[hidden] { display: none; }
.zlb .zlb-x { font-size: 22px; line-height: 1; padding: 4px 12px; }
.zlb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 56px; }
.zlb-stage img {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    margin: 0; border-radius: 4px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.zlb-stage.zlb-real { display: block; overflow: auto; padding: 0; overscroll-behavior: contain; }
.zlb-stage.zlb-real img { max-width: none; max-height: none; margin: 0 auto; border-radius: 0; cursor: grab; }
.zlb .zlb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.zlb .zlb-prev { left: 8px; }
.zlb .zlb-next { right: 8px; }
.zlb-real .zlb-nav { display: none; }
.zlb-cap { padding: 12px 16px 16px; text-align: center; font-size: 14px; line-height: 1.5; opacity: .85; max-width: 60rem; margin: 0 auto; }
.zlb-cap[hidden] { display: none; }

@media (max-width: 640px) {
    .zlb-stage { padding: 0 8px; }
    .zlb .zlb-nav { display: none; }
    .zlb-badge { right: 6px; padding: 5px 7px; }
    .zlb-badge span { display: none; }
}
@media print { .zlb-badge, .zlb { display: none !important; } }
