/* Events at The Bell - modular promotional popup */
.eatb-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.eatb-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.eatb-popup__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(9, 29, 44, .78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: default;
}

.eatb-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100dvh - 64px);
    overflow: auto;
    background: #f4f1e9;
    color: #091d2c;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(22px) scale(.985);
    transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
    outline: none;
}

.eatb-popup__dialog--with-image {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    min-height: 500px;
}

.eatb-popup.is-open .eatb-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.eatb-popup__media {
    min-height: 500px;
    height: 100%;
    background: #091d2c;
    overflow: hidden;
}

.eatb-popup__media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.eatb-popup__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 76px 64px 70px;
    text-align: center;
}

.eatb-popup__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #091d2c;
    cursor: pointer;
}

.eatb-popup__close::before,
.eatb-popup__close::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 1px;
    background: currentColor;
}

.eatb-popup__close::before { transform: rotate(45deg); }
.eatb-popup__close::after  { transform: rotate(-45deg); }

.eatb-popup__close:hover,
.eatb-popup__close:focus-visible {
    color: #c58944;
}

.eatb-popup__eyebrow {
    margin: 0 0 20px;
    font-family: "aktiv-grotesk-extended", sans-serif;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #c58944;
}

.eatb-popup__title {
    margin: 0 0 24px;
    font-family: "playfair-display", serif;
    font-size: clamp(42px, 5vw, 62px);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -.02em;
    color: #091d2c;
}

.eatb-popup__text {
    max-width: 440px;
    margin: 0 auto 32px;
    font-family: "aktiv-grotesk-extended", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #091d2c;
}

.eatb-popup__text p { margin: 0; }
.eatb-popup__text p + p { margin-top: 1em; }

.eatb-popup__actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.eatb-popup__actions--two .eatb-popup__button {
    flex: 1 1 0;
}

.eatb-popup__button {
    min-width: 210px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 28px 14px;
    border: 1px solid #c58944;
    color: #091d2c;
    background: transparent;
    text-decoration: none;
    font-family: "aktiv-grotesk-extended", sans-serif;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.eatb-popup__button:hover,
.eatb-popup__button:focus-visible {
    background: #091d2c;
    border-color: #091d2c;
    color: #fff;
}

body.eatb-popup-open {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .eatb-popup {
        padding: 22px;
    }

    .eatb-popup__dialog,
    .eatb-popup__dialog--with-image {
        width: min(700px, 100%);
        max-height: calc(100dvh - 44px);
        display: block;
    }

    .eatb-popup__media,
    .eatb-popup__media img {
        min-height: 0;
        height: 280px;
    }

    .eatb-popup__content {
        padding: 56px 46px 50px;
    }

    .eatb-popup__close {
        top: 14px;
        right: 14px;
        background: rgba(244,241,233,.92);
        border-radius: 999px;
    }
}

@media (max-width: 600px) {
    .eatb-popup {
        padding: 14px;
        align-items: center;
    }

    .eatb-popup__dialog,
    .eatb-popup__dialog--with-image {
        max-height: calc(100dvh - 28px);
    }

    .eatb-popup__media,
    .eatb-popup__media img {
        height: 210px;
    }

    .eatb-popup__content {
        padding: 46px 26px 36px;
    }

    .eatb-popup__title {
        font-size: 40px;
        margin-bottom: 18px;
    }

    .eatb-popup__text {
        font-size: 13px;
        margin-bottom: 26px;
    }

    .eatb-popup__actions {
        flex-direction: column;
        gap: 12px;
    }

    .eatb-popup__button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eatb-popup,
    .eatb-popup__dialog {
        transition: none;
    }
}
