/* Section principale de la galerie */
.home-gallery {
	padding: 20px;
}

/* Grille des items de la galerie */
.home-gallery--grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* Configuration de la grille pour les écrans larges */
@media (min-width: 768px) {
	.home-gallery--grid {
		grid-template-columns: 1fr 1fr; /* 2 colonnes dès 768px */
	}
}

/* Items de la grille avec même hauteur */
.home-gallery--grid-item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	height: 100%; /* Uniformiser la hauteur de chaque item */
}

/* Conteneur pour l'image avec background */
.image-container {
	width: 100%;
	height: 600px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	overflow: hidden;
	object-fit: contain;
}

.image-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: inherit;
	background-size: inherit;
	background-position: inherit;
	background-repeat: inherit;
	transition: transform 0.3s ease-in-out;
	transform-origin: center;
}

/* Effet de zoom au hover */
.image-container:hover::before {
	transform: scale(1.05); /* Légère augmentation du zoom sur l'image */
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); /* Ombre légère pour plus de profondeur */
	cursor: pointer;
}

/* Superposition (overlay) en bas de l'image */
.overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px;
	background: linear-gradient(to top, rgba(51, 51, 51, 1), transparent);
	/*background: rgba(51, 51, 51, 1);*/
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
	text-align: left;
	z-index: 2;
}

.overlay .model-name {
	color: rgb(227, 202, 111);
	margin-bottom: 0;
}

.overlay .overlay-text {
	font-size: 14px;
	font-weight: 300;
}

@media screen and (max-width: 478px) {
	.image-container {
		height: 300px;
	}
	
	.overlay .model-name {
		font-size: 18px;
	}
	
	.overlay .overlay-text {
		font-size: 12px;
	}
}