/* MMU Video Wall v1.4.3 - selectors are deliberately specific so the theme can't restyle the cards */
.mmu-vw {
	--vw-red: #C70101;
	--vw-gap: 20px;
	position: relative;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}
.mmu-vw .mmu-vw-track {
	display: grid;
	grid-auto-flow: column;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.mmu-vw .mmu-vw-track::-webkit-scrollbar { display: none; }
.mmu-vw .mmu-vw-msg { padding: 40px 0; text-align: center; color: #fff; }

.mmu-vw .mmu-vw-card {
	scroll-snap-align: start;
	background: #111;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.mmu-vw .mmu-vw-media {
	position: relative !important;
	background: #000;
	overflow: hidden;
	margin: 0 !important;
}
.mmu-vw .mmu-vw-media img.mmu-vw-thumb,
.mmu-vw .mmu-vw-media .mmu-vw-player,
.mmu-vw .mmu-vw-media iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}
.mmu-vw .mmu-vw-media img.mmu-vw-thumb { object-fit: cover !important; z-index: 1; transition: opacity .4s; }
.mmu-vw .mmu-vw-card.is-playing img.mmu-vw-thumb { opacity: 0; }
.mmu-vw .mmu-vw-media .mmu-vw-player { pointer-events: none; z-index: 0; }

.mmu-vw .mmu-vw-play {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--vw-red);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.mmu-vw .mmu-vw-play::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 11px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}

.mmu-vw .mmu-vw-text {
	padding: 12px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}
.mmu-vw .mmu-vw-meta {
	font-family: inherit !important;
	font-size: 12px !important;
	line-height: 1.3 !important;
	color: #aaa !important;
	margin: 0 !important;
}
.mmu-vw .mmu-vw-meta b { color: #fff !important; font-weight: 700 !important; }
.mmu-vw .mmu-vw-title {
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
	margin: 0 !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mmu-vw .mmu-vw-summary {
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	font-weight: 400 !important;
	color: #ccc !important;
	margin: 0 !important;
	padding: 0 !important;
}
.mmu-vw .mmu-vw-version { font-size: 11px; color: rgba(255, 255, 255, .45); text-align: right; padding: 8px 2px 0; }

/* ---------- Mobile: one full-screen card at a time, swipe across ---------- */
@media (max-width: 767px) {
	.mmu-vw .mmu-vw-track {
		grid-auto-columns: 100%;
		height: calc(100svh - var(--vw-bar-top, 42px));
	}
	.mmu-vw .mmu-vw-card { height: 100%; border-radius: 0; }
	.mmu-vw .mmu-vw-media { aspect-ratio: 16 / 9; flex: 0 0 auto; }
	.mmu-vw .is-short .mmu-vw-media { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
	.mmu-vw .is-short img.mmu-vw-thumb { object-fit: contain !important; }
	.mmu-vw .mmu-vw-title { font-size: 19px !important; -webkit-line-clamp: 3; }
	.mmu-vw .mmu-vw-summary { font-size: 16px !important; }
	.mmu-vw .is-short .mmu-vw-title { font-size: 16px !important; -webkit-line-clamp: 2; }
	.mmu-vw .is-short .mmu-vw-summary { font-size: 14px !important; }
	.mmu-vw .mmu-vw-arrow { display: none !important; }
	.mmu-vw .mmu-vw-version { position: absolute; right: 8px; bottom: 4px; padding: 0; }
}

/* ---------- Desktop / tablet: rows of 4 (3 on tablet), scroll down the page ---------- */
@media (min-width: 768px) {
	.mmu-vw .mmu-vw-track {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--vw-gap);
		overflow: visible;
		scroll-snap-type: none;
	}
	.mmu-vw .mmu-vw-media { aspect-ratio: 16 / 9; }
	.mmu-vw .mmu-vw-summary {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.mmu-vw .mmu-vw-card:hover .mmu-vw-title { text-decoration: underline; text-decoration-color: var(--vw-red); text-underline-offset: 3px; }
	.mmu-vw .mmu-vw-arrow { display: none !important; }
}
@media (min-width: 1100px) {
	.mmu-vw .mmu-vw-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Viewer: watch with sound and controls, on the page ---------- */
.mmu-vw-viewer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.mmu-vw-viewer-box { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.mmu-vw-viewer.is-short .mmu-vw-viewer-box { width: min(420px, 100%); }
.mmu-vw-viewer-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.mmu-vw-viewer.is-short .mmu-vw-viewer-frame { aspect-ratio: 9 / 16; max-height: calc(100svh - 160px); margin: 0 auto; width: 100%; }
.mmu-vw-viewer-frame iframe,
.mmu-vw-viewer-frame > div {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	border: 0 !important;
}
.mmu-vw-viewer-text { padding: 14px 2px 0; color: #fff; }
.mmu-vw-viewer-text .mmu-vw-title { font-size: 18px !important; -webkit-line-clamp: unset; display: block; }
.mmu-vw-viewer-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: var(--vw-red);
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	padding: 0;
	cursor: pointer;
	z-index: 2;
}
@media (max-width: 767px) {
	.mmu-vw-viewer { padding: 60px 0 0; align-items: flex-start; }
	.mmu-vw-viewer.is-short .mmu-vw-viewer-frame { max-height: calc(100svh - 190px); }
	.mmu-vw-viewer-text { padding: 12px 14px 0; }
}

/* ---------- Phone on its side: the video fills the whole screen ---------- */
@media (orientation: landscape) and (max-height: 520px) {
	.mmu-vw-viewer { padding: 0; align-items: center; justify-content: center; background: #000; }
	.mmu-vw-viewer .mmu-vw-viewer-box,
	.mmu-vw-viewer.is-short .mmu-vw-viewer-box { width: 100vw; height: 100svh; max-height: none; }
	.mmu-vw-viewer .mmu-vw-viewer-frame,
	.mmu-vw-viewer.is-short .mmu-vw-viewer-frame { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
	.mmu-vw-viewer .mmu-vw-viewer-text { display: none; }
	.mmu-vw-viewer .mmu-vw-viewer-close { top: 8px; right: 8px; width: 34px; height: 34px; line-height: 34px; font-size: 22px; background: rgba(0, 0, 0, .55); }
}

/* ---------- Mobile takeover, like the news wall: mini bar on top, wall fills the rest ---------- */
.mmu-vw-bar { display: none; }
@media (max-width: 767px) {
	body.mmu-vw-takeover { overflow: hidden; }
	body.mmu-vw-takeover #masthead,
	body.mmu-vw-takeover .site-header,
	body.mmu-vw-takeover .elementor-location-header,
	body.mmu-vw-takeover .ehf-header { display: none !important; }
	.mmu-vw-bar {
		display: flex;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 42px;
		padding: 0 14px;
		background: #C70101;
		z-index: 100000;
		box-sizing: border-box;
		justify-content: space-between;
	}
	.mmu-vw-burger {
		width: 34px; height: 30px; padding: 6px 5px; border: 0; background: transparent !important;
		display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
	}
	.mmu-vw-burger span { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
	.mmu-vw-bar.is-open .mmu-vw-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.mmu-vw-bar.is-open .mmu-vw-burger span:nth-child(2) { opacity: 0; }
	.mmu-vw-bar.is-open .mmu-vw-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
	.mmu-vw-menu {
		display: none; position: absolute; top: 42px; left: 0; right: 0;
		background: #111; border-top: 2px solid #C70101; box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
		max-height: calc(100svh - 100px); overflow-y: auto;
	}
	.mmu-vw-bar.is-open .mmu-vw-menu { display: block; }
	.mmu-vw-menu ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
	.mmu-vw-menu li { margin: 0 !important; border-bottom: 1px solid #222; }
	.mmu-vw-menu a {
		display: block; padding: 13px 16px; color: #fff !important; text-decoration: none !important;
		font-family: Anton, Impact, sans-serif !important; font-size: 18px !important; letter-spacing: .03em; text-transform: uppercase;
	}
	.mmu-vw-menu .current-menu-item > a { color: #C70101 !important; }
	.mmu-vw-bar a.mmu-vw-bar-home {
		font-family: Anton, Impact, sans-serif !important;
		font-size: 22px !important;
		line-height: 1 !important;
		letter-spacing: .02em;
		text-transform: uppercase;
		color: #fff !important;
		text-decoration: none !important;
	}
	.mmu-vw {
		--vw-bar-top: 42px;
		position: fixed !important;
		top: 42px;
		left: 0;
		right: 0;
		z-index: 99999;
		background: #000;
	}
	.admin-bar .mmu-vw-bar { top: 46px; }
	.admin-bar .mmu-vw { top: 88px; --vw-bar-top: 88px; }
}
