/* ==========================================================================
   Traga seu Projeto
   ========================================================================== */

.project {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 1.25rem 2.25rem;
}

.project__content {
	display: flex;
	flex-direction: column;
	gap: 1.375rem;
	align-items: center;
	text-align: center;
	justify-self: center;
}

.project__title {
	margin: 0;
	color: var(--color-secondary);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.3;
	max-width: 20rem;
}

.project__tags {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	row-gap: 0.375rem;
	column-gap: 0.25rem;
	flex-wrap: wrap;
	color: var(--color-secondary);
	font-size: 1.125rem;
	font-weight: 600;
}

.project__tag {
	position: relative;
	z-index: 1;
	padding: 0.125rem 0.625rem;
	transition: color 0.35s ease;
}

.project__tag--active {
	color: #ffffff;
}

.project__tag-highlight {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 0.5rem;
	background: var(--color-secondary);
	pointer-events: none;
	transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.project__tag-divider {
	color: var(--color-primary);
}

.project__tags-break {
	flex-basis: 100%;
	height: 0;
}

.project__video {
	position: relative;
	width: 100%;
	aspect-ratio: 405 / 245;
	border-radius: var(--radius-image);
	overflow: hidden;
}

.project__video-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project__video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(77, 171, 153, 0.45);
	pointer-events: none;
}

.project__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 3.25rem;
	height: 2.75rem;
	background: #ffffff;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-secondary);
	font-size: 1rem;
}

.project__play-btn:hover {
	background: #eef4f3;
}

.video-modal {
	width: min(92vw, 70rem);
	max-width: none;
	padding: 0;
	border: none;
	border-radius: 1rem;
	background: #000000;
}

.video-modal:modal {
	overscroll-behavior: contain;
}

.video-modal::backdrop {
	overflow: hidden;
	overscroll-behavior: contain;
	background: rgba(0, 0, 0, 0.8);
}

.video-modal__video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

.video-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: #ffffff;
	color: var(--color-secondary);
	font-size: 1.125rem;
	cursor: pointer;
}

.video-modal__close:hover {
	background: #eef4f3;
}

@media (min-width: 64rem) {

	.project {
		grid-template-columns: 1fr 1.15fr;
		padding: 0 1.75rem 3rem;
	}

	.project__content {
		align-items: flex-start;
		text-align: left;
	}

	.project__title {
		font-size: 2.5rem;
	}

	.project__tags {
		justify-content: flex-start;
	}
}
