.invitation {
    position: fixed;
    inset: 0;
    width: fit-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #c9a454;
    border-radius: 8px;
    background: #06223f;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .5);
    overflow: auto;
}

.invitation:not([open]) {
    display: none;
}

.invitation::backdrop {
    background: rgba(0, 10, 25, .82);
}

.invitation__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 34px);
    max-height: calc(100dvh - 34px);
    object-fit: contain;
}

.invitation__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c9a454;
    border-radius: 50%;
    background: #06223f;
    color: #fff;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.invitation__close:hover {
    background: #17466c;
}

.invitation__close:focus,
.invitation__close:focus-visible {
    outline: none;
    box-shadow: none;
}

html.invitation-open {
    overflow: hidden;
}
