.promotion-modal {
    --bs-modal-zindex: 1070;
}

.promotion-modal__dialog {
    width: min(calc(100% - 1.5rem), 680px);
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.promotion-modal__content {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.promotion-modal__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--black);
}

.promotion-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--white);
    background: var(--amber-flame);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.promotion-modal__close span {
    position: absolute;
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    pointer-events: none;
}

.promotion-modal__close span:first-child {
    transform: rotate(45deg);
}

.promotion-modal__close span:last-child {
    transform: rotate(-45deg);
}

.promotion-modal__close:hover {
    background: var(--sunflower-gold);
    transform: rotate(90deg);
}

.promotion-modal__close:focus-visible {
    outline: 3px solid rgba(251, 184, 21, 0.45);
    outline-offset: 4px;
}

.promotion-modal.modal {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 575.98px) {

    .promotion-modal__dialog {
        width: calc(100% - 1rem);
    }

    .promotion-modal__content {
        border-radius: 0.85rem;
    }

    .promotion-modal__close {
        top: 0.7rem;
        right: 0.7rem;
    }
    
}

@media (max-height: 750px) {

    .promotion-modal__dialog {
        max-width: min(680px, calc(100svh - 2rem));
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

}