.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup content styling */
.popup-content {
    position: relative;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    margin: 0;
    animation: fadeIn 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup image styling */
.popup-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background-color: #cc0000;
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

/* Responsive adjustments */
@media screen and (max-height: 600px) {
    .popup-content {
        max-height: 95vh;
    }

    .popup-image {
        max-height: 95vh;
    }
}

@media screen and (max-width: 768px) {
    .popup-content {
        max-width: 95%;
    }
}
