/* The Popup Background */
.popup-overlay {
    display: none; 
    position: fixed; 
    z-index: 9999; /* Ensures it sits on top of Bootstrap elements */
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* Dark background with opacity */
}

/* Popup Image Styling */
.popup-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease; /* Smooth entry animation */
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: #bbb;
}

/* Simple Zoom Animation */
@keyframes zoomIn {
    from {transform: scale(0.7); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}