/* Video Lightbox — base styles. */

.vlb-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

/* ---- Play button ---- */

.vlb-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
	flex-shrink: 0;
}

.vlb-trigger:hover,
.vlb-trigger:focus-visible {
	transform: scale(1.08);
}

.vlb-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.vlb-label {
	font-weight: 600;
	white-space: nowrap;
	position: absolute;
	left: calc(100% + 16px);
}

.vlb-trigger {
	position: relative;
}

/* ---- Lightbox overlay ---- */

.vlb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vlb-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.vlb-overlay-close {
	position: absolute;
	top: -50px !important;
	right: -50px !important;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	z-index: 6;
	transform: translateZ(0);
	pointer-events: none;
}

.vlb-overlay-close svg {
	display: block;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.vlb-overlay-close:hover,
.vlb-overlay-close:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, 0.8);
}

.vlb-overlay-close.is-left {
	right: auto !important;
	left: -50px !important;
}

/* ---- Video container inside lightbox ---- */

.vlb-stage {
	position: relative;
	width: 90vw;
	max-width: 1100px;
	aspect-ratio: 16 / 9;
	z-index: 1;
	isolation: isolate;
	overflow: visible;
}

.vlb-player {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.vlb-player video,
.vlb-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	background: #000;
}
