.bilder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten, gleichmäßig verteilt */
    gap: 20px; /* Abstand zwischen den Bildern */
}

/* 
.grid-element { /* Optional: Zusätzliches Styling für die Grid-Elemente

}
*/

.bilder-grid img {
    cursor: pointer; /* Mauszeiger als Hand über Bildern */
    max-width: 100%; /* Bilder passen sich der Grid-Zelle an */
    height: auto; /* Höhe wird proportional angepasst */
}

.lightbox {
    display: none; /* Lightbox ist standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund */
    z-index: 999; /* Über allen anderen Inhalten */
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-bild {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.lightbox .navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 1000;
}

.lightbox .navigation span {
    color: white;
    font-size: 30px;
    margin: 0 10px;
    cursor: pointer;
}