/* Trigger fills the WPBakery column width */
.fancybox-video,
.wpb_wrapper .fancybox-video,
.vc_column-inner .fancybox-video {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fancybox-video .fancybox-video-trigger,
.wpb_wrapper .fancybox-video .fancybox-video-trigger {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-decoration: none !important;
}

.fancybox-video-trigger__frame {
	display: block;
	width: 100%;
	max-width: 100%;
	position: relative;
	overflow: hidden;
}

.fancybox-video-trigger__frame--medium img,
.fancybox-video-trigger__frame--large img,
.fancybox-video-trigger__frame--full img,
.fancybox-video .fancybox-video-trigger__frame--medium img,
.fancybox-video .fancybox-video-trigger__frame--large img,
.fancybox-video .fancybox-video-trigger__frame--full img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	position: static !important;
}

.fancybox-video-trigger__frame--square,
.fancybox-video-trigger__frame--custom {
	aspect-ratio: 1 / 1;
}

.fancybox-video-trigger__frame--three_four {
	aspect-ratio: 3 / 4;
}

.fancybox-video-trigger__frame--square img,
.fancybox-video-trigger__frame--three_four img,
.fancybox-video-trigger__frame--custom img,
.fancybox-video .fancybox-video-trigger__frame--square img,
.fancybox-video .fancybox-video-trigger__frame--three_four img,
.fancybox-video .fancybox-video-trigger__frame--custom img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.fancybox-video .fancybox-button-text,
.fancybox-video span.fancybox-button-text,
.fancybox-video .fancybox-video-trigger > span,
.fancybox-button-text {
	display: block;
	margin: 0;
	text-align: center;
	font-size: 21px;
	line-height: 1.2;
	color: #444444;
	text-decoration: none !important;
}

.fancybox-slide--html .fancybox-close-small {
	background: #fff;
	border-radius: 100%;
	color: #111 !important;
}

.video .fancybox-slide--html .fancybox-close-small {
	right: 20px !important;
	top: 20px !important;
}

.fancybox-video a,
.fancybox-video a:hover,
.fancybox-video a:focus,
.fancybox-video a:visited {
	text-decoration: none !important;
}

.fancybox-video-trigger:focus-visible {
	outline: 3px solid #163561;
}

/* Hidden inline content shown in lightbox (already handled by Fancybox) */
#fancybox-video-wrapper {
	padding: 20px;
	color: #333;
	max-width: 90%;
	margin: 0 auto;
}

.video.fancybox-content,
.fancybox__content:has(.fancybox-video-wrapper),
.fancybox__html:has(.fancybox-video-wrapper) {
	background: none !important;
	width: 60%;
	max-width: 900px;
	padding: 30px;
}

.fancybox__content .fancybox-video-wrapper,
.fancybox__html .fancybox-video-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border-radius: 8px;
	margin: 0 auto 20px auto;
}

.fancybox__content .fancybox-video-wrapper iframe,
.fancybox__html .fancybox-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

/* Screen reader only helper (if used in shortcode markup) */
.sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 900px) {
	.video.fancybox-content,
	.fancybox__content:has(.fancybox-video-wrapper),
	.fancybox__html:has(.fancybox-video-wrapper) {
		width: 95%;
	}
}
