.swo-visit-banner {
    --swo-banner-edge: 16px;
    width: max-content;
    max-width: calc(100vw - 2 * var(--swo-banner-edge));
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    margin: auto;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: #222;
}

.swo-visit-banner:not([open]) {
    display: none;
}

.swo-visit-banner::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.swo-visit-banner__link {
    display: block;
    line-height: 0;
}

.swo-visit-banner__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    border: 0;
    object-fit: contain;
}

.swo-visit-banner__close {
    position: absolute;
    top: -52px;
    right: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: 32px/1 sans-serif;
    cursor: pointer;
}

.swo-visit-banner__close:focus-visible,
.swo-visit-banner__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px #222;
}

.swo-visit-banner__close svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

html.swo-visit-banner-open,
html.swo-visit-banner-open body {
    overflow: hidden;
}
