.szim-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.szim-popup.is-visible {
    display: flex;
}

.szim-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.szim-popup__box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: szim-popup-in 0.25s ease-out;
}

.szim-popup__link {
    display: block;
    position: relative;
    z-index: 1;
}

.szim-popup__image {
    display: block;
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.szim-popup__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
}

.szim-popup__close:hover {
    transform: scale(1.08);
}

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

@keyframes szim-popup-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .szim-popup__close {
        top: -14px;
        right: -8px;
    }
}
