/* Stile für die Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: hidden; /* Verhindert ein Scrollen, wenn die Lightbox angezeigt wird */
    transition: opacity 0.3s ease-in-out; /* Sanfte Einblend- und Ausblend-Animation */
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 999;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100% - 40px); /* 40px Platz für Padding oben und unten */
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    object-fit: contain; /* Anstatt cover, um das Bild im Seitenverhältnis zu halten */
    background: #fff; /* Hintergrundfarbe für Bilder mit transparenten Rändern */
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1; /* Damit es über dem Bild angezeigt wird */
}

/* Stile für die Lightbox-Pfeile */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
