/* Modern Popup Home - Style */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease;
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.popup-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Tombol close */
.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}
.popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }
    .popup-image {
        max-height: 80vh;
        border-radius: 12px;
    }
    .popup-close {
        top: 8px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}
@media (max-width: 480px) {
    .popup-container {
        max-width: 98vw;
        max-height: 98vh;
    }
    .popup-image {
        max-height: 70vh;
        border-radius: 8px;
    }
    .popup-close {
        top: 4px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}