#festival-priority-popup {
    position: fixed;
    inset: 0;
    width: min(1160px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 24px;
    background: #fffdf8;
    color: #263e33;
}

#festival-priority-popup:not([open]) {
    display: none;
}

#festival-priority-popup::backdrop {
    background: rgba(15, 35, 27, 0.72);
}

html:has(#festival-priority-popup[open]) {
    overflow: hidden;
}

#festival-priority-popup .shell {
    margin: 0;
    box-shadow: none;
    background: #fffdf8;
}

#festival-priority-popup .popup-close {
    position: sticky;
    z-index: 2;
    top: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 10px 10px -54px auto;
    padding: 0;
    border: 1px solid #d9dfd6;
    border-radius: 50%;
    background: #fffdf8;
    color: #244c3d;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}

#festival-priority-popup .popup-close:focus-visible,
#festival-priority-popup .submit:focus-visible {
    outline: 3px solid #244c3d;
    outline-offset: 3px;
}

@media (min-width: 851px) {
    #festival-priority-popup .art {
        justify-content: flex-start;
        padding-top: clamp(80px, 14vh, 150px);
    }
}

@media (max-width: 850px) {
    #festival-priority-popup {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 16px;
    }

    #festival-priority-popup .art {
        padding-top: 48px;
    }
}
