.jk-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.jk-popup-box {
    background: #fff;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: jkFadeIn 0.3s ease-out;
}

.jk-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.jk-popup-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
}

.jk-popup-image-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 8px;
    object-fit: contain; /* behält Seitenverhältnis */
}



.jk-popup-content {
    font-size: 16px;
    line-height: 1.6;
}

@keyframes jkFadeIn {
    from {
        opacity: 0;
        transform: translate(-1000px, -1000px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes jkFadeOut {
    from {
        opacity: 1;
        transform: translate(0, 0);
    }
    to {
        opacity: 0;
        transform: translate(-1000px, 1000px);
    }
}

.jk-popup-overlay {
    animation: jkFadeIn 0.3s forwards;
}
