/* ================================================================
   Video Modal  —  video-modal.css
   "Watch A Demo" popup: dark overlay + 16:9 video player.
   ================================================================ */

/* Overlay */
.vm-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.78);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.vm-overlay:not([hidden]) { opacity: 1; }
.vm-overlay[hidden]        { display: none !important; }

/* Modal card */
.vm-modal {
	position: relative;
	width: 100%;
	max-width: 960px;
	transform: translateY(14px) scale(0.98);
	transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vm-overlay:not([hidden]) .vm-modal { transform: translateY(0) scale(1); }

/* Close button — top right, just outside the player */
.vm-close {
	position: absolute;
	top: -42px;
	right: 0;
	z-index: 10;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.vm-close:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.06); }
.vm-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 16:9 responsive video frame */
.vm-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #000;
}

@media (max-width: 600px) {
	.vm-close { top: -40px; }
}
