/* MC Wear — Video Feature
 *
 * Bleed-bg media block (1440×820 desktop, 744×820 tablet, 375×571 mobile)
 * with a top-left heading, bottom-left paragraph, and bottom-right play
 * button. Click the play button to swap the bg image for an autoplaying
 * YouTube iframe (JS).
 *
 * Specificity bumped (.mcw-vidfeat.mcw-vidfeat ...) to beat Elementor Site
 * Settings (0,1,1) without using !important.
 */

.mcw-vidfeat.mcw-vidfeat {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	color: #ffffff;
}

.mcw-vidfeat.mcw-vidfeat *,
.mcw-vidfeat.mcw-vidfeat *::before,
.mcw-vidfeat.mcw-vidfeat *::after {
	box-sizing: border-box;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__stage {
	position: relative;
	width: 100%;
	height: 820px;
	overflow: hidden;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1440px;
	height: 100%;
	margin: 0 auto;
	padding: 80px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__media {
	position: absolute;
	inset: 0;
	background-image: var(--mcw-vidfeat-bg-desktop);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	transition: opacity 0.3s ease;
}

/* ---------- Heading ---------- */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__heading {
	position: relative;
	z-index: 2;
	margin: 0;
	max-width: 811px;
	font-family: "Ivy Mode", "Times New Roman", serif;
	font-weight: 300;
	font-size: 56px;
	line-height: 56px;
	letter-spacing: 1px;
	color: #ffffff;
	word-break: break-word;
}

/* ---------- Footer row ---------- */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__foot {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__body {
	flex: 0 1 511px;
	margin: 0;
	font-family: "Mona Sans Expanded", "Mona Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 1px;
	text-transform: capitalize;
	color: #ffffff;
	word-break: break-word;
}

/* ---------- Play button ---------- */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play {
	flex-shrink: 0;
	display: inline-block;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	line-height: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play:hover,
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play:focus-visible {
	opacity: 0.85;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play-icon {
	display: block;
	width: 80px;
	height: 56px;
}

/* ---------- Active video state ---------- */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__stage.is-playing .mcw-vidfeat__media {
	opacity: 0;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__iframe-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000000;
	pointer-events: none;
	overflow: hidden;
	container-type: size;
}

/* Cover-fit: scale the 16:9 YouTube/Vimeo iframe so the video fills the stage
 * with no letterbox bars. cqw/cqh reference this wrap as the container. */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__iframe-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	display: block;
	width: max(100cqw, calc(100cqh * 16 / 9));
	height: max(100cqh, calc(100cqw * 9 / 16));
}

/* Self-hosted video needs no aspect trick — object-fit crops it directly,
 * which also handles source files that aren't 16:9. */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__iframe-wrap video {
	position: absolute;
	inset: 0;
	border: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Container: Boxed (1280 max, 80px outer padding) ---------- */
.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--boxed {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 80px;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--boxed .mcw-vidfeat__stage {
	max-width: 1280px;
	margin: 0 auto;
}

/* ---------- Theme 2 — kicker + serif heading + pill play button ---------- */

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__scrim {
	display: none;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__inner {
	padding: 60px;
	justify-content: flex-end;
	align-items: stretch;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__foot {
	align-items: center;
	gap: 32px;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__kicker {
	margin: 0;
	font-family: "Mona Sans Expanded", "Mona Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 1px;
	text-transform: capitalize;
	color: #ffffff;
}

.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__heading--alt {
	margin: 0;
	max-width: none;
	font-family: "Ivy Mode", "Times New Roman", serif;
	font-weight: 300;
	font-size: 56px;
	line-height: 72px;
	letter-spacing: 1px;
	color: #ffffff;
	text-transform: none;
	word-break: break-word;
}

/* Theme 2 play button — raw icon, no padding/background. Same hover as theme 1. */
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play--pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border: 0;
	border-radius: 0;
	line-height: 0;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play--pill:hover,
.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play--pill:focus-visible {
	background: transparent;
	opacity: 0.85;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play--pill:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__play-icon--sm {
	display: block;
	width: 80px;
	height: 56px;
}

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1440px) {
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__inner {
		padding-left: 32px;
		padding-right: 32px;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--boxed {
		padding: 0 32px;
	}

	/* Theme 2: drop boxed wrapper on tablet — full-bleed below desktop. */
	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2.mcw-vidfeat--boxed {
		max-width: none;
		padding: 0;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2.mcw-vidfeat--boxed .mcw-vidfeat__stage {
		max-width: none;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__inner {
		padding: 80px 32px;
	}
}

@media (max-width: 1024px) {
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__stage {
		height: 820px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__media {
		background-image: var(--mcw-vidfeat-bg-tablet, var(--mcw-vidfeat-bg-desktop));
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__heading {
		font-size: 40px;
		line-height: 60px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__body {
		flex: 0 1 511px;
		font-size: 16px;
		line-height: 24px;
		text-transform: uppercase;
	}
	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__heading--alt {
		font-size: 40px;
		line-height: 60px;
		max-width: 361px;
	}
	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__kicker {
		font-size: 18px;
		line-height: 28px;
	}
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__stage {
		height: 571px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__media {
		background-image: var(--mcw-vidfeat-bg-mobile, var(--mcw-vidfeat-bg-tablet, var(--mcw-vidfeat-bg-desktop)));
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__heading {
		font-size: 32px;
		line-height: 40px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__foot {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 32px;
	}
	.mcw-vidfeat.mcw-vidfeat .mcw-vidfeat__body {
		flex: 1 1 auto;
		width: 100%;
		font-size: 16px;
		line-height: 24px;
		text-transform: uppercase;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--boxed {
		padding: 0 16px;
	}

	/* Theme 2: drop boxed wrapper on mobile — full-bleed. */
	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2.mcw-vidfeat--boxed {
		max-width: none;
		padding: 0;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2.mcw-vidfeat--boxed .mcw-vidfeat__stage {
		max-width: none;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__stage {
		height: 520px;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__inner {
		padding: 40px 16px;
	}

	/* Mobile: content stacks — text block above, play button below. */
	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__foot {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__copy {
		width: 100%;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__heading--alt {
		font-size: 28px;
		line-height: 30px;
		max-width: none;
	}

	.mcw-vidfeat.mcw-vidfeat.mcw-vidfeat--theme-2 .mcw-vidfeat__kicker {
		font-size: 14px;
		line-height: 20px;
	}
}
