/* Popup Banner Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-banner {
    position: relative;
    width: 800px;
    height: 500px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-banner {
    transform: scale(1);
}

.popup-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
    z-index: 1000001;
}

.popup-close:hover {
    background: #fff;
    transform: scale(1.1);
}



/* Responsive Design */
@media (max-width: 850px) {
    .popup-banner {
        width: 90vw;
        height: calc(90vw * 0.625);
        /* Maintain 800:500 ratio */
        max-width: 800px;
        max-height: 500px;
    }
}

@media (max-width: 600px) {
    .popup-banner {
        width: 95vw;
        height: calc(95vw * 0.625);
        /* Maintain 800:500 ratio */
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Animation for popup entrance */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-banner.animate {
    animation: popupFadeIn 0.4s ease-out;
}