/* ==========================================================================
   1. Fotogalerij (Thumbs Grid) - Aangepast voor werkelijke verhouding
   ========================================================================== */
.gallery-grid{
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(175px, 1fr) );
	gap: 5px;
	max-width: 1100px; 
	margin: 10px auto;
	
}
.gallery-item {
	position: relative;   /* Nodig om de afbeelding binnen de box te plaatsen */
	width: 100%;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	cursor: pointer;
	transition: transform 0.2s ease;
	
	/* De truc: padding-bottom bepaalt de maximale hoogte t.o.v. de breedte */
	padding-bottom: 100%;  
	height: 0;            /* Voorkomt dat de content de box groter maakt */
}

.gallery-item:hover {
	transform: scale(1.03);
}

.gallery-item img {
	position: absolute;   /* Plakt de foto strak in de gemaakte box */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;  /* Behoudt de werkelijke verhouding van de bloem */
	display: block;
}
.container-all .gallery-grid div{text-align:center}

/* ==========================================================================
   4. Lightbox Overlay (Grote afbeelding & Knoppen)
   ========================================================================== */
.lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0,9);
	justify-content: center;
	align-items: center;
	user-select: none;
}
.lightbox.active {
	display: flex; background-color: rgba(0, 0, 0, 0.98);
}
/* Wrapper & Grote Foto */
.lightbox-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 95vh;
}
.lightbox-content {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
/* Onderschrift */
.lightbox-caption {
	color: #fff;
	font-size: 18px;
	margin-top: 5px;
	text-align: center;
	background: rgba(0, 0, 0, 0.6);
	padding: 8px 16px;
	border-radius: 4px;
	max-width: 100%;
}
/* Knoppen Navigatie */
.lightbox-btn {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: none;
	font-size: 30px;
	padding: 15px 20px;
	cursor: pointer;
	border-radius: 5px;
	transition: background 0.2s;
}
.lightbox-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}
.close-btn {
	top: 20px;
	right: 20px;
	font-weight: bold;
}
.prev-btn {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.next-btn {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* ==========================================================================
   5. Responsive Media Queries (Bestaand + Lightbox aanpassingen)
   ========================================================================== */


@media (min-width: 100px) and (max-width: 768px) {
.gallery-grid {
	grid-template-columns: repeat( auto-fill, minmax(100px, 1fr) );
}
}

/* Extra kleine schermen (Mobiel) speciaal voor de Lightbox knoppen */
@media (max-width: 600px) {
.lightbox-btn {
	font-size: 20px;
	padding: 10px 15px;
}
.prev-btn {
	left: 10px;
}
.next-btn {
	right: 10px;
}
.close-btn {
	top: 10px;
	right: 10px;
}
}
