/*
 * Shared lightbox styles for video-testimonial + screenshot-gallery.
 * Injected into the page once by assets/js/seamlessmd-blocks.js; styles
 * stay here so the CSS stack is self-contained and not duplicated per block.
 */

.seamlessmd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.seamlessmd-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.seamlessmd-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 42, 92, 0.72);
	backdrop-filter: blur(2px);
}

.seamlessmd-lightbox__dialog {
	position: relative;
	max-width: min(1100px, 92vw);
	max-height: 90vh;
	width: 100%;
	background: var(--seamlessmd-surface, #fff);
	border-radius: var(--seamlessmd-radius-lg, 16px);
	box-shadow: var(--seamlessmd-shadow-xl, 0 20px 60px rgba(30, 42, 92, 0.16));
	padding: var(--space-6, 32px);
	overflow: hidden;
	outline: none;
}

.seamlessmd-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--seamlessmd-text-muted, #6b7280);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
	z-index: 2;
}

.seamlessmd-lightbox__close:hover,
.seamlessmd-lightbox__close:focus-visible {
	background: var(--seamlessmd-surface-alt, #f7f9fc);
	color: var(--seamlessmd-text, #1a1a2e);
}

.seamlessmd-lightbox__content {
	width: 100%;
	max-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.seamlessmd-lightbox__media {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.seamlessmd-lightbox__media--video {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.seamlessmd-lightbox__media--video iframe,
.seamlessmd-lightbox__media--video video {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: var(--seamlessmd-radius-md, 8px);
	background: #000;
}

.seamlessmd-lightbox__media--image img {
	max-width: 100%;
	max-height: 78vh;
	height: auto;
	object-fit: contain;
	border-radius: var(--seamlessmd-radius-md, 8px);
	display: block;
}

.seamlessmd-lightbox__caption {
	margin-top: var(--space-3, 12px);
	text-align: center;
	color: var(--seamlessmd-text-muted, #6b7280);
	font-size: 0.875rem;
	max-width: 70ch;
	margin-left: auto;
	margin-right: auto;
}

.seamlessmd-lightbox__caption[hidden] {
	display: none;
}

body.seamlessmd-lightbox-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.seamlessmd-lightbox {
		transition: none;
	}
}
