.home-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.home-popup.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.home-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.home-popup__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: min(90vw, var(--home-popup-max-width, 600px));
    max-height: min(90vh, var(--home-popup-max-height, 90vh));
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.home-popup__link {
    display: block;
    line-height: 0;
}

.home-popup__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.home-popup__image {
    display: block;
    width: 100%;
    height: auto;
}

.home-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    padding: 5px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-popup__close:hover,
.home-popup__close:focus {
    background: rgba(0, 0, 0, 0.8) !important;
    outline: none;
}

body.home-popup-open {
    overflow: hidden;
}
