.site-notice-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.site-notice-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.site-notice-popup[hidden] {
    display: none;
}

.site-notice-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    cursor: pointer;
}

.site-notice-popup__dialog {
    position: relative;
    z-index: 1;
    max-width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.site-notice-popup__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    border-radius: 6px;
}

.site-notice-popup__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1b1b1b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.site-notice-popup__close:hover,
.site-notice-popup__close:focus {
    background: #f2f2f2;
}

.site-notice-popup-is-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .site-notice-popup {
        padding: 16px;
    }

    .site-notice-popup__dialog,
    .site-notice-popup__image {
        max-height: calc(100vh - 32px);
    }

    .site-notice-popup__close {
        top: 8px;
        right: 8px;
    }
}
