.img-preview-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(60, 72, 92, 0.45), transparent 55%),
        #0e1116;
    color: #e8ecf1;
    font-family: "맑은 고딕", "Malgun Gothic", "굴림", Gulim, sans-serif;
}

.img-preview-stage {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 24px 32px;
    cursor: zoom-out;
}

.img-preview-shot {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.img-preview-shot.is-ready {
    opacity: 1;
    transform: scale(1);
}

.img-preview-close {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.img-preview-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

/* In-page lightbox (news / articles) */
.img-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 28px;
    background: rgba(8, 10, 14, 0.88);
    backdrop-filter: blur(2px);
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.img-preview-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.img-preview-overlay .img-preview-shot {
    max-height: calc(100vh - 80px);
}

.img-preview-overlay .img-preview-close {
    position: absolute;
}

.js-img-preview {
    cursor: zoom-in;
}
