/* Popup image */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.popup-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.popup-content {
    position: relative;
    pointer-events: auto;
    max-width: 80%;
    max-height: 80%;
    animation: fadeInScale 0.3s ease;
}

.popup-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.popup-close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    background: white;
    border: none;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-close-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
    }
    
    .popup-close-btn {
        top: -30px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}