/* =========================================================================
 * MSH – Video Slider
 * Native CSS scroll-snap track — same mechanics as msh-manual-slider /
 * msh-cpt-blog-slider / msh-media-coverage-slider. No Swiper/owl-carousel
 * dependency.
 * ========================================================================= */

.msh-vs {
	--msh-vs-visible: 1;
	--msh-vs-gap: 20px;
	position: relative;
	width: 100%;
}

.msh-vs__stage {
	overflow: hidden;
}

.msh-vs__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: var(--msh-vs-gap);
	/* Hide native scrollbar; arrows/dots are the intended controls. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.msh-vs__track::-webkit-scrollbar {
	display: none;
}

.msh-vs__slide {
	flex: 0 0 calc((100% - (var(--msh-vs-visible) - 1) * var(--msh-vs-gap)) / var(--msh-vs-visible));
	/* No min-width hard floor — matches the proven msh-media-coverage-slider
	   pattern; this is what caused the "1.5 cards visible" bug on
	   msh-manual-slider when a min-width was present. */
	scroll-snap-align: start;
	/* Forces every snap point to be honored even under a fast or
	   interrupted gesture, instead of allowing scroll momentum to carry
	   past one — same family of "lands between two slides" issue as the
	   JS-side verifyLanded() correction in msh-video-slider.js. */
	scroll-snap-stop: always;
}

.msh-vs__video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #1a1a1a;
	overflow: hidden;
	border-radius: 4px;
}

.msh-vs__video-wrap--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: 20px;
}

.msh-vs__play-btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.msh-vs__play-btn:focus-visible:not(.msh-vs__play-btn--focused),
.msh-vs__play-btn:focus-within:not(.msh-vs__play-btn--focused) {
	outline: none !important;
}

.msh-vs__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.msh-vs__play-icon {
	position: relative;
	z-index: 1;
	display: flex;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.msh-vs__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.msh-vs__title {
	margin: 16px 0 4px;
}

.msh-vs__content {
	margin-top: 8px;
	padding: 4px 20px;
	border-left: 3px solid #e0a13a;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.msh-vs__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background-color: #00695f;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.msh-vs__nav:hover {
	background-color: #004d43;
}

.msh-vs__nav svg {
	stroke: #fff;
}

/* Overrides assets/css/custom.css line 30-31:
 *   button:focus-visible, button:focus-within { outline: 2px solid #343434 !important; }
 * That's a sitewide accessibility default for every <button> on the site —
 * correct to leave in place globally. But :focus-within has no click
 * suppression (unlike :focus-visible), so it was firing on every click.
 * !important is required here because the source rule is !important;
 * specificity alone can't win against that. */
.msh-vs__nav:focus-visible:not(.msh-vs__nav--focused),
.msh-vs__nav:focus-within:not(.msh-vs__nav--focused) {
	outline: none !important;
}

.msh-vs__nav--focused {
	outline: 3px solid #00695f !important;
	outline-offset: 2px !important;
}

.msh-vs__nav--prev {
	left: -60px;
}

.msh-vs__nav--next {
	right: -60px;
}

.msh-vs__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.msh-vs__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background-color: #cccccc;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.msh-vs__dot.is-active {
	background-color: #00695f;
}

.msh-vs__dot:focus-visible:not(.msh-vs__dot--focused),
.msh-vs__dot:focus-within:not(.msh-vs__dot--focused) {
	outline: none !important;
}

.msh-vs__dot--focused {
	outline: 2px solid #00695f !important;
	outline-offset: 2px !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}


.msh-vs .msh-vs__play-btn--focused {
	outline: 3px solid #fff !important;
	outline-offset: -3px !important;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.85) !important;
}

@media (max-width: 768px) {
	.msh-vs__nav--prev {
		left: 8px;
	}

	.msh-vs__nav--next {
		right: 8px;
	}
}

/* =========================================================================
 * Elementor width-reset fix — applied proactively this time.
 *
 * Elementor assigns `elementor-widget__width-initial` to a widget's
 * outermost wrapper, which sizes it to its own unclamped content instead of
 * its column slot. With a scroll-container track and no definite parent
 * width to clip against, that wrapper (and everything inside it) can
 * balloon wider than the page. This was root-caused on msh-manual-slider
 * via a console ancestor-walk; baking the fix in here from the start.
 * ========================================================================= */
.elementor-widget-msh_video_slider {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.elementor-column:has(.elementor-widget-msh_video_slider),
.elementor-widget-wrap:has(.elementor-widget-msh_video_slider),
.e-con:has(.elementor-widget-msh_video_slider),
.e-con-inner:has(.elementor-widget-msh_video_slider) {
	min-width: 0;
}