/* ==========================================================================
   Leonardo Madonna — main styles
   Thin burgundy frame, white page, classical serif type.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/eb-garamond-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/eb-garamond-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/eb-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/eb-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
	--lm-burgundy: #6a1a1f;   /* the frame: deep madder lake */
	--lm-burgundy-soft: #8a3a3e;
	--lm-gold: #a88b56;       /* thin gilt rule inside the frame */
	--lm-ink: #26211d;
	--lm-muted: #6e655d;
	--lm-rule: #e4ddd3;
	--lm-paper: #ffffff;
	--lm-surround: #f4f1ec;

	--lm-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
	--lm-text: "EB Garamond", "Garamond", "Georgia", serif;

	--lm-measure: 40rem;
	--lm-radius: 10px;
	--lm-gap: clamp(1.25rem, 3vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lm-surround);
	color: var(--lm-ink);
	font-family: var(--lm-text);
	font-size: 1.1875rem;          /* 19px */
	line-height: 1.65;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--lm-burgundy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lm-burgundy-soft); }
:focus-visible { outline: 2px solid var(--lm-burgundy); outline-offset: 3px; border-radius: 2px; }

.lm-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--lm-paper); padding: .5rem 1rem; z-index: 100;
}
.lm-skip:focus { left: 1rem; top: 1rem; }

/* ---------- The frame ----------------------------------------------------- */

.lm-frame {
	position: relative;
	margin: clamp(8px, 1.4vw, 18px);
	min-height: calc(100vh - 2 * clamp(8px, 1.4vw, 18px));
	background: var(--lm-paper);
	border: 2px solid var(--lm-burgundy);
	border-radius: var(--lm-radius);
	box-shadow: 0 1px 2px rgba(60, 30, 20, .06);
	display: flex;
	flex-direction: column;
	overflow: clip;
}

/* thin gilt line just inside the burgundy, like a picture-frame slip */
.lm-frame::after {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid var(--lm-gold);
	border-radius: calc(var(--lm-radius) - 5px);
	pointer-events: none;
	z-index: 30;
}

/* ---------- Banner (the painted hands with the site name) ---------------- */

.lm-banner {
	padding: clamp(14px, 2.4vw, 30px) var(--lm-gap) clamp(10px, 1.6vw, 18px);
	text-align: center;
}
.lm-banner a { display: inline-block; max-width: 1196px; width: 100%; }
.lm-banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 28px -18px rgba(50, 20, 15, .55);
}
@media (max-width: 960px) {
	.lm-header--under-banner .lm-header__inner { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
	.lm-banner img { animation: lm-drop 1s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes lm-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
}

/* ---------- Header -------------------------------------------------------- */

.lm-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--lm-rule);
}
@supports (backdrop-filter: blur(6px)) {
	.lm-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); }
}

.lm-header__inner {
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.1rem var(--lm-gap);
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.lm-brand {
	font-family: var(--lm-display);
	font-weight: 500;
	font-size: 1.65rem;
	letter-spacing: .01em;
	color: var(--lm-ink);
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}
.lm-brand:hover { color: var(--lm-burgundy); }
.lm-brand__img { display: block; max-height: 56px; width: auto; border-radius: 6px; }

.lm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.lm-menu li { margin: 0; }
.lm-menu a {
	font-family: var(--lm-text);
	font-size: 1.22rem;
	color: var(--lm-ink);
	text-decoration: none;
	padding: .3rem 0;
	border-bottom: 1px solid transparent;
	transition: border-color .2s, color .2s;
}
.lm-menu a:hover { color: var(--lm-burgundy); border-bottom-color: currentColor; }
.lm-menu .current-menu-item > a,
.lm-menu a[aria-current="page"] { color: var(--lm-burgundy); border-bottom-color: currentColor; }

.lm-burger {
	display: none;
	align-items: center; gap: .6rem;
	background: none; border: 1px solid var(--lm-rule); border-radius: 6px;
	padding: .45rem .75rem; cursor: pointer;
	font: inherit; font-size: 1rem; color: var(--lm-ink);
}
.lm-burger__lines, .lm-burger__lines::before, .lm-burger__lines::after {
	display: block; width: 18px; height: 1px; background: currentColor; position: relative;
}
.lm-burger__lines::before, .lm-burger__lines::after { content: ""; position: absolute; left: 0; }
.lm-burger__lines::before { top: -5px; }
.lm-burger__lines::after { top: 5px; }

/* reading progress — thin burgundy line under the header on report pages */
.lm-progress { height: 2px; background: transparent; }
.lm-progress span { display: block; height: 100%; width: 0; background: var(--lm-burgundy); }
body:not(.page) .lm-progress, body.home .lm-progress { display: none; }

@media (max-width: 960px) {
	.lm-burger { display: inline-flex; }
	.lm-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--lm-paper);
		border-bottom: 1px solid var(--lm-rule);
		padding: .5rem var(--lm-gap) 1.25rem;
		display: none;
	}
	.lm-nav.is-open { display: block; }
	.lm-nav .lm-menu { flex-direction: column; gap: 0; }
	.lm-nav .lm-menu a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--lm-rule); }
}

.lm-header--under-banner .lm-header__inner { justify-content: center; padding-top: .7rem; padding-bottom: .7rem; }
.lm-header--under-banner .lm-brand { display: none; }

/* ---------- Home: painting and label -------------------------------------- */

main { flex: 1 0 auto; }

.lm-wall {
	padding: clamp(2.5rem, 6vw, 5.5rem) var(--lm-gap) clamp(3rem, 6vw, 5rem);
}
.lm-wall__inner {
	max-width: 70rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.lm-wall__painting {
	margin: 0;
	justify-self: end;
	width: fit-content;
	max-width: 100%;
	padding: 12px;
	background: var(--lm-paper);
	border: 1px solid var(--lm-burgundy);
	border-radius: 8px;
	box-shadow: 0 18px 40px -24px rgba(50, 20, 15, .45);
}
.lm-wall__painting img {
	/* the whole painting is always visible: never cropped, scaled to fit the screen */
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	border-radius: 3px;
	cursor: zoom-in;
}
.lm-wall__empty {
	aspect-ratio: 50 / 72; display: grid; place-items: center; text-align: center;
	color: var(--lm-muted); background: var(--lm-surround); padding: 2rem; border-radius: 3px;
}

.lm-label { max-width: 26rem; }
.lm-label__artist {
	margin: 0 0 .75rem;
	font-size: 1.1rem;
	color: var(--lm-muted);
	font-style: italic;
}
.lm-label__title {
	margin: 0;
	font-family: var(--lm-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -.005em;
	color: var(--lm-ink);
	text-wrap: balance;
}
.lm-label__date {
	margin: 1rem 0 0;
	font-family: var(--lm-display);
	font-size: 1.45rem;
	color: var(--lm-burgundy);
}
.lm-label__facts {
	margin: 1.75rem 0 0;
	padding: 1.1rem 0 0;
	border-top: 1px solid var(--lm-rule);
	display: grid; gap: .45rem;
}
.lm-label__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.lm-label__facts dt { color: var(--lm-muted); font-size: 1rem; }
.lm-label__facts dd { margin: 0; font-size: 1.05rem; }
.lm-label__link {
	display: inline-block;
	margin-top: 2rem;
	padding: .6rem 1.3rem;
	border: 1px solid var(--lm-burgundy);
	border-radius: 999px;
	text-decoration: none;
	font-size: 1.02rem;
	transition: background .2s, color .2s;
}
.lm-label__link:hover { background: var(--lm-burgundy); color: var(--lm-paper); }

/* the one motion moment: the painting settles in on first load */
@media (prefers-reduced-motion: no-preference) {
	.lm-wall__painting { animation: lm-settle 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
	.lm-label { animation: lm-fade .9s .55s ease-out both; }
	@keyframes lm-settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 820px) {
	.lm-wall__inner { grid-template-columns: 1fr; }
	.lm-wall__painting { justify-self: center; }
	.lm-wall__painting img { max-height: 80vh; }
	.lm-label { max-width: 34rem; margin: 0 auto; }
}

/* ---------- Home: introduction -------------------------------------------- */

.lm-intro {
	padding: clamp(3rem, 6vw, 5rem) var(--lm-gap);
	border-top: 1px solid var(--lm-rule);
}
.lm-intro .lm-prose > p:first-child {
	font-size: 1.35rem;
	line-height: 1.55;
}

/* ---------- Home: research list ------------------------------------------- */

.lm-research {
	padding: clamp(3rem, 6vw, 5rem) var(--lm-gap) clamp(3.5rem, 7vw, 6rem);
	background: var(--lm-surround);
	border-top: 1px solid var(--lm-rule);
}
.lm-research__inner { max-width: 58rem; margin: 0 auto; }
.lm-research__title {
	margin: 0;
	font-family: var(--lm-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	line-height: 1.1;
}
.lm-research__lead { margin: .6rem 0 2.25rem; color: var(--lm-muted); max-width: var(--lm-measure); }

.lm-reports { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lm-burgundy); }
.lm-report { margin: 0; border-bottom: 1px solid var(--lm-rule); }
.lm-report a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "title year" "who who" "about about";
	column-gap: 2rem;
	padding: 1.35rem .25rem;
	text-decoration: none;
	color: var(--lm-ink);
	transition: background .2s, padding .2s;
}
.lm-report a:hover { background: var(--lm-paper); padding-left: 1rem; padding-right: 1rem; }
.lm-report__title { grid-area: title; font-family: var(--lm-display); font-size: 1.75rem; line-height: 1.15; color: var(--lm-burgundy); }
.lm-report__year { grid-area: year; align-self: baseline; color: var(--lm-muted); font-variant-numeric: oldstyle-nums; }
.lm-report__who { grid-area: who; margin-top: .3rem; font-style: italic; }
.lm-report__about { grid-area: about; margin-top: .2rem; color: var(--lm-muted); font-size: 1.02rem; }

/* ---------- Documents (reports) ------------------------------------------- */

.lm-doc { padding: clamp(2.5rem, 6vw, 5rem) var(--lm-gap) clamp(3rem, 6vw, 5rem); }
.lm-article { max-width: var(--lm-measure); margin: 0 auto; }
.lm-article__head { margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--lm-burgundy); }
.lm-article__title {
	margin: 0;
	font-family: var(--lm-display);
	font-weight: 400;
	font-size: clamp(2.3rem, 4.6vw, 3.5rem);
	line-height: 1.05;
	text-wrap: balance;
}
.lm-article__title a { color: inherit; text-decoration: none; }
.lm-article__by { margin: 1rem 0 0; font-style: italic; color: var(--lm-ink); }
.lm-article__org, .lm-article__year { display: block; font-style: normal; color: var(--lm-muted); font-size: 1.02rem; }

/* prose */
.lm-prose { max-width: var(--lm-measure); margin: 0 auto; hyphens: auto; overflow-wrap: break-word; }
.lm-prose > * { margin-top: 0; margin-bottom: 1.05em; }
.lm-prose h2 {
	font-family: var(--lm-display); font-weight: 500;
	font-size: 1.85rem; line-height: 1.15;
	margin: 2.2em 0 .7em;
}
.lm-prose h3 { font-family: var(--lm-display); font-weight: 500; font-size: 1.45rem; margin: 1.8em 0 .5em; }
.lm-prose h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.lm-prose h2 strong, .lm-prose h3 strong { font-weight: inherit; }
.lm-prose .has-text-align-center { text-align: center; }
.lm-prose ul, .lm-prose ol { padding-left: 1.3em; }
.lm-prose blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 1px solid var(--lm-burgundy); font-style: italic; }
.lm-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1.5em 0; }
.lm-prose td, .lm-prose th { border-bottom: 1px solid var(--lm-rule); padding: .45rem .6rem; vertical-align: top; text-align: left; }
.lm-prose sup { line-height: 0; }
.lm-prose a { overflow-wrap: anywhere; }

/* figures: every image sits in the same thin frame as the painting */
.lm-prose img {
	display: block;
	margin: 0 auto;
	padding: 6px;
	background: var(--lm-paper);
	border: 1px solid var(--lm-rule);
	border-radius: 6px;
	cursor: zoom-in;
	transition: border-color .2s;
}
.lm-prose img:hover { border-color: var(--lm-burgundy); }
.lm-prose .lm-img { margin: 2em 0; }
.lm-prose .lm-img + p:not(.lm-img) { font-size: 1rem; color: var(--lm-muted); }
.lm-prose .wp-caption-text, .lm-prose figcaption { font-size: 1rem; color: var(--lm-muted); text-align: center; margin-top: .5rem; }

/* footnote links */
.lm-fn { text-decoration: none; font-variant-position: super; scroll-margin-top: 7rem; }
.lm-prose [id] { scroll-margin-top: 7rem; }

/* note for the site editor where a picture or video is still missing */
.lm-missing {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--lm-burgundy-soft);
	border-radius: 6px;
	background: #fbf6f4;
	color: var(--lm-burgundy);
	font-size: 1rem;
}

/* other reports at the end of a report */
.lm-more { max-width: var(--lm-measure); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-top: 1.5rem; border-top: 1px solid var(--lm-burgundy); }
.lm-more__title { margin: 0 0 1rem; font-family: var(--lm-display); font-weight: 500; font-size: 1.6rem; }
.lm-more ul { list-style: none; margin: 0; padding: 0; }
.lm-more li { border-bottom: 1px solid var(--lm-rule); }
.lm-more a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; text-decoration: none; }
.lm-more small { color: var(--lm-muted); font-size: .95rem; font-style: italic; text-align: right; }

/* ---------- Footer -------------------------------------------------------- */

.lm-footer {
	border-top: 1px solid var(--lm-rule);
}
.lm-footer__inner {
	max-width: 76rem; margin: 0 auto;
	padding: 2rem var(--lm-gap) 2.25rem;
	display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center;
}
.lm-footer__brand { margin: 0; font-family: var(--lm-display); font-size: 1.35rem; }
.lm-footer .lm-menu { justify-content: center; gap: .25rem 1.1rem; }
.lm-footer .lm-menu a { font-size: .95rem; color: var(--lm-muted); white-space: nowrap; }
@media (min-width: 1280px) { .lm-footer .lm-menu { flex-wrap: nowrap; } }
.lm-footer__copy { white-space: nowrap; }
.lm-footer__copy { margin: 0; color: var(--lm-muted); font-size: .95rem; }
@media (max-width: 1279px) {
	.lm-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.lm-footer .lm-menu { justify-content: center; }
}

/* ---------- Dedication frame (Hermitage Publication) -------------------- */

.lm-prose .lm-dedication {
	margin: 0 auto 2.5rem;
	padding: 1.6rem 1.5rem 1.4rem;
	text-align: center;
	border: 1px solid var(--lm-burgundy);
	border-radius: 8px;
	box-shadow: inset 0 0 0 4px var(--lm-paper), inset 0 0 0 5px var(--lm-gold);
}
.lm-prose .lm-dedication p { margin: 0; }
.lm-prose .lm-dedication__lead { font-style: italic; color: var(--lm-muted); font-size: 1.05rem; max-width: 30rem; margin: 0 auto !important; }
.lm-prose .lm-dedication__name { font-family: var(--lm-display); font-size: 1.9rem; line-height: 1.2; margin-top: .7rem !important; color: var(--lm-ink); }
.lm-prose .lm-dedication__years { font-family: var(--lm-display); font-size: 1.3rem; color: var(--lm-burgundy); margin-top: .2rem !important; }

/* footnote list */
.lm-prose .lm-footnote { font-size: 1rem; margin-bottom: .45em; word-break: break-all; hyphens: none; }
.lm-prose .lm-footnote .lm-fn { word-break: normal; }
.lm-prose .lm-footnote .lm-fn { font-variant-position: normal; margin-right: .25rem; }

/* ---------- Copyright with LP mark --------------------------------------- */

.lm-copy { display: inline-flex; align-items: center; gap: .55rem; }
.lm-lp { flex: none; display: block; }
.lm-label__copy { margin: 1.25rem 0 0; color: var(--lm-muted); font-size: .98rem; }
.lm-footer__copy .lm-copy { justify-content: center; }

/* ---------- Timeline of events (home) ------------------------------------- */

.lm-prose .lm-timeline-title {
	font-family: var(--lm-display); font-weight: 400;
	font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1;
	margin: 3em 0 1.2em; padding-top: 1.5rem;
	border-top: 1px solid var(--lm-burgundy);
}
.lm-prose .lm-event {
	position: relative;
	margin: 0 0 3rem;
	padding: 0 0 0 1.75rem;
	border-left: 1px solid var(--lm-rule);
}
.lm-prose .lm-event::before {
	content: "";
	position: absolute; left: -6px; top: .55rem;
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--lm-paper);
	border: 1px solid var(--lm-burgundy);
}
.lm-prose .lm-event__date {
	margin: 0 0 .2rem;
	font-family: var(--lm-display);
	font-size: 1.3rem;
	color: var(--lm-burgundy);
}
.lm-prose .lm-event h3 { margin: 0 0 .7rem; font-size: 1.7rem; line-height: 1.15; }
.lm-prose .lm-event > p { margin: 0 0 .9em; }
.lm-prose .lm-credit, .lm-prose .lm-caption { font-size: 1rem; color: var(--lm-muted); }
.lm-prose .lm-caption { margin-top: .5rem; }

/* videos: 16:9, framed like the images */
.lm-prose .lm-video {
	position: relative;
	margin: 1.25rem 0 .4rem;
	padding: 6px;
	border: 1px solid var(--lm-rule);
	border-radius: 6px;
	background: var(--lm-paper);
}
.lm-prose .lm-video iframe {
	display: block; width: 100%; height: auto;
	aspect-ratio: 16 / 9;
	border: 0; border-radius: 3px;
	background: #111;
}
.lm-prose .lm-photo { margin: 1.25rem 0 .4rem; }
.lm-prose .lm-photo img { width: 100%; }

.lm-prose .lm-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin: 1.25rem 0 .4rem;
}
.lm-prose .lm-gallery { align-items: start; }
.lm-prose .lm-gallery br { display: none; }
.lm-prose .lm-gallery img { width: 100%; height: auto; margin: 0; }
@media (max-width: 600px) { .lm-prose .lm-gallery { grid-template-columns: 1fr; } }

/* ---------- Lightbox ------------------------------------------------------ */

.lm-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(24, 18, 16, .92);
	display: grid; place-items: center;
	padding: 3.5rem 1rem 1.5rem;
}
.lm-lightbox[hidden] { display: none; }
.lm-lightbox__fig { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; gap: .75rem; justify-items: center; }
.lm-lightbox__fig img { max-height: calc(100vh - 7rem); width: auto; border-radius: 4px; background: #fff; }
.lm-lightbox__fig figcaption { color: #e9e3da; font-size: 1rem; text-align: center; max-width: 50rem; }
.lm-lightbox__close {
	position: absolute; top: 1rem; right: 1rem;
	background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
	padding: .4rem 1rem; font: inherit; font-size: 1rem; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
	.lm-lightbox:not([hidden]) { animation: lm-fade .2s ease-out; }
}

@media (max-width: 600px) {
	body { font-size: 1.125rem; }
	.lm-brand { font-size: 1.4rem; }
	.lm-frame::after { inset: 4px; }
}

@media print {
	.lm-header, .lm-footer, .lm-more, .lm-lightbox { display: none !important; }
	.lm-frame { border: 0; box-shadow: none; margin: 0; }
	.lm-frame::after { display: none; }
	body { background: #fff; }
}

/* Small 4-in-a-row gallery (Return page) */
.lm-prose .lm-gallery.lm-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .lm-prose .lm-gallery.lm-gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lm-prose .lm-materials td, .lm-prose .lm-materials th { vertical-align: top; text-align: left; }

/* Five catalogue and provenance photographs on the Return page. */
.lm-prose .lm-gallery.lm-gallery--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.lm-prose .lm-gallery.lm-gallery--5 img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
@media (max-width: 600px) { .lm-prose .lm-gallery.lm-gallery--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hermitage: portrait beside the opening dedication and compact references. */
.lm-hermitage-content { display: flow-root; }
.lm-prose .lm-hermitage-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 13rem;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}
.lm-prose .lm-hermitage-intro .lm-dedication { margin: 0; }
.lm-prose .lm-hermitage-portrait { float: right; width: 13rem; margin: 0 0 1.25rem 1.5rem; }
.lm-prose .lm-hermitage-portrait img { width: 100%; height: auto; }
.lm-prose .lm-hermitage-intro .lm-hermitage-portrait { float: none; width: 100%; margin: 0; }
.lm-prose .lm-hermitage-comparison { width: 13rem; max-width: 100%; margin: 2rem auto; }
.lm-prose .lm-hermitage-comparison img { width: 100%; height: auto; }
.lm-hermitage-content #lm-hermitage-bibliography { scroll-margin-top: 7rem; }
.lm-footer .lm-menu { flex-wrap: wrap; }
.lm-hermitage-content .lm-bibliography p,
.lm-hermitage-content .lm-bibliography li,
.lm-hermitage-content .lm-footnote { line-height: 1.55; margin: 0 0 1.55em !important; }
.lm-hermitage-content .lm-bibliography li > p { margin: 0 !important; }
.lm-hermitage-content .lm-bibliography > :last-child { margin-bottom: 0 !important; }
.lm-prose .lm-hermitage-caption-row {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
	gap: 1.25rem;
	align-items: start;
	margin: 0 0 2.5rem;
}
.lm-prose .lm-hermitage-caption-row__author p { margin: 0 0 1.05em; }
.lm-prose .lm-hermitage-note {
	padding: 1.25rem;
	border: 1px solid var(--lm-burgundy);
	border-radius: 8px;
	box-shadow: inset 0 0 0 4px var(--lm-paper), inset 0 0 0 5px var(--lm-gold);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.55;
	color: var(--lm-muted);
}
.lm-prose .lm-hermitage-note p { margin: 0; }
@media (max-width: 600px) {
	.lm-prose .lm-hermitage-caption-row { grid-template-columns: 1fr; }
	.lm-prose .lm-hermitage-intro { grid-template-columns: 1fr; }
	.lm-prose .lm-hermitage-portrait,
	.lm-prose .lm-hermitage-intro .lm-hermitage-portrait { float: none; width: min(100%, 20rem); margin: 0 auto 1.25rem; justify-self: center; }
}
