/* popup.css */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.popup-close::before {
    content: '\00D7';
    transform: translateY(-2px);
    display: inline-block;
}

.popup-image {
    display: block;
    max-height:500px;
    max-width:auto;
    height: auto;
    border-radius: 8px;
}

.popup-image-link {
    display: block;
    cursor: pointer;
}

.popup-image-link:hover .popup-image {
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px;
    }
    
    .popup-close {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .popup-image {
        max-width:100% !important;
        height:auto !important;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 98vw;
        margin: 10px;
    }
}