html.promotion-open,
html.promotion-open body {
    overflow: hidden;
}

.promotion-modal {
    --swiper-theme-color: #fff;
    width: min(720px, calc(100vw - 32px));
    max-width: none;
    max-height: none;
    padding: 48px 0 0;
    border: 0;
    margin: auto;
    background: transparent;
    color: #fff;
    overflow: visible;
}

.promotion-modal::backdrop {
    background: rgb(0 0 0 / 75%);
}

.promotion-modal .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}

.promotion-modal .swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 152px);
    max-height: calc(100dvh - 152px);
    object-fit: contain;
    border-radius: 8px;
}

.promotion-modal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.promotion-modal button:hover {
    background: #f8ebdc;
}

.promotion-modal button:focus-visible,
.promotion-modal .swiper-pagination-bullet:focus-visible {
    outline: 3px solid #e7bd7c;
    outline-offset: 3px;
}

.promotion-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 32px;
    line-height: 1;
}

.promotion-controls:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
}

.promotion-pagination {
    width: auto !important;
    max-width: calc(100% - 112px);
    text-align: center;
}

.promotion-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: .5;
}

.promotion-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Keep a usable first image if the Swiper CDN is unavailable. */
.promotion-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}
