/* Nive Video Modal */

html.nvm-modal-open {
	overflow: hidden;
}

#nvm-modal-root[hidden] {
	display: none !important;
}

.nvm-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(0, 0, 0, 0.65);
	animation: nvm-fade-in 0.25s ease;
}

.nvm-dialog {
	position: relative;
	width: min(920px, 100%);
	background: #111;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	padding: 1rem 1rem 1.25rem;
	animation: nvm-scale-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nvm-title {
	margin: 0 2.5rem 0.75rem 0;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}

.nvm-close {
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.nvm-close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.nvm-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.nvm-iframe,
.nvm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
}

@keyframes nvm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes nvm-scale-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
