.popup-homepage-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.popup-homepage-overlay.popup-homepage-open {
    opacity: 1;
    visibility: visible;
}

.popup-homepage-box {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-homepage-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.popup-homepage-content img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.popup-homepage-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.popup-homepage-close:hover,
.popup-homepage-close:focus {
    background: rgba(0, 0, 0, 0.8);
}
