/* Cafe Jubilee 2026 Popup */

.cafe-jubilee-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.cafe-jubilee-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cafe-jubilee-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    max-width: 90vw;
    max-height: 90vh;
    padding: 10%;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cafe-jubilee-title {
    font-size: 2.5rem;
    font-family: var(--font-title);
    color: var(--color-accent-not-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.cafe-jubilee-close {
    position: absolute;
    top: 10%;
    right: 10%;
    background: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 5.25rem;
    height: 5.25rem;
    font-size: 3.75rem;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10000;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.cafe-jubilee-close:hover,
.cafe-jubilee-close:active {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 1);
}

.cafe-jubilee-close .material-symbols-outlined {
    font-size: 3.75rem;
    font-weight: bold;
    color: #ffffff;
}

.cafe-jubilee-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cafe-jubilee-content picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cafe-jubilee-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Mobile/Responsive adjustments */
@media (max-width: 768px) {
    .cafe-jubilee-title {
        font-size: 1.8rem;
    }

    .cafe-jubilee-close {
        font-size: 3rem;
        top: 15%;
        right: 5%;
        width: 4.5rem;
        height: 4.5rem;
    }

    .cafe-jubilee-close .material-symbols-outlined {
        font-size: 3rem;
    }

    .cafe-jubilee-container {
        padding: 8%;
    }
}

/* Disable scrolling when popup is active */
html.cafe-jubilee-no-scroll {
    overflow: hidden !important;
}

body.cafe-jubilee-no-scroll {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    .cafe-jubilee-title {
        font-size: 1.4rem;
    }

    .cafe-jubilee-close {
        font-size: 2.25rem;
        top: 12%;
        right: 5%;
        width: 3.9rem;
        height: 3.9rem;
    }

    .cafe-jubilee-close .material-symbols-outlined {
        font-size: 2.25rem;
    }

    .cafe-jubilee-container {
        width: 90vw;
        height: 85vh;
        padding: 5%;
    }
}
