/* Projects
==================================== */
#projects-wrapper{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100%;
	padding: 0 var(--sides);
	display: grid;
	grid-auto-flow: row;
	grid-auto-rows: 1fr;
	grid-auto-columns: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
#projects-wrapper.project-open{
	overflow: hidden;
}
.project{
	width: 100%;
}
/* .projects:not(.clone) .project{
	color: red !important;
} */

/*Titles*/
.project-title{
	--fs: 3vw;
	--fs: clamp(42px, 3vw, 60px);
	width: fit-content;
	width: -moz-fit-content;
	margin: 0 auto;
	font-family: var(--font_reg);
	font-size: var(--fs);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-align: center;
	-webkit-user-select: none;
		-moz-user-select: none;
		 -ms-user-select: none;
			  user-select: none;
	-webkit-transition: color var(--speed) var(--ease);
			  transition: color var(--speed) var(--ease);
	cursor: pointer;
}
.project-title.active,
.desktop .project-title.disabled:hover{
	color: var(--ctext) !important;
}
@media (min-width: 835px) and (orientation: landscape) and (min-aspect-ratio: 7/4){
	.project-title{
		--fs: clamp(42px, 3vw, 70px);
	}
}
@media (min-width: 835px) and (orientation: landscape){
	.projects.active .project-title{
		--fs: 2vw;
		--fs: clamp(28px, 2vw, 42px);
	}
	.project-title{
		-webkit-transition: font-size var(--speed) var(--ease),
								  color var(--speed) var(--ease);
				  transition: font-size var(--speed) var(--ease),
								  color var(--speed) var(--ease);
	}
	.desktop .project-title:hover{
		-webkit-transition: font-size var(--speed) var(--ease);
				  transition: font-size var(--speed) var(--ease);
	}
}
@media (max-width: 834px),
		 (min-width: 835px) and (orientation: portrait){
	.project-title{
		--fs: 5vw;
		--fs: clamp(16px, 5vw, 42px);
	}
}

/*Galleries*/
.project-gallery{
	position: relative;
	width: calc((100vw - var(--sides)*2)/2);
	/* max-width: 700px; */
	max-width: 1000px;
	height: fit-content;
	height: -moz-fit-content;
	margin: 10px auto;
	padding: var(--cols) 0;
	/* grid-column: 2; */
}
.project-gallery::after{
	content: '';
	position: absolute;
	top: 0%;
	left: 50%;
	width: 1px;
	height: 100%;
	background-color: var(--ctext);
	-webkit-transform: translateX(-50%);
			  transform: translateX(-50%);
	z-index: -1;
}
/* @media (orientation: portrait){
	.project-gallery{
		max-height: 600px;
	}
}
@media (orientation: landscape){
	.project-gallery{
		max-height: 70vh;
	}
}
@media (max-width: 834px),
		 (min-width: 835px) and (orientation: portrait){
	.project-gallery{
		width: calc(70vw - var(--sides)*2);
		height: fit-content;
		height: -moz-fit-content;
	}
} */
/* @media (max-width: 1180px),
		 (min-width: 1181px) and (orientation: portrait){
	.project-gallery{
		width: calc(72vw - var(--sides)*2);
		min-width: var(--textlength);
	}
} */
@media (max-width: 1180px),
		 (min-width: 1181px) and (orientation: portrait){
	.project-gallery{
		width: 100%;
	}
}
@media (max-width: 834px),
		 (min-width: 835px) and (max-width: 1180px) and (orientation: portrait){
	.project-gallery{
		width: calc(84vw - var(--sides)*2);
		max-width: 700px;
		min-width: var(--textlength);
	}
}
@media (max-width: 600px){
	.project-gallery{
		width: 100%;
		max-width: none;
		min-width: 0;
	}
}
/* @media (max-width: 834px),
		 (min-width: 835px) and (orientation: portrait){
	.project-gallery{
		width: 100%;
		max-width: none;
		height: fit-content;
		height: -moz-fit-content;
		max-height: none;
	}
} */

/*Infos*/
.project-info{
	width: 100%;
	max-width: var(--textlength);
	height: fit-content;
	height: -moz-fit-content;
	margin: 0 auto;
	padding: 15px 0 16px;
	background-color: var(--cbg);
	text-align: center;
}
.project-info p:not(:last-child),
.project-info_description:not(:last-child){
	margin-bottom: var(--textgap);
}
