.wi-video-modal {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.wi-video-modal[hidden] {
	display: none;
}

.wi-video-modal__backdrop {
	background: rgb(8 35 39 / 85%);
	inset: 0;
	position: absolute;
}

.wi-video-modal__panel {
	left: 50%;
	max-width: 1200px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
}

.wi-video-modal__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

.wi-video-modal iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.wi-video-modal__close {
	align-items: center;
	background: var(--wp--preset--color--accent);
	border: 0;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	display: flex;
	font-size: 28px;
	height: 52px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 0;
	top: -64px;
	width: 52px;
}

.wi-video-modal__close:hover,
.wi-video-modal__close:focus-visible {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

@media (max-width: 767.98px) {
	.wi-video-modal__close {
		height: 44px;
		top: -56px;
		width: 44px;
	}
}

body.has-video-modal {
	overflow: hidden;
}
