html.club-promotion-active {
    overflow: hidden;
}

.club-promotion {
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    overflow: visible;
    font-family: inherit;
}

.club-promotion[open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    animation: club-promotion-enter 180ms ease-out;
}

.club-promotion::backdrop {
    background: rgb(5 15 24 / 78%);
}

.club-promotion__close {
    display: grid;
    place-items: center;
    align-self: flex-end;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.club-promotion__close svg {
    filter: drop-shadow(0 1px 2px #000);
}

.club-promotion__close:hover {
    color: #ffff00;
}

.club-promotion__artwork {
    display: block;
    align-self: center;
    line-height: 0;
    cursor: zoom-in;
}

.club-promotion__artwork img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(38rem, calc(100vw - 24px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
}

.club-promotion__fallback {
    box-sizing: border-box;
    width: min(38rem, calc(100vw - 24px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #5086a5 #edf8ff;
    scrollbar-width: thin;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    color: #142d40;
    font-size: 1rem;
    line-height: 1.6;
}

.club-promotion__fallback h2 {
    margin: 0 0 16px;
    font: 700 1.5rem/1.3 'Quicksand', sans-serif;
}

.club-promotion__fallback p {
    margin: 0 0 16px;
}

.club-promotion__fallback a {
    display: inline-block;
    padding-block: 10px;
    color: #075c87;
    font-weight: 600;
    text-underline-offset: 3px;
}

.club-promotion__artwork[hidden],
.club-promotion__fallback[hidden] {
    display: none;
}

.club-promotion :focus-visible {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}

.club-promotion__fallback :focus-visible {
    outline-color: #075c87;
    outline-offset: -2px;
}

.club-promotion ::selection {
    color: #101010;
    background: #ffff00;
}

@keyframes club-promotion-enter {
    from { opacity: 0.7; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .club-promotion[open] {
        animation: none;
    }
}
