/* De achtergrond die het hele scherm bedekt */
.popup-overlay {
    display: none; /* Standaard verborgen, Javascript maakt dit 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Donkere, semi-transparante achtergrond */
    z-index: 9999; /* Zorgt ervoor dat de pop-up ALTIJD bovenop alle andere elementen staat */
    justify-content: center;
    align-items: center;
}

/* De box waar de content (afbeelding + kruisje) in zit */
.popup-content {
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    max-width: 90%; /* Zorgt voor responsiviteit op mobiel */
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* De afbeelding binnen de pop-up */
.popup-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* De sluitknop (het kruisje) */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #000;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

/* Subtiel effect als je over het kruisje heen de muis beweegt */
.popup-close:hover {
    background-color: #ff0000; /* Wordt rood bij hover */
}