.fancybox-video img,
.fancybox-content-box img  {
    width: 100%;
    height: auto;
}

.fancybox-video span,
.fancybox-button-text {
    display: block;
    margin-top: 8px;
     text-align: center;
     font-size: 21px;
     line-height: 1.2;
     color: #444444;
margin-bottom: 30px;
text-decoration: none;
}

.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-content-box a,
.fancybox-video a { text-decoration: none;}

/* Optional: add hover/focus styles */
.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%;
	}
}