/* ryankuo.net: one stylesheet for every page. */

:root {
	/* How far each font's capitals sit off the middle of their line, as a share of its size (from the fonts'
	   own ascent, descent and cap height: Karla, Space Mono). The space above a line's capitals is
	   (1lh - 1cap) / 2 plus this; the space under its baseline is (1lh - 1cap) / 2 less it. */
	--sans-k: 0.0122;
	--mono-k: 0.0279;
	--bg: #ececec;
	--ink: #111111;
	--muted: #555555;
	--faint: #7a7a7a;
	--quiet: #6b6b6b;  /* the lightest text that still reads at small sizes (4.5:1 on the background) */
	--sans: Karla, 'Helvetica Neue', Arial, sans-serif;
	--mono: 'Space Mono', ui-monospace, Menlo, monospace;
	--ease: cubic-bezier(.22, .8, .24, 1);
}

html { background: var(--bg); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.skip-link { position: absolute; left: 16px; top: -40px; padding: 8px 12px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; z-index: 50; }
.skip-link:focus { top: 8px; color: var(--bg); }
#content { position: relative; display: block; height: 0; outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 1160px; margin: 0 auto; padding: 28px 32px 96px; display: flex; flex-direction: column; gap: 32px; box-sizing: border-box; }

/* Header: name on the left (with a back link on project pages), search and nav on the right. */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 32px; font-family: var(--mono); font-size: 13px; }
/* The header stays at the top while scrolling, over a band of the page color. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: -28px -32px 0; padding: 28px 32px 16px; }
.site-header .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.site-header .name { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-header .back { text-decoration: none; }
/* On work and project pages, once the title has scrolled away: the title and its details, under the header. */
.project-bar { position: absolute; left: 0; right: 0; top: 100%; display: flex; align-items: baseline; gap: 6px 14px; padding-left: inherit; padding-right: inherit; padding-bottom: 12px; background: var(--bg); border-bottom: 1px solid #cfcfcf; white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.project-bar.is-on { opacity: 1; transform: none; }
.project-bar-title { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.project-bar-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-bar.is-on { pointer-events: auto; }
.project-bar-meta { flex: none; }
.project-bar-members { font-family: var(--mono); font-size: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; border-left: 1px solid #cfcfcf; padding-left: 14px; }
.project-bar-members::-webkit-scrollbar { display: none; }
.project-bar-members a { color: var(--muted); text-decoration: none; }
.project-bar-members a + a::before { content: "·"; margin: 0 6px; color: #bbb; }
.project-bar-members a:hover { color: var(--ink); }
@media (max-width: 860px) {
	.project-bar { flex-wrap: wrap; }
	.project-bar-members { flex: 0 0 100%; border-left: 0; padding-left: 0; }
}
.site-header .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 28px; }
/* Wider screens: the search box and the links on one row, and what's being shown (a search, an open item) right
   under the search box, where it's noticed. */
@media (min-width: 701px) {
	.site-header .right { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; gap: 10px 28px; }
	.site-header .bar { display: contents; }
	.site-search { grid-column: 1; grid-row: 1; }
	.site-nav { grid-column: 2; grid-row: 1; }
	.filters { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
.site-search { display: flex; align-items: center; gap: 8px; }
.search-field { position: relative; display: block; }
.site-search input { font: inherit; font-size: 12px; width: 200px; max-width: 46vw; padding: 6px 28px 6px 8px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); box-sizing: border-box; }
.site-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 16px; line-height: 1; background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--ink); }
.search-clear[hidden] { display: none; }
.site-search .count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.site-nav a, .site-nav button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.site-nav [aria-current="page"] { font-weight: 700; }
.filters { display: flex; gap: 4px; }
.filters button { font: inherit; font-size: 12px; padding: 6px 10px; cursor: pointer; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters .filter-open { display: inline-flex; align-items: center; gap: 10px; max-width: 30ch; white-space: nowrap; }
.filters .filter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.filters .filter-x { font-size: 16px; line-height: 1; margin-right: -2px; }
.filters .filter-open:hover .filter-x { transform: scale(1.25); }
.filters .filter-open[hidden], .filters button[hidden] { display: none; }

/* Bodies: Markdown text, image groups, videos. */
.body { display: flex; flex-direction: column; gap: 18px; }
.body .text { max-width: 40em; font-size: 16px; line-height: 1.6; }
.body .text p { margin: 0 0 12px; }
.body .text p:last-child { margin-bottom: 0; }
/* A quoted passage: indented on both sides behind a thin rule, a size smaller and softer than the text, with room
   above and below; its source (a last line starting with a dash) smaller again, in the quote's own type. It starts
   below a picture set beside the text rather than wrapping around it. */
.body .text blockquote { clear: both; margin: 20px 2em; padding-left: 1.25em; border-left: 1px solid #999; font-size: 14.5px; line-height: 1.65; color: #444; }
.body .text blockquote:last-child { margin-bottom: 0; }
.body .text blockquote footer { margin-top: 10px; font-size: 13px; color: var(--muted); }
.body .text blockquote footer::before { content: "— "; }
@media (max-width: 600px) { .body .text blockquote { margin-inline: 1em; } }
.body figure { margin: 0; }
.body .fn-ref { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.body .fn-ref a { text-decoration: none; }
.body .footnotes { margin: 8px 0 0; padding: 12px 0 0 1.6em; border-top: 1px solid #ccc; font-size: 13px; line-height: 1.45; color: var(--muted); }
.body .footnotes li { margin: 0 0 4px; }
.body .fn-back { text-decoration: none; margin-left: 2px; }
.body figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.body .images { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); --gap: 10px; gap: var(--gap); align-items: start; }
/* Images never grow past their own width (--w, set in body.php): pixel art keeps its size. */
.images img { max-width: min(100%, var(--w, 100%)); }
.body .images img { display: block; width: 100%; height: auto; }
.body .images.is-row { display: flex; align-items: flex-start; }
.body .images.is-row > figure { flex: var(--ar, 1) 1 0; min-width: 0; }
.body .images.is-rows { display: flex; flex-direction: column; }
.body .images.is-rows > .row { display: flex; gap: inherit; align-items: flex-start; }
.body .images.is-rows > .row > figure { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap, 10px)) * var(--ar, 1) / var(--s)); min-width: 0; }
.body .images.is-rows figcaption { display: none; }
/* A width set in the Panel: the group takes that share of the text column. */
.body .images.is-sized, .body figure.is-sized { width: var(--size); }
/* (A width set by hand is kept even past the image's own size: the image scales up to fill it.) */
.body .images.is-sized img { max-width: 100%; }
/* (On phones the column is already narrow: a set width gives way to the full column, except beside text.) */
@media (max-width: 600px) { .body .images.is-sized:not(.is-beside), .body figure.is-sized { width: auto; } }
/* Set beside the text that follows: it floats at the start of that text, which wraps around it. It takes its set
   width (or 40%), but never so much that the text beside it has less than 16em, a short line's measure. */
.body .text.has-beside { display: flow-root; }
.body .images.is-beside { width: min(var(--size, 40%), 100% - 16em); margin-top: calc((1lh - 1cap) / 2 + var(--sans-k) * 1em); margin-bottom: 0.5em; }
.body .images.is-beside.is-left { float: left; margin-right: 1.25em; }
.body .images.is-beside.is-right { float: right; margin-left: 1.25em; }
.body .images.is-beside figcaption { display: block; }
/* In a grid of two or more, captions show only in the viewer, when a picture is opened (the viewer reads them
   from here); a picture on its own keeps its caption under it. */
.body .images:has(> figure + figure) figcaption { display: none; }
.as-documentation .body .images.is-row:not(.is-set), .as-documentation .body .images.is-rows:not(.is-set) { display: flex; }
.as-documentation .body .images.is-rows:not(.is-set) > .row { display: contents; }
.body .video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body .audio iframe { display: block; width: 100%; height: 166px; border: 0; }
@media (max-width: 700px) {
	.body .images { grid-template-columns: repeat(min(var(--cols, 1), 2), minmax(0, 1fr)); }
}

/* Dots shared by the timeline and project history: all one gray (black when hovered) and all one size, except
   works (circles) and solo shows (squares), which are larger. The shape says what kind of thing it is:
   squares for shows, awards, collections, publications and broadcasts; solid circles for talks, visits, press and
   residencies; open circles for notes and images about a work; dashes for notes about nothing in particular. */
.dot { box-sizing: border-box; --dc: var(--faint); transition: background-color .15s, border-color .15s; }
.dot-work, .dot-main { width: 12px; height: 12px; border-radius: 50%; background: var(--dc); }
.dot-wip { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1.5px dashed var(--dc); }
.dot-solo { width: 11px; height: 11px; background: var(--dc); }
.dot-show, .dot-pub { width: 8px; height: 8px; background: var(--dc); }
.dot-minor { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); }
.dot-note { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--dc); }
.dot-loose { width: 8px; height: 2px; background: var(--dc); }
/* Something still in progress: an empty dot of its shape. */
.dot.is-hollow { background: var(--bg); border: 1.5px solid var(--dc); }

/* The search button only shows on phones. */
.search-toggle { display: none; font: inherit; background: none; border: 0; padding: 6px; margin: -6px; cursor: pointer; color: var(--ink); }
@media (max-width: 700px) {
	.page { padding: 16px 16px 72px; gap: 22px; }
	.site-header { margin: -16px -16px 0; padding: 16px 16px 12px; }
	.version { scroll-margin-top: 110px; }
	/* One row: name, then Home / Timeline / Info and the search button; search opens below, filters under it. */
	.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 16px; }
	.site-header .right, .site-header .bar { display: contents; }
	.site-header .left { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
	.site-header .name { font-size: 19px; }
	.site-header .back { font-size: 12px; }
	.site-nav { grid-column: 2; grid-row: 1; gap: 12px; flex-wrap: nowrap; }
	.search-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
	.site-search { grid-column: 1 / -1; grid-row: 2; display: none; }
	.site-header.is-searching .site-search { display: flex; }
	.site-search .search-field { flex: 1; }
	.site-search input { width: 100%; max-width: none; font-size: 16px; }
	/* (Under the search when it's open; with nothing in them, the filters take no room.) */
	.filters { grid-column: 1 / -1; }
	.filters[aria-hidden="true"], .filters:empty { display: none; }
	/* The skip link's landing spot is out of the page's flow, so it adds no gap of its own under the header. */
	.page > #content { position: absolute; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Project pages: each work a box on a line, with its history beside it. */
.project-head h1 { margin: 0; font-size: 56px; line-height: 0.95; letter-spacing: -0.03em; }
.project-meta { margin: 8px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
/* The works or versions on the page, each linking to its box. */
.project-members { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.project-members a { color: var(--ink); text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: 3px; }
.project-members a:hover { text-decoration-color: currentColor; }
.project-intro { max-width: 46em; }
.bands { position: relative; display: flex; flex-direction: column; gap: 36px; --hist-x: calc(100% - 300px + 91.5px); }
/* The posts' line runs beside every box, from the first post to the last (placed by project.js). */
/* Each work's shows and writing on a line of their own beside its box (placed by project.js). */
.band > .history::before { content: ""; position: absolute; top: var(--hl-top, 0); height: var(--hl-h, 0); left: 91.5px; width: 1px; background: var(--ink); }
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 48px; align-items: start; }
.version { scroll-margin-top: 140px; }
/* The works' line: from each box down to the next, behind the boxes. */
.bands::before { content: ""; position: absolute; left: 32px; top: var(--sl-top, 0); height: var(--sl-h, 0); width: 1px; background: var(--ink); }
.band-main { min-width: 0; }
/* Posts on the works' line: the dot on the line, the post to its right. */
.spine { --kick-lh: 14px; list-style: none; margin: 26px 0 0; padding: 0 0 0 64px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.band-own .spine { margin: 0; }
.spine > li { position: relative; display: flex; flex-direction: column; gap: 2px; max-width: 34em; }
.spine .dot { position: absolute; left: -32px; top: calc(var(--kick-lh) / 2); transform: translate(-50%, -50%); }
/* A note's date line: a line of its own, the same height wherever it sits (above its title, or in place of one),
   so the dot is always level with it; never bold, even when the note is open. */
.spine-kicker { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: var(--kick-lh); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.spine > li:hover .dot { --dc: var(--ink); }
/* In-progress posts above the work they continue: a dashed line from the first of them down into the box. */
.spine-ahead { margin: 0; padding-bottom: 26px; }
.spine-before { margin: 0 0 26px; }
.spine-ahead::before { content: ""; position: absolute; left: 32px; top: calc(var(--kick-lh) / 2); bottom: 0; border-left: 1px dashed var(--ink); }
/* On phones, where everything runs in one list, the notes sit just above the box without their own line. */
@media (max-width: 860px) { .spine-ahead::before { display: none; } }
.version { position: relative; z-index: 1; border: 1px solid var(--ink); padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; background: var(--bg); }
/* A work still in progress: its box drawn dashed, like its line on the Timeline. */
.version.is-wip { border-style: dashed; }
.version-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.version-head h2 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.permalink { color: inherit; text-decoration: none; }
.permalink:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.version-head .project-meta { margin: 0; font-size: 12px; }
/* A work's facts: label in a narrow column, entries beside it. */
.facts { margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.facts dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.facts dd { margin: 0; color: #333; }
.facts > .facts-wide { grid-template-columns: minmax(0, 1fr); }
/* The link that opens the work itself: the same box as the button on a card. */
.facts a.facts-view { display: inline-block; margin-top: 0; text-decoration: none; }
/* Its box starts where a next row's capitals would, so the space above it matches the space between the rows. */
.facts > .facts-wide > dd:has(> .facts-view) { padding-top: calc((1lh - 1cap) / 2 + var(--sans-k) * 1em); }
.facts a { color: inherit; text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: currentColor; }
@media (max-width: 600px) { .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.details { font-size: 14px; line-height: 1.5; color: #333; }
.details p { margin: 0; }
.part-of { align-self: flex-start; font-family: var(--mono); font-size: 12px; }
.history { position: relative; --cat-lh: 14px; --title-lh: 20px; --date-lh: 14px; }
.history > ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.history > ol > li { display: grid; grid-template-columns: 76px 32px minmax(0, 1fr); align-items: start; --first-lh: var(--cat-lh); }
/* The dot and the date are centred on the entry's first line: the line naming the post's kind, or for a note
   (no kind line), its first line of text. */
.history > ol > li:has(.history-cat.is-dateonly) { --first-lh: var(--title-lh); }
.history-date { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; line-height: var(--date-lh); padding-top: calc((var(--first-lh) - var(--date-lh)) / 2); }
.history .dot { justify-self: center; margin-top: calc(var(--first-lh) / 2); transform: translateY(-50%); position: relative; z-index: 1; }
.history > ol > li:hover .dot { --dc: var(--ink); }
.history-entry { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.history-cat { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); line-height: var(--cat-lh); }
.history-cat-date, .history-cat.is-dateonly { display: none; }
.history-title, .history-post summary { font-size: 15px; line-height: var(--title-lh); }
/* Notes and image posts, as on the Timeline: smaller and gray, their line not underlined. */
.history > ol > li.is-note .history-title, .history > ol > li.is-note .history-post summary { font-size: 13.5px; color: var(--quiet); }
.history > ol > li.is-note summary .history-link { text-decoration: none; }
.history > ol > li.is-note summary:hover .history-link { color: var(--ink); }
.history-out { align-self: flex-start; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: 3px; }
.history-out:hover { color: var(--ink); text-decoration-color: currentColor; }
.history-page { display: inline-block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #aaa; }
.history-page:hover { text-decoration-color: currentColor; }
.history-show { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 8px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); text-decoration: none; max-width: 340px; }
.history-show img { flex: none; width: 64px; height: 64px; object-fit: cover; }
.history-show-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.history-show-title { font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1.2; }
.history-show-about { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history-show-about.is-line { -webkit-line-clamp: unset; display: block; }
.history-show-open { font-family: var(--mono); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #aaa; }
.history-show:hover .history-show-open { text-decoration-color: currentColor; }
.history-credits { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); white-space: pre-line; }
.history-post summary { cursor: pointer; list-style: none; }
.history-post summary .history-link { text-decoration: underline; text-decoration-color: #999; text-underline-offset: 3px; }
.history-post summary::-webkit-details-marker { display: none; }
.history-post summary:hover .history-link { text-decoration-color: var(--ink); }
.history-post[open] summary { font-weight: 700; text-decoration: none; }
.history-post .body { margin-top: 10px; gap: 10px; }
.history-post .body .text { font-size: 14px; line-height: 1.5; }
.history-post .body .images { grid-template-columns: repeat(min(var(--cols, 1), 2), minmax(0, 1fr)); --gap: 6px; gap: var(--gap); }
/* A post's thumbnails sit in its summary: clicking them opens the post, as on the Timeline; opened, they give way
   to its images (clicked, those open in the viewer). */
.history-post summary .history-thumbs { margin-top: 6px; }
.history-post[open] summary .history-thumbs { display: none; }
.history-thumbs img { cursor: pointer; }
/* Opened on a work's line, a single image stays at most half the width, as on the Timeline. */
.spine .history-post .body .images[style="--cols: 1"] img { max-width: 50%; max-height: 320px; width: auto; }
.spine .history-post .body .images.is-wide img { max-width: 100%; max-height: none; width: 100%; }
/* Opened, a post shows its images in full and its link at the end of its text; the thumbnails and link under it go. */
.history-post[open] ~ .history-out, .history-post[open] ~ .history-thumbs { display: none; }
.history-post > .history-credits { margin: 8px 0 0; }
.history-out-in { display: inline-block; margin-top: 8px; }
/* Its images: small, in a row that wraps, as a note's on the Timeline. */
.history-thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.history-thumbs figure { margin: 0; }
.history-thumbs img { display: block; height: 30px; width: auto; max-width: 90px; object-fit: cover; }

/* Images open in a slideshow. */
figure img[data-full] { cursor: zoom-in; }
.version-main { margin: 0; }
.version-main img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; }
.version-main figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
/* Under an installation view, the work's screens and stills are documentation: a tighter grid of smaller images. */
/* Documentation under an installation photo: small pictures in a row at one height, each as wide as its shape, the
   same gap between all of them; no captions (they show when a picture is opened). */
.as-documentation .body .images:not(.is-set) { display: flex; flex-wrap: wrap; gap: 8px; }
.as-documentation .body .images:not(.is-set) figure { flex: none; width: auto; min-width: 0; }
.as-documentation .body .images:not(.is-set) img { height: 96px; width: auto; max-width: 100%; }
.as-documentation .body .images:not(.is-set) figcaption { display: none; }
/* The image viewer: over the page, dimmed so it reads as a slideshow. */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 17, 0.82); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font-family: var(--mono); font-size: 12px; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lb button { font: inherit; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
/* Close: a box like the buttons on work cards, in the viewer's light-on-dark. */
.lb .lb-close { font-size: 22px; line-height: 1; border: 1px solid #fff; padding: 6px 11px 8px; }
.lb .lb-close:hover, .lb .lb-close:focus-visible { background: #fff; color: var(--ink); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-video { background: #000; }
.lb-video[hidden] { display: none; }
.lb-video iframe, .lb-video video { display: block; width: 100%; height: 100%; border: 0; }
.lb-video [hidden] { display: none; }
.lb-stage img[hidden] { display: none; }
/* A video among the images: its still with a play button. */
.images figure.is-video { position: relative; }
.images figure.is-video img { cursor: pointer; }
.video-tile { position: relative; display: block; }
/* The play button sits in the middle of the still (not of the still and its caption), and shrinks on a narrow tile. */
.play { position: absolute; left: 50%; top: 50%; width: min(56px, 40%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, 0.55); pointer-events: none; transition: background .15s; }
.play::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); width: 32%; height: 40%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.images figure.is-video:hover .play { background: rgba(0, 0, 0, 0.8); }
.lb-prev, .lb-next { position: absolute; top: 0; bottom: 0; width: 64px; font-size: 26px !important; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-caption { padding: 12px 18px 18px; text-align: center; font-family: var(--sans); font-size: 14px; color: #eee; min-height: 1.5em; }
@media (max-width: 700px) {
	.lb-stage { padding: 0 8px; }
	.lb-prev, .lb-next { width: 40%; opacity: 0; }
}

/* Info: about, then the CV by section. */
.info { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.info-main { flex: 999 1 560px; min-width: 0; max-width: 40em; }
.about { font-size: 16px; line-height: 1.6; }
/* Selected press, under the bio: each title links out, with a line on what it is. */
.press { margin-top: 40px; }
.press h2 { margin: 0 0 4px; font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.press h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 500; }
.press ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.press li { display: flex; flex-direction: column; gap: 1px; font-size: 15px; line-height: 1.4; }
.press-title { color: var(--ink); text-decoration: underline; text-decoration-color: #999; text-underline-offset: 3px; }
.press-title:hover { text-decoration-color: var(--ink); }
.press-about { color: var(--quiet); font-size: 14px; }
.press-about a { color: inherit; }
.about p { margin: 0 0 16px; }
.info-side { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.portrait { display: block; width: 100%; height: auto; }
.contact { font-family: var(--mono); font-size: 13px; }
.contact p { margin: 0 0 6px; }

/* The CV: a table per section, with the section names alongside. */
.cv { display: flex; flex-direction: column; --cv-gap: 28px; gap: var(--cv-gap); }
.info-cv { margin: 0; font-family: var(--mono); font-size: 13px; }
.rss-link { position: fixed; right: 16px; bottom: 14px; z-index: 20; padding: 2px 4px; background: var(--bg, #ececec); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; border-bottom: 1px solid #bbb; }
.rss-link:hover { color: var(--ink); border-color: var(--ink); }
.info-cv a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cv-head h1, .cv-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.cv-section { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.cv-section > span, .cv-section h3 { flex: 1 1 200px; }
.cv-section h3 { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.5; }
.cv-rows, .cv-columns .cv-row { flex: 999 1 640px; min-width: 0; }
.cv-rows { display: flex; flex-direction: column; }
.cv-row { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 16px; padding: 6px 0; border-bottom: 1px solid #c4c4c4; font-size: 15px; line-height: 1.4; align-items: baseline; }
/* The column heads sit 12px above the first section (the CV's gap taken back). */
.cv-columns { border-bottom: 1px solid var(--ink); margin-bottom: calc(12px - var(--cv-gap)); }
.cv-columns .cv-row { padding: 0 0 6px; border: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cv-row .year { font-family: var(--mono); font-size: 12px; }
.cv-row .muted { color: var(--muted); }
.cv-row a { text-decoration: none; border-bottom: 1px solid #999; }
.cv-row a:hover { border-color: var(--ink); }
.cv-row.is-unselected, .cv-row.is-unselected * { color: #9a9a9a; }
.cv-row.is-unselected a { border-color: #ccc; }
.cv-full-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cv-full-note a { color: var(--ink); }
.cv-head { display: flex; align-items: baseline; gap: 16px 24px; flex-wrap: wrap; }
.cv-pdf { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid #999; padding: 0; cursor: pointer; }
.cv-pdf:hover { border-color: var(--ink); }
.cv-print-head { display: none; }
.cv-bio { margin-top: 14px; }
.cv-bio p { margin: 0; }

/* The CV, printed or saved as a PDF: black on white, the site's header and buttons left out, no row split across pages. */
@media print {
	@page { margin: 12mm 12mm; }
	html, body { background: #fff !important; color: #000; }
	.site-header, .cv-pdf, .cv-full-note { display: none !important; }
	.page { max-width: none; padding: 0; gap: 0; }
	.cv-print-head { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 9pt; }
	.cv-print-head p { margin: 0; }
	.cv-bio { display: none; }
	.cv-print-name { font-family: var(--sans); font-size: 16pt; font-weight: 700; margin-bottom: 2px !important; }
	.cv { --cv-gap: 8px; }
	.cv-head h1 { font-size: 13pt; }
	.cv-section { gap: 2px 16px; }
	.cv-section h3 { font-size: 7pt; break-after: avoid; margin-top: 4px; }
	.cv-row { font-size: 8pt; line-height: 1.2; padding: 1px 0; break-inside: avoid; grid-template-columns: 32px minmax(0, 1.9fr) minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 2px 10px; border-bottom-color: #ddd; }
	.cv-row .year { font-size: 7pt; }
	.cv-columns .cv-row { font-size: 6.5pt; }
	.cv-columns { margin-bottom: calc(2px - var(--cv-gap)); }
	.cv-row a { border: 0; color: #000; }
	.cv-row .muted { color: #444; }
}
@media (max-width: 700px) {
	.cv-columns { display: none; }
	.cv-row { grid-template-columns: 44px minmax(0, 1fr); }
	.cv-row .muted { grid-column: 2; }
}

@media (max-width: 860px) {
	/* A debut listed beside each of several works shows once in the single list. */
	.history > ol > li.is-repeat { display: none; }
	.band { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
	/* Stacked: the events sit on the works' line itself (one line, as with notes between the boxes), each
	   with its date above it, instead of a second line beside a date column. */
	/* One order, newest first: boxes, shows and notes interleaved by date (each item's --o), on one line. */
	.bands { gap: 0; }
	.band, .band-main, .band > div, .band > .history, .history > ol, .spine { display: contents; }
	.band > .history::before { display: none; }
	.version, .history > ol > li, .spine > li { order: var(--o, 0); }
	.version { margin: 18px 0; }
	.history > ol > li, .spine > li { margin: 9px 0; }
	.spine > li { margin-left: 64px; }
	.history > ol > li { grid-template-columns: 64px minmax(0, 1fr); }
	/* As on the Timeline: the kind and date on one line ("EXHIBITION · APR 5 – MAY 25, 2025"), level with the
	   dot, the name below. */
	.history .dot { grid-column: 1; grid-row: 1; }
	.history-date { display: none; }
	.history-cat-date { display: inline; }
	.history-cat.is-dateonly { display: block; }
	.history-entry { grid-column: 2; grid-row: 1; }
	.project-head h1 { font-size: 40px; }
	.version { padding: 20px 18px 24px; }
}

/* A card: a work or an exhibition shown somewhere other than its own page (on the Timeline when opened; on an
   exhibition's page, its works; on a work's page, the exhibitions it was in), with a button to its page. */
.tl-card { border: 1px solid var(--ink); background: var(--bg); margin-top: 4px; }
/* A work in progress: its card drawn dashed, like its line. */
.tl-card.is-wip { border-style: dashed; }
.tl-box-body { padding: 28px 32px 30px; display: flex; flex-wrap: wrap; gap: 22px 30px; align-items: flex-start; }
.tl-box-body > img, .tl-box-pic img { height: 210px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.tl-box-pic { margin: 0; max-width: 100%; }
.tl-box-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tl-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tl-box-head h2 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.tl-box-text p { margin: 0; }
.tl-box-summary { font-size: 16px; line-height: 1.55; max-width: 34em; }
.tl-box-credits { white-space: pre-line; }
.tl-box-head h2 a { color: inherit; text-decoration: none; }
.tl-box-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tl-open { align-self: flex-start; margin-top: 6px; font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 9px 13px; }
.tl-open:hover { background: var(--ink); color: var(--bg); }
.tl-card .tl-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
/* On an exhibition's page, a work's card stands where its box would (no box around it). */
.version.version-card { border: 0; padding: 0; background: none; }
.version.version-card .tl-card { margin: 0; }
/* A show in the list beside a work, opened: its card, compact. */
.tl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-buttons .tl-open { margin-top: 0; }
/* A show's kind, above the title on its page; its credits under the details. */
.project-kind { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.project-credits { margin: 6px 0 0; font-size: 14px; color: var(--muted); white-space: pre-line; }
.project-links { margin: 16px 0 0; }
@media (max-width: 700px) {
	.tl-box-body { padding: 20px 18px 22px; }
	.tl-box-body > img, .tl-box-pic img { height: auto; width: 100%; }
	.tl-box-pic { width: 100%; }
}

/* An image on its way: a soft gray block of its own size (lightbox.js marks it once it's in). */
.body img:not(.is-in), .version img:not(.is-in), .tl-thumb:not(.is-in), .tl-box-pic img:not(.is-in), .tl-snake-img:not(.is-in), .tl-mini img:not(.is-in), .portrait:not(.is-in) { background: #dedede; }

/* A video uploaded to the page, in its own player at its own shape. */
.video-file video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; }
/* A footnote (or its number) just jumped to: a brief highlight. */
@keyframes fn-flash { from { background: rgba(255, 230, 0, 0.55); } to { background: transparent; } }
.body .is-target { animation: fn-flash 1.6s ease-out; }

/* A year and what follows it: when the rest wraps, it hangs under its own first word (metaLead / leadHtml). */
:is(.tl-meta, .project-meta):has(> .meta-lead) { display: flex; align-items: baseline; }
.meta-lead { flex: none; white-space: pre; }
.meta-rest { min-width: 0; }
