/* Mural viewer */
.mv {
	--mv-bg: #000;
	--mv-ui: #fff;
	--mv-h: 80vh;
	position: relative;
	margin: 0 0 0;
	padding: 0;
	background: var(--mv-bg);
	color: var(--mv-ui);
	direction: ltr;
	font-family: var(--mv-font, inherit);
	-webkit-tap-highlight-color: transparent;
}
.mv.mv-full,
.mv-data.mv-full {
	width: 100vw;
	max-width: 100vw !important;
	margin-inline: calc(50% - 50vw) !important;
}
body:has(.mv-full) { overflow-x: clip; }
.mv + .mv-data { margin-top: 0 !important; margin-block-start: 0 !important; }
.mv, .mv-data, .mv *, .mv *::before, .mv *::after { box-sizing: border-box; }

.mv .mv-title {
	margin: 0 !important;
	padding: clamp(28px, 5vw, 56px) 20px clamp(18px, 3vw, 30px);
	max-width: none;
	text-align: center;
	font-size: clamp(28px, 4vw, 48px);
	font-family: inherit;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mv-ui) !important;
}
h2.mv-title { font-size: clamp(24px, 3vw, 36px) !important; }

/* Stage */
.mv-stage {
	position: relative;
	height: var(--mv-h);
	min-height: 260px;
	max-height: 1100px;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	outline: none;
	user-select: none;
	-webkit-user-select: none;
}
.mv-stage.is-drag { cursor: grabbing; }
.mv-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--mv-ui); }
.mv-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0;
	transition: opacity .8s ease;
}
.mv.is-ready .mv-canvas { opacity: 1; }

/* Darker edges: feels like a curved wall */
.mv-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--mv-bg) 70%, transparent), transparent 14%, transparent 86%, color-mix(in srgb, var(--mv-bg) 70%, transparent));
	transition: opacity .6s ease;
}
.mv.is-flat .mv-stage::after { opacity: 0; }

/* Loading line */
.mv-loading {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	z-index: 3;
	background: color-mix(in srgb, var(--mv-ui) 15%, transparent);
	transition: opacity .5s ease;
}
.mv-loading span {
	display: block;
	height: 100%;
	width: 8%;
	background: var(--mv-ui);
	transition: width .2s linear;
}
.mv.is-loaded .mv-loading { opacity: 0; }

/* Hint */
.mv-hint {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	z-index: 2;
	margin: 0;
	padding: 9px 16px;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
	color: var(--mv-ui);
	background: color-mix(in srgb, var(--mv-bg) 62%, transparent);
	border: 1px solid color-mix(in srgb, var(--mv-ui) 30%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	pointer-events: none;
	transition: opacity .6s ease, transform .6s ease;
	animation: mv-hint 2.6s ease-in-out infinite;
}
.mv-hint span { display: inline-block; margin-inline-end: 6px; }
.mv.is-used .mv-hint { opacity: 0; transform: translate(-50%, 8px); animation: none; }
@keyframes mv-hint {
	0%, 100% { transform: translateX(-50%); }
	50% { transform: translateX(calc(-50% + 6px)); }
}

/* Buttons (square) */
.mv-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--mv-ui) 28%, transparent);
	border-radius: 0;
	background: color-mix(in srgb, var(--mv-bg) 55%, transparent);
	color: var(--mv-ui);
	font: inherit;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mv-btn svg { width: 20px; height: 20px; flex: none; }
.mv-btn .mv-size { font-size: 11px; opacity: .7; }
.mv-btn:hover,
.mv-btn:focus-visible,
.mv-btn[aria-pressed="true"] {
	background: var(--mv-ui);
	color: var(--mv-bg);
	border-color: var(--mv-ui);
	outline: none;
}

.mv-side {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 46px;
	height: 64px;
	transform: translateY(-50%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.mv-prev { left: 14px; }
.mv-next { right: 14px; }

/* Bar under the mural */
.mv-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border-top: 1px solid color-mix(in srgb, var(--mv-ui) 14%, transparent);
}
.mv-group { display: flex; gap: 6px; }

/* Overview strip */
.mv-map {
	display: flex;
	justify-content: center;
	min-width: 0;
	flex: 0 1 auto;
	max-width: 52%;
	height: 64px;
}
.mv-map-in {
	position: relative;
	display: block;
	height: 100%;
	max-width: 100%;
	overflow: hidden;
	line-height: 0;
	cursor: pointer;
	touch-action: none;
	border: 1px solid color-mix(in srgb, var(--mv-ui) 22%, transparent);
}
.mv-map img {
	display: block;
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: cover;
	opacity: .45;
	filter: grayscale(.3);
	pointer-events: none;
	margin: 0 !important;
}
.mv-win {
	position: absolute;
	top: 0;
	height: 100%;
	border: 1.5px solid var(--mv-ui);
	box-shadow: 0 0 0 999px color-mix(in srgb, var(--mv-bg) 25%, transparent);
	pointer-events: none;
	transition: none;
}

/* Full screen */
.mv.is-fs,
.mv.is-full {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0 !important;
}
.mv.is-full {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none !important;
}
.mv.is-fs .mv-stage,
.mv.is-full .mv-stage { flex: 1; height: auto; max-height: none; }
.mv.is-fs .mv-title,
.mv.is-full .mv-title { display: none; }
html.mv-lock, html.mv-lock body { overflow: hidden; }

/* Information below the mural */
.mv-data {
	--mv-data-bg: #000;
	--mv-data-text: #e8e8e8;
	background: var(--mv-data-bg);
	color: var(--mv-data-text);
	padding: clamp(36px, 6vw, 72px) 20px clamp(48px, 7vw, 96px);
	font-family: var(--mv-font, inherit);
}
.mv-data-in {
	max-width: var(--mv-data-w, 820px);
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.9;
}
.mv-data-in > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.mv-data-in > * + * { margin-top: 1.1em; }
.mv-data-in h1, .mv-data-in h2, .mv-data-in h3, .mv-data-in h4, .mv-data-in h5, .mv-data-in h6 {
	color: var(--mv-heading, #fff);
	line-height: 1.35;
	margin-top: 1.8em;
	margin-bottom: .5em;
}
.mv-data-in > :first-child { margin-top: 0; }
.mv-data-in a { color: var(--mv-link, #fff); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mv-data-in a:hover { text-decoration-thickness: 2px; }
.mv-data-in blockquote {
	margin-inline: 0;
	padding-inline-start: 20px;
	border-inline-start: 2px solid var(--mv-heading, #fff);
	color: var(--mv-heading, #fff);
}
.mv-data-in hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--mv-data-text) 25%, transparent); }
.mv-data-in table { width: 100%; border-collapse: collapse; }
.mv-data-in th, .mv-data-in td { border: 1px solid color-mix(in srgb, var(--mv-data-text) 25%, transparent); padding: 8px 12px; }
.mv-data-in sup a, .mv-data-in .fn { text-decoration: none; }
.mv-data-in .wp-block-footnotes {
	margin-top: 2.5em;
	padding-top: 1.2em;
	border-top: 1px solid color-mix(in srgb, var(--mv-data-text) 25%, transparent);
	font-size: 14px;
	line-height: 1.7;
	opacity: .85;
}
.mv-data-in img { max-width: 100%; height: auto; }

.mv-empty { padding: 16px; border: 1px dashed currentColor; }

/* Phones */
@media (max-width: 700px) {
	.mv-stage { height: min(var(--mv-h), 62vh); }
	.mv-bar { flex-wrap: wrap; justify-content: center; padding: 12px; gap: 10px; }
	.mv-map { order: -1; flex-basis: 100%; max-width: 100%; height: 52px; }
	.mv-mode-label { display: none; }
	.mv-side { width: 38px; height: 54px; }
	.mv-prev { left: 8px; }
	.mv-next { right: 8px; }
	.mv-hint { font-size: 13px; bottom: 14px; }
	.mv-data-in { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-hint { animation: none; }
	.mv-canvas { transition: none; }
}
