html:has(#jmj-projeto-video[open]),
body:has(#jmj-projeto-video[open]) {
	overflow: hidden;
}

#jmj-projeto-video {
	width: 50vw;
	max-width: calc(100% - 2rem);
	max-height: calc(100% - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-family: inherit;
}

#jmj-projeto-video::backdrop {
	background: rgb(0 0 0 / 75%);
}

.jmj-projeto-video-heading,
.jmj-projeto-video-footer {
	padding: 0.65rem 1rem;
}

.jmj-projeto-video-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

#jmj-projeto-video-title {
	margin: 0;
	color: #000;
	font-size: clamp(1rem, 1.45vw, 1.3rem);
	font-weight: 400;
	line-height: 1.25;
	text-align: left;
}

.jmj-projeto-video-close,
.jmj-projeto-video-play {
	display: grid;
	place-items: center;
	padding: 0;
	cursor: pointer;
}

.jmj-projeto-video-close {
	width: 44px;
	height: 44px;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-size: 1.65rem;
	line-height: 1;
}

.jmj-projeto-video-close:hover {
	background: #f2f2f2;
}

.jmj-projeto-video-player {
	position: relative;
	background: #000;
}

.jmj-projeto-video-player video {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100dvh - 9rem);
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.jmj-projeto-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58px;
	height: 58px;
	border: 1px solid #fff;
	border-radius: 50%;
	background: rgb(0 0 0 / 82%);
	color: #fff;
}

.jmj-projeto-video-play:hover {
	background: #000;
}

.jmj-projeto-video-play[hidden] {
	display: none;
}

.jmj-projeto-video-play span {
	margin-left: 3px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 13px solid currentColor;
}

.jmj-projeto-video-close:focus-visible,
.jmj-projeto-video-footer a:focus-visible,
#jmj-projeto-video-trigger button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.jmj-projeto-video-play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.about #jmj-projeto-video-trigger .primary-button {
	min-height: 44px;
	margin-top: 0.75rem;
}

@media (max-width: 767px) {
	#jmj-projeto-video {
		width: calc(100% - 2rem);
		max-width: 42rem;
	}
}
