/* Simple Image Popup Styles */

.sip-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: sipFadeIn 0.3s ease-in;
}

@keyframes sipFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sip-popup-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sip-popup-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.sip-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
    font-weight: bold;
}

.sip-close-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.sip-close-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sip-popup-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .sip-popup-image {
        max-height: 70vh;
    }
    
    .sip-close-btn {
        top: -15px;
        right: -15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sip-popup-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .sip-close-btn {
        top: 10px;
        right: 10px;
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Animation for closing */
.sip-popup-overlay.closing {
    animation: sipFadeOut 0.3s ease-out;
}

@keyframes sipFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
