/* Video pop-up (native <dialog>, built by wu.js from [data-wu-video] buttons). */

.wu-video {
	width: min(900px, 92vw);
	max-width: none;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: var(--wu-radius-md);
	background-color: #000;
}

.wu-video::backdrop {
	background-color: rgb(0 0 0 / 85%);
}

.wu-video__frame {
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	overflow: hidden;
	border-radius: var(--wu-radius-md);
}

.wu-video__frame iframe,
.wu-video__frame video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.wu-video__close {
	position: absolute;
	top: -18px;
	right: -18px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--wu-color-on-dark);
	border-radius: 50%;
	background-color: #000;
	color: var(--wu-color-on-dark);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.wu-video__close:hover,
.wu-video__close:focus-visible {
	background-color: var(--wu-color-brand);
}

@media (max-width: 600px) {
	.wu-video__close {
		top: -48px;
		right: 0;
	}
}
