﻿.container  {
	  display: flex;
	  flex-wrap: wrap;
	}
	
.container img {
    width: 25%; /* Bild füllt 25% der Container- oder Seitenbreite aus */
    height: auto; /* Höhe wird automatisch skaliert */
	}
	
.containera  {
  display: flex;
  flex-wrap: wrap;
}

.containera img {
    width: 100%; /* Bild füllt 25% der Container- oder Seitenbreite aus */
    height: auto; /* Höhe wird automatisch skaliert */
	}

.thumbnaila {
    width: 23%; /* Jedes Thumbnail nimmt 25% der Breite ein */
    margin-bottom: 10px; /* Platz unter dem Bild für den Titel */
    text-align: center; /* Zentriert den Titel unter dem Bild */
    padding: 2px; /* Abstand von 3px um jedes Thumbnail */
}

.thumbnaila img {
    width: 100%; /* Bild füllt den gesamten verfügbaren Platz innerhalb des Thumbnails */
    height: auto;
    border: 2px solid #ddd; /* Optional: Rahmen um die Bilder */
    display: block; /* Entfernt unerwünschte Abstände unter dem Bild */
}

.thumbnaila p {
    margin-top: 5px; /* Abstand zwischen Bild und Titel */
    font-size: 14px; /* Schriftgröße für den Titel */
    color: #333; /* Optional: Textfarbe */
}	
.lightbox {
    display: none; /* Das Overlay ist unsichtbar, bis es benötigt wird */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dunkler Hintergrund */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    width: 90vw; /* Bild füllt 95% der Viewport-Breite */
    height: auto;
    max-height: 90vh; /* Maximal 95% der Viewport-Höhe */
    object-fit: contain; /* Bild bleibt proportional */    
    max-width: 100%;
    max-height: 100%;    
    }
    
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center; 
	gap: 10px; /* Abstand zwischen den Bildern */
    }
		
.thumbnail {
	width: 250px;  /* Breite des Bildes füllt den Container */
	height: auto; /* Höhe wird automatisch im Verhältnis zur Breite angepasst */	
	object-fit: contain; /* Das Bild bleibt proportional, aber füllt den Container */
	margin: 5px;
	align-items: center;
	text-align: center; 
	}
	
.caption {
	margin-top: 5px;
	font-size: 16px;
	color: #555;
	text-align: center; 

}

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

.close-btn:hover {
	color: #f00; /* Rote Farbe beim Hover */
	}
