/*
 * Video lightbox for core/image (Leaders and Flares theme).
 */

.wp-block-image.laf-has-lightbox-video {
	cursor: pointer;
}

figure.laf-has-lightbox-video.wp-block-image img {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

.laf-lightbox.laf-lightbox-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	visibility: hidden;
	transition: visibility 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.laf-lightbox.laf-lightbox-open {
	background: rgba(0, 0, 0, 0.85);
	opacity: 1;
	visibility: visible;
}

.laf-lightbox-container {
	transform: scale(0.95);
	transition: transform 0.2s ease;
}

.laf-lightbox-open .laf-lightbox-container {
	transform: scale(1);
}

.laf-lightbox-close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.laf-lightbox-close:hover,
.laf-lightbox-close:focus {
	background: rgba(255, 255, 255, 0.35);
}

.laf-lightbox-iframe-wrap {
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}

.laf-lightbox-iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
