/* Page Projets (Projets / recherches / Thomas Yoword ) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

#posts{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 270px;
	grid-auto-flow: row dense; 
	gap: 10px;
	
}

#sliderecherches #posts{
	grid-template-columns: repeat(auto-fit, 250px);
	justify-content:center;
}

@media only screen and (max-width: 1600px) {
	#posts{
		grid-template-columns: repeat(4, 1fr);
	}
}

@media only screen and (max-width: 900px) {
	#posts{
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 600px) {
	#posts{
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: auto;
	}
	
	#sliderecherches #posts{
		grid-template-columns: repeat(auto-fit, 100%);
	}
	
	.post, .post.large { aspect-ratio: 1/1; }
	.post.wide { aspect-ratio: 2/1; }
	.post.tall { aspect-ratio: 1/2; }
	
}

@media only screen and (max-width: 450px) {
	#posts{
		grid-template-columns: repeat(1, 1fr);
	}
	
	.post, .post.large, .post.wide, .post.tall {
		grid-column: span 1 !important;
		grid-row: span 1 !important;
	}
	
	.post.tall { aspect-ratio: 1/1; }
	
}

.post{
	position: relative;
	overflow:hidden;
	background-size: cover;
	background-position: center;
	height: 100%;
	align-content:center;
}

.post.large {
  grid-column: span 2;
  grid-row: span 2;
}

.post.wide {
  grid-column: span 2;
}

.post.tall {
  grid-row: span 2;
}

.imgpost{
	width: 100%;
	float:left;
}

.infopost{
	color:white;
	display:flex;
	flex-direction:column;
	opacity: 0;
	justify-content:center;
	align-items: center;
	max-width: calc(100% - 20px);
	margin:auto;
}

.nomprojet{
	font-size: 2em;
	font-weight: 900; 
	line-height: 1.2em;
	display: inline;
	text-align: center;
	background-color: white;
	padding: 10px 15px;
	box-shadow: 5px 5px 20px rgb(0 0 0 / 0.2);
}

.date{
	display:inline-block;
	font-weight: bold;
	margin-top: 0.5em;
	text-align: center;
	background-color: var(--jauneth);
	padding: 5px 10px;
	width: fit-content;
	margin: 5px;
	box-shadow: 5px 5px 20px rgb(0 0 0 / 0.2);
}

.post:hover > .infopost{
	opacity: 1;
}

.footerthomasyoword{
	background-color: black;
	padding: 1em;
	text-align:center;
}

.footerthomasyoword span, .footerthomasyoword .btn{
	opacity:0.02;
	transition: opacity 1s ease-in;
}

.footerthomasyoword:hover > span, .footerthomasyoword:hover .btn{
	opacity:1;
}

.footerthomasyoword span{
	color:white;
}

.footerthomasyoword .btn{
	background-color: var(--jauneth);
	color: black;
	display: inline-block;
	padding: 0.5em 1em;
	margin: 1em 2em;
	font-weight: 600;
	border-radius: 5px;
}

.footerthomasyoword .btn:hover{
	background-color: var(--jauneth-orange);
}

