/* === Memorabilia (M4, theme 0.47.0): archive, series hubs, event pages; photos cropped on their focal point, the lightbox shows the whole frame === */

/* === Shared: cover cards (text under the photo, never on it), notes, rows === */
.mm-card a { display: grid; gap: 12px; color: inherit; }
.mm-card .photo { box-shadow: var(--shade); transition: box-shadow var(--t-quick) var(--ease); }
.mm-card a:hover .photo, .mm-card a:focus-visible .photo { box-shadow: var(--shade-up); }
.mm-card a:hover .photo img, .mm-card a:focus-visible .photo img { transform: scale(1.04); }
.mm-card .photo img { transition: transform 1.6s var(--ease); }
.mm-cap { display: grid; gap: 4px; }
.mm-cap .sub { color: var(--label); font-size: 11px; }
.mm-cap .it { color: var(--ink); font-size: 16px; line-height: 1.35; text-wrap: pretty; }
.mm-note { display: grid; gap: 4px; align-content: start; padding: 18px 18px 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: calc(var(--bar) + 120px); }
.mm-note .sub { color: var(--label); font-size: 11px; }
.mm-note .it { color: var(--ink); font-size: 16px; line-height: 1.35; }
.mm-note-at { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.mm-note:target { box-shadow: 0 0 0 2px var(--ink); }
.mm-grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 44px) clamp(16px, 1.6vw, 28px); align-items: start; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1199px) { .mm-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mm-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .mm-cap .it, .mm-note .it { font-size: 15px; } .mm-note { padding: 14px 12px 12px; } }
.mm-grid-cards [hidden] { display: none; }
.mm-kick { color: var(--label); }
.mm-lead { max-width: 34em; }
.mm-lead p { margin: 0; }
.mm-back { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* === Shelves: one row of covers per series, scrolling sideways === */
.mm-shelf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.mm-shelf-h .sub { flex-basis: 100%; color: var(--label); }
.mm-shelf-h .ch { margin-right: auto; }
.mm-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: clamp(16px, 1.6vw, 28px); margin: 0 calc(var(--gut) * -1); padding: 6px var(--gut) 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mm-strip > li { scroll-snap-align: start; }
@media (max-width: 767px) { .mm-strip { grid-auto-columns: 62vw; } }
.mm-shelf + .mm-shelf { padding-top: clamp(40px, 5vh, 64px); }

/* === Archive hero: Will and the counts === */
.mm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-top: clamp(28px, 6vw, 72px); }
.mm-hero-tx { display: grid; gap: 22px; justify-items: start; }
.mm-hero-ph { width: min(100%, calc((100vh - var(--bar) - 160px) * .8)); min-width: min(100%, 360px); margin: 0 0 0 auto; box-shadow: var(--shade); }
.mm-counts { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 3vw, 48px); margin: 0; }
.mm-counts div { display: grid; gap: 2px; }
.mm-counts dt { color: var(--label); }
.mm-counts dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; }
@media (max-width: 1023px) { .mm-hero { grid-template-columns: minmax(0, 1fr); } .mm-hero-ph { order: -1; width: min(100%, 480px); margin: 0; } }

/* === Places strip === */
.mm-places .sub { color: var(--label); margin-bottom: 14px; }
.mm-places .chip { gap: 8px; }
.mm-n { color: var(--label); font-weight: 500; }
.mm-places a.chip:hover .mm-n { color: inherit; }

/* === Timeline: filter bar, sticky year rail, years newest first === */
.mm-tl-h { display: grid; gap: 18px; margin-bottom: clamp(28px, 3vw, 44px); }
.mm-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; }
.mm-f { display: grid; gap: 6px; min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.mm-f .sub { font-size: 10px; color: var(--label); }
.mm-f select { appearance: none; width: 100%; min-height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2333312E' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color var(--t-quick) var(--ease); }
.mm-f select:hover, .mm-f select:focus-visible { border-color: var(--ink); }
.mm-f select:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.js .mm-go { display: none; }
.mm-clear[hidden] { display: none; }
.mm-count { min-height: 1.4em; }
.mm-none { padding: 24px 0; }
.mm-none a { text-decoration: underline; text-underline-offset: 4px; }
.mm-tl-body { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.mm-rail { position: sticky; top: calc(var(--bar) + 24px); max-height: calc(100vh - var(--bar) - 48px); overflow-y: auto; scrollbar-width: none; }
.mm-rail ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mm-rail a { display: block; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--label); transition: color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease); }
.mm-rail a:hover { color: var(--ink); }
.mm-rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
.mm-rail li[hidden] { display: none; }
.mm-years { display: grid; gap: clamp(48px, 6vw, 88px); }
.mm-yr[hidden] { display: none; }
.mm-yr { scroll-margin-top: calc(var(--bar) + 24px); }
.mm-yr-h { margin: 0 0 clamp(18px, 2vw, 28px); padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: clamp(28px, 2.4vw, 36px); line-height: 1; }
.mm-years .mm-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .mm-years .mm-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .mm-tl-body { grid-template-columns: minmax(0, 1fr); gap: 20px; } .mm-rail { top: var(--bar); z-index: 5; max-height: none; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut); overflow-x: auto; overflow-y: hidden; background: rgba(242,239,234,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); } .mm-rail ol { display: flex; gap: 4px; } .mm-rail a { padding: 6px 10px; border-left: 0; border-bottom: 1px solid transparent; white-space: nowrap; } .mm-rail a[aria-current="true"] { border-bottom-color: var(--ink); } .mm-yr { scroll-margin-top: calc(var(--bar) + 64px); } }
@media (max-width: 767px) { .mm-years .mm-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mm-f { max-width: none; flex-basis: calc(50% - 7px); min-width: 0; } }

/* === Guests A to Z === */
.mm-az { columns: 4 220px; column-gap: clamp(24px, 3vw, 48px); }
.mm-az-l { break-inside: avoid; margin-bottom: 22px; }
.mm-az-h { margin: 0 0 6px; font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.2; }
.mm-az ul { margin: 0; padding: 0; list-style: none; }
.mm-az a { display: inline-block; padding: 3px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color var(--t-quick) var(--ease), text-decoration-color var(--t-quick) var(--ease); }
.mm-az a:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (pointer: coarse) { .mm-az a { padding: 8px 0; } }

/* === Series hub === */
.mm-hub-top { display: grid; gap: 14px; justify-items: start; padding-top: clamp(28px, 6vw, 72px); }
.mm-hub-line { color: var(--label); }
.mm-hub-chips { justify-content: center; }
.mm-hub-more .mm-back { margin-top: 32px; }

/* === Event page: cover and facts === */
.mm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-top: clamp(28px, 6vw, 72px); }
.mm-top-tx { display: grid; gap: 18px; justify-items: start; }
.mm-cover { width: min(100%, calc((100vh - var(--bar) - 160px) * .8)); min-width: min(100%, 360px); margin: 0 0 0 auto; box-shadow: var(--shade); }
.mm-facts { display: grid; gap: 12px; margin: 6px 0 0; }
.mm-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.mm-facts dt { color: var(--label); }
.mm-facts dd { margin: 0; font-size: 17px; line-height: 1.45; }
.mm-facts a { text-decoration: underline; text-decoration-color: rgba(51,49,46,.35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--t-quick) var(--ease); }
.mm-facts a:hover { text-decoration-color: currentColor; }
@media (max-width: 1023px) { .mm-top { grid-template-columns: minmax(0, 1fr); } .mm-cover { order: -1; width: min(100%, 520px); margin: 0; } }
@media (max-width: 767px) { .mm-facts div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; } .mm-facts dd { font-size: 16px; } }

/* === Event page: gallery text beside the artwork on its mount === */
.mm-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 420px); gap: clamp(32px, 6vw, 112px); align-items: start; }
.mm-story.no-art { grid-template-columns: minmax(0, var(--read)); justify-content: center; }
.mm-text { max-width: 36em; }
@media (min-width: 1180px) { .mm-text { font-size: 18px; } }
.mm-mount { display: grid; gap: 12px; justify-items: center; margin: 0; }
.mm-mount-in { display: block; padding: clamp(16px, 2vw, 28px); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shade); transition: box-shadow var(--t-quick) var(--ease); }
.mm-mount-in:hover { box-shadow: 0 0 0 1px var(--ink), var(--shade-up); }
.mm-mount-in img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
@media (max-width: 1023px) { .mm-story { grid-template-columns: minmax(0, 1fr); } .mm-mount { justify-self: center; width: min(100%, 420px); } }

/* === Event page: the photographs, fixed 4:5 tiles on the focal point === */
.mm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); margin: 0 auto; list-style: none; }
.mm-grid a { display: block; cursor: zoom-in; }
.mm-grid a img { transition: transform 1.2s var(--ease), opacity var(--t-quick) var(--ease); }
.mm-grid a:hover img { transform: scale(1.04); }
.mm-grid a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 1199px) { .mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* === Event page: previous and next in the series === */
.mm-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); }
.mm-pn a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--t-quick) var(--ease); }
.mm-pn a:hover, .mm-pn a:focus-visible { box-shadow: 0 0 0 1px var(--ink); }
.mm-pn .mm-pn-next { grid-template-columns: minmax(0, 1fr) 96px; text-align: right; }
.mm-pn .mm-pn-next .photo { order: 2; }
.mm-pn-tx { display: grid; gap: 4px; }
.mm-pn-tx .sub { color: var(--label); font-size: 10px; }
.mm-pn-tx .it { color: var(--ink); font-size: 16px; }
.mm-pn-when { font-size: 14px; color: var(--ink-2); }
@media (max-width: 767px) { .mm-pn { grid-template-columns: minmax(0, 1fr); } .mm-pn-gap { display: none; } .mm-pn a, .mm-pn .mm-pn-next { grid-template-columns: 72px minmax(0, 1fr); text-align: left; } .mm-pn .mm-pn-next .photo { order: 0; } }

/* === Lightbox: a native modal dialog, the whole frame, never cropped === */
.mm-lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #1C1B19; color: var(--light); overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.mm-lb::backdrop { background: rgba(28,27,25,.6); overflow: hidden; overscroll-behavior: contain; }
.mm-lb[open] { display: grid; grid-template-rows: 56px minmax(0, 1fr) 56px; }
.mm-lb-top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); }
.mm-lb-n { color: rgba(244,241,236,.75); }
.mm-lb-fig { display: grid; place-items: center; min-height: 0; margin: 0; padding: 0 clamp(8px, 6vw, 96px); }
.mm-lb-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s var(--ease); }
.mm-lb-img.is-loading { opacity: .55; }
.mm-lb .btn-ico { border-color: rgba(244,241,236,.4); color: var(--light); background: rgba(28,27,25,.4); }
.mm-lb .btn-ico:hover, .mm-lb .btn-ico:focus-visible { background: var(--light); color: var(--ink); border-color: var(--light); }
.mm-lb-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
@media (min-width: 768px) { .mm-lb-nav { position: absolute; inset: 50% 0 auto; justify-content: space-between; padding: 0 clamp(12px, 2vw, 28px); pointer-events: none; transform: translateY(-50%); } .mm-lb-nav .btn-ico { pointer-events: auto; } .mm-lb[open] { grid-template-rows: 56px minmax(0, 1fr) 24px; } }
@media (prefers-reduced-motion: reduce) { .mm-card .photo img, .mm-grid a img, .mm-lb-img { transition: none; } }
