/**
 * Stay True — All-in-One Video Gallery inline player + lightbox.
 */

/* Inline player iframe — fills any position:relative container using the padding-bottom trick */
.st-card__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
}

html.stay-true-aiovg-lock,
html.stay-true-aiovg-lock body {
	overflow: hidden;
}

.stay-true-aiovg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	opacity: 0;
	transition: opacity 220ms ease;
}

.stay-true-aiovg-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.stay-true-aiovg-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

.stay-true-aiovg-lightbox__stage {
	position: relative;
	width: 100%;
	max-width: 1280px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stay-true-aiovg-lightbox__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.stay-true-aiovg-lightbox__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.stay-true-aiovg-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
	padding: 0;
}

.stay-true-aiovg-lightbox__close:hover,
.stay-true-aiovg-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.4);
	outline: none;
	transform: scale(1.05);
}

.stay-true-aiovg-lightbox__close svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 640px) {
	.stay-true-aiovg-lightbox {
		padding: 12px;
	}

	.stay-true-aiovg-lightbox__close {
		top: 8px;
		right: 8px;
		background: rgba(0, 0, 0, 0.6);
	}
}
