/* Image Popup Styles */
.image-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.image-popup-overlay.active {
    display: flex;
}

.image-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: slideIn 0.4s ease-out;
}

.image-popup-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
}

.close-popup-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #000000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.close-popup-btn:hover {
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-popup-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .popup-image {
        max-height: 70vh;
    }
    
    .close-popup-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-image {
        max-height: 60vh;
    }
}
