.custom-lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999; /* Ganz oben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Abdunklung */
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Zeigt an, dass man klicken kann, um zu schließen */
}

/* Das Bild innerhalb des Overlays */
.custom-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Bildgröße beibehalten, ohne es zu verzerren */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Klasse, die das Overlay anzeigt, wenn JavaScript sie hinzufügt */
.custom-lightbox-overlay.visible {
    display: flex;
}


.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none; /* Textselektion verhindern */
    border-radius: 5px;
    z-index: 1001; /* Über dem Bild */
}

.lightbox-nav.prev {
    left: 10px;
}

.lightbox-nav.next {
    right: 10px;
}

