/* Pop-up Banner Styles */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top of everything */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.popup-content {
    background-color: #fff;
    padding: 0; /* Remove padding to let the image fill the container */
    border-radius: 8px;
    position: relative;
    width: 800px;
    height: auto;
    max-width: 90%; /* Keep it responsive on smaller screens */
    max-height: 90vh; /* Keep it responsive on smaller screens */
    overflow: hidden; /* Hide any overflow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Match the container's border-radius */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
    border-radius: 50%;
    line-height: 1;
    z-index: 10; /* Ensure the button is on top of other content */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close-button:hover {
    background-color: #eee;
    color: #000;
}

/* Optional: Add some animation for appearance */
.popup-overlay.fade-in {
    animation: fadeIn 0.5s forwards;
}

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