/* Achtergrond-overlay */
#rfit-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* direct transparant zwart */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 999999;
}

/* Open state */
#rfit-lightbox.open {
    opacity: 1;
    pointer-events: auto;
    cursor: zoom-out; /* cursor buiten foto */
}

/* Container */
#rfit-lightbox .rfit-lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

/* Afbeelding zelf */
#rfit-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px; /* jouw wens */
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    cursor: default;
}

/* Sluitknop rechtsboven */
#rfit-lightbox .rfit-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.178);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 34px;
    font-weight: bold;
    color: #ef7d00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

#rfit-lightbox .rfit-close-btn:hover {
    background: #ef7b002f;
}
