
#overlay {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%!important;
    height: 100vmax!important;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 99999999999999999999999999999999999;
    opacity: 0;
    
    transition: opacity 0.5s ease-in-out;
}

/* Popup Box */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999999999999999999999999999999;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Image inside Popup */
#popup img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Close Button */
#close-btn {
    font-size: 40px;
    font-weight: bold;
    color: black;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cross-b {
    position: absolute;
    top: -10px;
    right: -15px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 10px;
    background: white;
}

/* Animation Classes */
.fade-in {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.fade-out {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
}
.popup-container{
    overflow: hidden !important;
    width: 100%!important;
    height: 100%!important;
}

@media (max-width: 480px) {
    #popup {
        width: 80%;
        padding: 10px;
        height: 50%;
    }

    #popup img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #close-btn {
        font-size: 28px;
        top: 5px;
        right: 10px;
    }
}

