.site-popup {
    display: none;
}
.site-popup.is-open {
    display: block;
}
.site-popup__overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}
.site-popup__dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
}
.site-popup__img {
    display: block;
    width: 100%;
    height: auto;
}
.site-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 44px; /* touch target */
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
}
.site-popup__close:focus-visible {
    outline: 2px solid var(--accent-color, #767F46);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
    .site-popup.is-open .site-popup__overlay {
        animation: site-popup-fade 0.3s ease-out;
    }
    .site-popup.is-open .site-popup__dialog {
        animation: site-popup-rise 0.3s ease-out;
    }
}
@keyframes site-popup-fade {
    from {
        opacity: 0;
    }
}
@keyframes site-popup-rise {
    from {
        transform: translateY(20px);
    }
}
