/* Overlay */
#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Hidden default */
.popup-hidden {
    display: none;
}

/* Box */
.popup-box {
    position: relative;
    background: #fff;
    max-width: 420px;
    width: 90%;
    border-radius: 10px;
    overflow: hidden;
    animation: popupFade .3s ease;
}

/* Image */
.popup-box img {
    width: 100%;
    display: block;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

/* Animation */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .popup-box {
        max-width: 95%;
    }
}
