.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-overlay[hidden] {
    display: none;
}

.image-preview-overlay.is-visible {
    opacity: 1;
}

.image-preview-panel {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.image-preview-panel img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #0f172a;
}

.image-preview-backdrop {
    position: absolute;
    inset: 0;
}

body.image-preview-open {
    overflow: hidden;
}
