/*
--------------------------------------
items
--------------------------------------
*/

.project-items {
	display: flex;
	row-gap: 50px;
	flex-direction: column;
}

/*
--------------------------------------
item
--------------------------------------
*/

.project-items .project-item {
	position: relative;
	width: 100%;
	padding-bottom: 60%;
	height: 0;
}

/*video*/

.project-items .project-item iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-item {
	position: relative;
	overflow: hidden;
}

.project-item__video-overlay {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.project-item__video-thumbnail {
	object-fit: cover;
	width: 100%;
	height: 100% !important;
	transition: transform 0.3s ease;
}

.project-item .project-item__video-thumbnail {
	max-width: 100%;
}

.project-item:hover .project-item__video-thumbnail {
	transform: scale(1.05);
}

.project-item__video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 20px;
	transition: transform 0.3s ease;
}

.project-item:hover .project-item__video-play {
	transform: translate(-50%, -50%) scale(1.05);
}

.project-item__overlay {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: linear-gradient(189deg, rgba(0, 0, 0, 0.00) 50%, #000) 100%;
	z-index: 1;
}

.project-item__video-overlay--is-hidden {
	display: none;
}

.project-item__content {
	position: absolute;
	bottom: 30px;
	left: 70px;
	right: 30px;
	display: flex;
	flex-direction: column;
}

.project-item__content .project-item__content-title {
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: calc(20px + (25 - 20) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 700;
	color: #fff;
	transition: transform 0.3s ease;
	display: inline-block;
	z-index: 2;
}

.project-item:hover .project-item__content-title {
	transform: scale(1.05);

}

.project-item:hover .project-item__overlay {
	display: block;
}

.project-item__content .project-item__content-category {
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 700;
	color: #fff;
	opacity: 0.8;
	transition: transform 0.3s ease;
	display: inline-block; /* important pour que transform fonctionne bien */
	z-index: 2;
}

.project-item:hover .project-item__content-category {
	transform: scale(1.05);
}

/*
--------------------------------------
no items
--------------------------------------
*/

.no-items-mention {
	display: flex;
	justify-content: center;
	align-items: center;
}

.no-items-mention a {
	background: #fff;
	color: var(--e-global-color-primary);
	border: 1px solid var(--e-global-color-primary);
}