/* Grundzustand: Lightbox versteckt */
.lightbox-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Container für die Bilder */
#slides-container {
    width: 90%;
    height: 80%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Bild wird eingepasst, ohne abgeschnitten zu werden */
    opacity: 0;
    transition: opacity 2s ease-in-out; /* 2 Sekunden Übergang */
}

.slide.active {
    opacity: 1;
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10001;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s;
    min-width: 80px;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Navigations-Pfeile an den Seiten (optional statt unten) */
#prev-btn, #next-btn {
    font-weight: bold;
}