/* Overlay Background */
#zenpop-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

/* Kontainer Gambar */
.zenpop-content {
    position: relative;
    margin: 3rem auto;
    max-width: 90%;
    margin: auto;
    animation: zenPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
    .zenpop-content {
        max-width: 80%;
    }
}

@media (min-width: 992px) {
    .zenpop-content {
        max-width: 60%;
    }
}

/* Tombol Tutup (X) */
#zenpop-close {
    position: absolute;
    top: -2.75rem;
    right: -1rem;
    padding: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: calc(1.25rem + 1vw);
    cursor: pointer;
    line-height: 1;
    opacity: 1;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    #zenpop-close {
        top: -3.125rem;
    }
}

@media (min-width: 1600px) {
    #zenpop-close {
        top: -3.5rem;
    }
}

#zenpop-close:hover {
    opacity: 0.75;
}

/* Gambar Popup */
.zenpop-content a {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

#zenpop-img {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: block !important;
    visibility: visible !important;
    transition: filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#zenpop-img:hover {
    filter: brightness(0.75);
}

/* Animasi Muncul */
@keyframes zenPopIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Class paksa untuk mengunci scroll */
html.zenpop-lock, 
body.zenpop-lock {
    overflow: hidden !important;
    height: 100% !important;
    position: relative !important;
}