/* Poster viewer: view-only lightbox (js/poster-viewer.js). Matches the dark navy / cyan site look. */
.pv-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    color: #f2f3f7;
    font-family: 'Space Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    animation: pv-fade 0.16s ease-out;
}
.pv-overlay[hidden] { display: none; }
.pv-overlay.pv-noanim { animation: none; }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }

.pv-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 4px 8px 4px 16px;
    box-sizing: border-box;
    background: rgba(10, 14, 24, 0.92);
    border-bottom: 1px solid rgba(128, 255, 238, 0.18);
}
.pv-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.pv-btns { flex: 0 0 auto; display: flex; gap: 4px; }
.pv-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(128, 255, 238, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #f2f3f7;
    font: 500 1.1rem/1 'IBM Plex Mono', Consolas, monospace;
    cursor: pointer;
}
.pv-btn.pv-fit { font-size: 0.8rem; }
.pv-btn:hover { background: rgba(128, 255, 238, 0.12); border-color: #80ffee; }
.pv-btn:focus-visible { outline: 2px solid #80ffee; outline-offset: 2px; }

.pv-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}
.pv-stage.pv-zoomed { cursor: grab; }
.pv-stage.pv-drag { cursor: grabbing; }
.pv-img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    transform-origin: 0 0;
    opacity: 0;
    -webkit-user-drag: none;
    user-select: none;
    will-change: transform;
}
.pv-img.pv-ready { opacity: 1; }
.pv-img.pv-anim { transition: transform 0.18s ease-out; }
.pv-load {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c2d4;
    font: 400 0.85rem 'IBM Plex Mono', Consolas, monospace;
    pointer-events: none;
}
.pv-load[hidden] { display: none; }

@media (max-width: 480px) {
    .pv-bar { gap: 6px; padding-left: 12px; }
    .pv-btn { min-width: 40px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .pv-overlay { animation: none; }
    .pv-img.pv-anim { transition: none; }
}
