/* Cam3D — Réalisations (cartes) */

.wcam-projects .wcam-head {
	padding-bottom: 16px;
	margin-bottom: 24px;
}

.wcam-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 767px) {
	.wcam-projects__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* Tablette portrait : 2 colonnes ; une carte seule sur la dernière ligne prend toute la ligne. */
@media (min-width: 768px) and (max-width: 1023px) {
	.wcam-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcam-projects__grid > :last-child:nth-child(odd):not(:only-child) {
		grid-column: 1 / -1;
	}

	.wcam-projects__grid > :last-child:nth-child(odd):not(:only-child) .wcam-project-card__media {
		aspect-ratio: 16 / 7;
	}
}

/* Une seule carte : largeur d'une carte, pas de la ligne. */
@media (min-width: 768px) {
	.wcam-projects__grid:has(> :only-child) {
		grid-template-columns: minmax(0, 440px);
	}
}
