.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.item-gallery {
	flex: 0 0 calc(33% - 20px);
	border: 1px solid #BFBFBF;
}
.gallery-img {
	position: relative;
	height: 270px;
	overflow: hidden;
}
.lightbox-thumb {
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: relative;
	object-position: top;
	cursor: zoom-in;
	transition: transform 0.3s;
}
.lightbox-thumb:hover {
  transform: scale(1.05);
}
.wrap-gallery-text {
	padding: 20px;
}
.gallery-tit {
	font-weight: bold;
	margin-bottom: 5px
}
#lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0; left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
/* Image affichée */
#lightbox-img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
	width: auto;
	height: auto;
	box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
/* Bouton fermeture */
#lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 32px;
	color: white;
	cursor: pointer;
	z-index: 1001;
}
#lightbox-close:hover {
	color: #ff5555;
}
/* Flèches navigation */
#lightbox-prev,
#lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
	color: white;
	cursor: pointer;
	user-select: none;
	padding: 10px;
	z-index: 1001;
}
#lightbox-prev { left: 30px; }
#lightbox-next { right: 30px; }
#lightbox-prev:hover,
#lightbox-next:hover {
	color: #aaa;
}
@media screen and (max-width:1024px){ 
	.gallery-img {
		height: 220px;
	}
}
@media screen and (max-width:860px){ 
	.gallery-img {
		height: 300px;
	}
	.item-gallery {
		flex: 0 0 calc(50% - 15px);
	}
}
@media screen and (max-width:640px){ 
	.gallery-img {
		height: 400px;
	}
	.item-gallery {
		flex: 0 0 100%;
	}
}
@media screen and (max-width:420px){ 
	.gallery-img {
		height: 280px;
	}
}