@charset "utf-8";
@charset "utf-8";
/* CSS Document */

       
/*------------------Lightbox-Beginn----------------------------------------------------------*/			
			
.gallery { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin: 15px 0; 
}

.gallery .gallery-img { 
    width: 200px; 
    height: 200px; 
    object-fit: cover; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery .gallery-img:hover {
    opacity: 0.8;
}

/* Lightbox Overlay */
/* Bild für sanfte Übergänge vorbereiten */
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    
    /* Animation für Transparenz und leichtes Skalieren */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

/* Zustand beim Ausblenden (unsichtbar & leicht verkleinert) */
.lightbox img.fade {
    opacity: 0;
    transform: scale(0.96);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Schließen-Button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

/* Navigation-Pfeile */
.lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); /* Dunklerer Hintergrund für bessere Sichtbarkeit */
    color: white;
    border: none;
    font-size: 30px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    user-select: none;
    z-index: 10001; /* WICHTIG: Höher als das Bild setzen! */
}

.lightbox .nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
/* ----------------------schmale Handys------------------- */

@media (max-width: 600px) {
    .lightbox .prev { left: 5px; }
    .lightbox .next { right: 5px; }
    .lightbox .nav-btn {
        padding: 12px 14px;
        font-size: 24px;
    }
	.gallery .gallery-img { 
    width: 160px; 
    height: 160px; 

}
}

/*------------------Lightbox-Ende----------------------------------------------------------*/	



/* CSS Document */

