/*
Theme Name: PM Artist
Theme URI: https://piotrmarcinski.com
Author: Piotr Marciński
Description: Strona artysty — cykle fotograficzne zawieszone jak na ścianie galerii, z metryczkami prac. Dwujęzyczna (EN / PL pod /pl/) bez wtyczek.
Version: 2.4.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: pm-artist
*/

/* ---------- Tokens ---------- */
:root {
	--wall: #2e3b34;
	--wall-deep: #253029;
	--wall-light: #374639;
	--stone: #e8e4da;
	--stone-dim: #a9afa5;
	--brass: #bfa373;
	--rule: rgba(232, 228, 218, 0.16);

	--serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
	--sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

	/* Classical scale: 14 16 19 24 30 36 48 60 72 */
	--t-label: 0.875rem;
	--t-ui: 0.9375rem;
	--t-body: 1.1875rem;
	--t-lead: 1.375rem;
	--t-h3: 1.5rem;
	--t-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem);
	--t-display: clamp(2.75rem, 1.6rem + 4.6vw, 4.5rem);
	--t-name: clamp(3rem, 1.4rem + 6.4vw, 6rem);

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--measure: 36em;
	--label-col: 15rem;

	/* Passe-partout: every work is shown in a white mat, slightly heavier at the bottom as in classic framing. */
	--mat-color: #f4f3ef;
	--mat: clamp(0.75rem, 2.2vw, 2.5rem);
}

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

html {
	background: var(--wall);
	color: var(--stone);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-wrap: break-word;
	min-height: 100vh;
	font: 400 var(--t-body)/1.62 var(--serif);
	font-feature-settings: 'kern', 'liga', 'onum';
	/* Soft gallery light falling from above. */
	background: radial-gradient(120% 70% at 50% -12%, var(--wall-light) 0%, var(--wall) 62%) no-repeat, var(--wall);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration-color: rgba(191, 163, 115, 0.55);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}
a:hover { color: var(--brass); text-decoration-color: currentColor; }

:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
}

::selection { background: var(--brass); color: var(--wall-deep); }

.skip {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	z-index: 20;
	padding: 0.5rem 0.875rem;
	background: var(--stone);
	color: var(--wall-deep);
	font: 500 var(--t-ui)/1 var(--sans);
}
.skip:focus { top: 0.75rem; }

/* ---------- Masthead ---------- */
.masthead__inner {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	max-width: 96rem;
	margin: 0 auto;
	padding: 1.75rem var(--gutter);
}

.masthead__name {
	margin: 0;
	font: 400 1.375rem/1.2 var(--serif);
	letter-spacing: 0.005em;
}
.masthead__name a { text-decoration: none; }

.nav__list {
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 400 var(--t-ui)/1.4 var(--sans);
}
.nav__list a { text-decoration: none; color: var(--stone-dim); }
.nav__list a:hover,
.nav__list a[aria-current='page'] { color: var(--stone); }
.nav__list a[aria-current='page'] {
	text-decoration: underline;
	text-decoration-color: var(--brass);
}
.nav__lang { padding-left: 1.75rem; border-left: 1px solid var(--rule); }

.nav__toggle {
	display: none;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--stone);
	font: 500 var(--t-ui)/1 var(--sans);
	cursor: pointer;
}

@media (max-width: 47.99em) {
	.nav__toggle { display: block; }
	.nav__panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 4.75rem;
		z-index: 10;
		padding: 1.5rem var(--gutter) 2rem;
		background: var(--wall-deep);
	}
	.nav-open .nav__panel { display: block; }
	.nav__list { flex-direction: column; gap: 1rem; font-size: 1.125rem; }
	.nav__lang { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--rule); }
	.masthead { position: relative; }
}

/* ---------- Layout ---------- */
.main {
	max-width: 96rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.section,
.intro,
.main .page,
.main .series { padding-block: clamp(3.5rem, 9vh, 6.5rem); }

.section { border-top: 1px solid var(--rule); }

.section__title {
	margin: 0 0 2.25rem;
	font: italic 400 var(--t-h3)/1.3 var(--serif);
	color: var(--stone-dim);
}

.section__more {
	margin: 2rem 0 0;
	font: 400 var(--t-ui)/1.4 var(--sans);
}

/* ---------- Works hung on the wall ---------- */
.work {
	--hang: 62%;
	display: grid;
	/* The image column shrinks to the hung print, so the label stays beside it. */
	grid-template-columns: fit-content(var(--hang)) var(--label-col);
	justify-content: start;
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: end;
	margin: clamp(5rem, 16vh, 11rem) 0;
}
.work--s { --hang: 40%; }
.work--l { --hang: calc(100% - var(--label-col) - clamp(1.5rem, 3vw, 3rem)); }
/* Hero: the work and its label hang together, centred on the wall. */
.work--hero { grid-template-columns: auto var(--label-col); justify-content: center; }

.work__image { min-width: 0; }

.work__open {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.work__open img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 82vh;
	padding: var(--mat) var(--mat) calc(var(--mat) * 1.2);
	background: var(--mat-color);
	box-shadow: 0 1.75rem 3rem -1.5rem rgba(10, 14, 12, 0.55);
}

.work figcaption { padding-bottom: 0.25rem; }

.label {
	font: 400 var(--t-label)/1.5 var(--sans);
	color: var(--stone-dim);
}
.label p { margin: 0; }
.label__title {
	margin-bottom: 0.375rem !important;
	font: 400 1.125rem/1.35 var(--serif);
	color: var(--stone);
}
.label__title cite { font-style: italic; }
.label__series { margin-bottom: 0.375rem !important; }

/* Home: the hung work is the first thing on the wall. */
.hang--hero {
	display: flex;
	align-items: center;
	min-height: calc(100vh - 6rem);
	min-height: calc(100svh - 6rem);
	padding-block: 1rem 3rem;
}
.hang--hero .work { width: 100%; margin: 0; }
.work--hero .work__open img { max-height: calc(100svh - 11rem); }

@media (prefers-reduced-motion: no-preference) {
	/* The one orchestrated moment: gallery lights coming up on the work. */
	.work--hero .work__open img { animation: lights-up 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
	.work--hero figcaption { animation: label-in 0.8s 1.1s ease-out both; }
}
@keyframes lights-up {
	from { filter: brightness(0.35) saturate(0.6); }
	to { filter: none; }
}
@keyframes label-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 63.99em) {
	.work { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: clamp(3.5rem, 10vh, 6rem) 0; }
	.work--hero { grid-template-columns: minmax(0, 1fr); justify-content: start; }
	.work--s .work__image { max-width: 28rem; }
	.hang--hero { min-height: 0; padding-top: 0.5rem; }
	.work--hero .work__open img { max-height: 72svh; }
}

/* ---------- Home carousel of chosen projects ---------- */
.carousel { flex-direction: column; align-items: stretch; justify-content: center; }
.carousel__slides { display: grid; width: 100%; }
.carousel__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.2s ease, visibility 0s;
}
.carousel .work__link { cursor: pointer; }
.carousel .label__title a { text-decoration: none; }
.carousel .label__title a:hover { color: var(--brass); }
.carousel .label__more { margin: 0.75rem 0 0; }
.carousel__nav {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 1.75rem;
	margin-top: 1.75rem;
	font: 400 var(--t-ui)/1.4 var(--sans);
	color: var(--stone-dim);
}
.carousel__count { font-variant-numeric: lining-nums tabular-nums; }
@media (prefers-reduced-motion: reduce) {
	.carousel__slide, .carousel__slide.is-active { transition: none; }
}

/* ---------- Home intro ---------- */
.intro { max-width: 60rem; }

.intro__name {
	margin: 0;
	font: 200 var(--t-name)/0.98 var(--serif);
	letter-spacing: -0.015em;
}
.intro__role {
	margin: 1.25rem 0 0;
	font: 400 1.0625rem/1.4 var(--sans);
	color: var(--stone-dim);
}
.intro__text { margin-top: 2.75rem; font-size: var(--t-lead); line-height: 1.55; }

/* ---------- Series index ---------- */
.index { margin: 0; padding: 0; list-style: none; }

.index__row { border-top: 1px solid var(--rule); }

.index__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: 'title thumbs' 'meta thumbs';
	column-gap: 2rem;
	row-gap: 0.5rem;
	align-items: center;
	padding: 1.75rem 0 1.5rem;
	text-decoration: none;
}
.index__title {
	grid-area: title;
	font: 300 var(--t-display)/1.04 var(--serif);
	letter-spacing: -0.01em;
}
.index__meta {
	grid-area: meta;
	display: flex;
	gap: 1.5rem;
	font: 400 var(--t-label)/1.4 var(--sans);
	color: var(--stone-dim);
	font-variant-numeric: lining-nums tabular-nums;
}
.index__thumbs { grid-area: thumbs; display: flex; gap: 0.5rem; }
.index__thumbs img {
	display: block;
	width: auto;
	height: 5.5rem;
	padding: 0.3125rem 0.3125rem 0.375rem;
	background: var(--mat-color);
	opacity: 0.72;
	transition: opacity 0.3s ease;
}
.index__link:hover .index__title { color: var(--brass); }
.index__link:hover img,
.index__link:focus-visible img { opacity: 1; }

.index__excerpt {
	max-width: var(--measure);
	margin: -0.5rem 0 1.75rem;
	color: var(--stone-dim);
}

@media (max-width: 47.99em) {
	.index__link { grid-template-columns: 1fr; grid-template-areas: 'title' 'meta' 'thumbs'; }
	.index__thumbs { margin-top: 0.75rem; }
	.index__thumbs img { height: 4.25rem; }
	.index__thumbs img:nth-child(n+4) { display: none; }
}

/* ---------- CV lists (used on home and in CV content) ---------- */
.cv-list { margin: 0; }
.cv-list > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1.5rem;
	padding: 0.625rem 0;
}
.cv-list dt {
	font: 400 var(--t-ui)/1.75 var(--sans);
	color: var(--stone-dim);
	font-variant-numeric: lining-nums tabular-nums;
}
.cv-list dd { margin: 0; max-width: var(--measure); }
.cv-list dd em { color: var(--stone-dim); }

@media (max-width: 35.99em) {
	.cv-list > div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Pages ---------- */
.page__title,
.series__title {
	margin: 0 0 2.5rem;
	font: 200 var(--t-display)/1.04 var(--serif);
	letter-spacing: -0.012em;
}

.page__portrait { margin: 0 0 3rem; max-width: 26rem; }
.page__portrait img { display: block; }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; hyphens: auto; }
.prose h2 {
	margin: 3.5rem 0 1.25rem;
	font: italic 400 var(--t-h3)/1.3 var(--serif);
	color: var(--stone-dim);
}
.prose h3 { margin: 2.25rem 0 0.75rem; font: 500 var(--t-body)/1.4 var(--serif); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
	margin: 2rem 0;
	padding-left: 1.5rem;
	border-left: 1px solid var(--brass);
	font-style: italic;
}
.prose .lead { font-size: var(--t-lead); line-height: 1.55; }
.prose .todo {
	padding: 0.75rem 1rem;
	border: 1px dashed var(--brass);
	font: 400 var(--t-label)/1.5 var(--sans);
	color: var(--brass);
}

/* Statement reads like a catalogue essay: larger, generous. */
.page--statement .prose { font-size: var(--t-lead); line-height: 1.6; max-width: 34em; }

/* CV: wider, with the year column. */
.page--cv .prose { max-width: 52rem; }
.page--cv .prose h2 { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- Contact ---------- */
.contact { margin: 2.5rem 0 0; max-width: 40rem; }
.contact > div {
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr);
	gap: 1.5rem;
	padding: 0.875rem 0;
	border-top: 1px solid var(--rule);
}
.contact dt { font: 400 var(--t-ui)/1.8 var(--sans); color: var(--stone-dim); }
.contact dd { margin: 0; min-width: 0; font-size: var(--t-lead); overflow-wrap: anywhere; }
@media (max-width: 35.99em) {
	.contact > div { grid-template-columns: 1fr; gap: 0.125rem; }
}

/* ---------- Series ---------- */
.series__head { max-width: 46rem; }
.series__title { margin-bottom: 1rem; }
.series__meta {
	display: flex;
	gap: 1.5rem;
	margin: 0 0 2.5rem;
	font: 400 var(--t-ui)/1.4 var(--sans);
	color: var(--stone-dim);
}
.series__intro { font-size: var(--t-lead); line-height: 1.55; }
/* Title and description between the first work and the rest, like the text panel in a gallery room. */
.series__about {
	max-width: 46rem;
	margin: clamp(3.5rem, 10vh, 6rem) 0 0;
	padding-top: 2.5rem;
	border-top: 1px solid var(--rule);
}
.series__about--first { margin-top: clamp(2rem, 6vh, 4rem); padding-top: 0; border-top: 0; }
.series__about .series__title { margin: 0 0 0.75rem; font-size: var(--t-h2); font-weight: 300; line-height: 1.15; }
.series__about .series__meta { margin-bottom: 1.75rem; }
/* The first work opens the page, close under the menu. */
.work--lead { margin-top: clamp(1.5rem, 5vh, 3rem); }
.series .pager { margin-top: clamp(4rem, 12vh, 8rem); }
.main .series { padding-top: clamp(0.5rem, 2vh, 1.5rem); }
.series__head .series__note { margin-top: 0; }
.series__note {
	margin: 2rem 0 0;
	font: 400 var(--t-label)/1.5 var(--sans);
	color: var(--stone-dim);
}

.pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 2rem;
	align-items: end;
	margin-top: clamp(4rem, 12vh, 8rem);
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
	font: 400 var(--t-lead)/1.3 var(--serif);
}
.pager a { text-decoration: none; }
.pager span {
	display: block;
	margin-bottom: 0.375rem;
	font: 400 var(--t-label)/1.4 var(--sans);
	color: var(--stone-dim);
}
.pager__prev { grid-column: 1; }
.pager__all { grid-column: 2; font: 400 var(--t-ui)/1.4 var(--sans); color: var(--stone-dim); }
.pager__next { grid-column: 3; text-align: right; }

@media (max-width: 47.99em) {
	.pager { grid-template-columns: 1fr; }
	.pager__prev,
	.pager__all,
	.pager__next { grid-column: 1; text-align: left; }
}

/* ---------- Record: exhibitions, awards, press ---------- */
.ev__title { display: inline; }
.ev__meta { margin-top: 0.25rem; }
.ev__title a { text-decoration-color: rgba(191, 163, 115, 0.4); }
.ev__kind {
	display: inline-block;
	margin-left: 0.5rem;
	font: 400 var(--t-label)/1.4 var(--sans);
	color: var(--brass);
}
.ev__meta {
	display: block;
	font: 400 var(--t-label)/1.55 var(--sans);
	color: var(--stone-dim);
}
.ev__meta cite { font: italic 400 0.9375rem/1.5 var(--serif); color: var(--stone); }
.cv-list--events > div { padding: 0.875rem 0; border-top: 1px solid var(--rule); }
.cv-list--events > div:first-child { border-top: 0; }
/* Record pages: the awarded / exhibited work as a small framed thumbnail on the right. */
.cv-list--thumbs dd { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; max-width: none; }
.cv-list--thumbs .ev__text { flex: 1 1 auto; min-width: 0; max-width: var(--measure); }
.ev__thumb { flex: 0 0 auto; display: block; }
.ev__thumb img {
	display: block;
	width: auto;
	height: 4.5rem;
	padding: 0.25rem 0.25rem 0.3125rem;
	background: var(--mat-color);
	opacity: 0.85;
	transition: opacity 0.2s ease;
}
.ev__thumb:hover img, .ev__thumb:focus-visible img { opacity: 1; }
.ev__work { color: inherit; }
.work { scroll-margin-top: 2rem; }
.prose .cv-list--events { margin: 0 0 1rem; }

.section__more { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.muted { color: var(--stone-dim); }

.page__kicker { margin: 0 0 1rem; font: 400 var(--t-ui)/1.4 var(--sans); }
.page__kicker a { color: var(--stone-dim); text-decoration: none; }
.page__kicker a:hover { color: var(--brass); }
.page__image { margin: 3rem 0; max-width: 56rem; }
.page__image img { display: block; }
.facts { margin: 0 0 3rem; }

/* Sub-navigation of the About pages. */
.subnav { margin: -1.25rem 0 3rem; }
.subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 400 var(--t-ui)/1.4 var(--sans);
}
.subnav a { color: var(--stone-dim); text-decoration: none; }
.subnav a:hover { color: var(--stone); }
.subnav a[aria-current='page'] { color: var(--stone); text-decoration: underline; text-decoration-color: var(--brass); }

.page--exhibitions .cv-list,
.page--awards .cv-list,
.page--press .cv-list,
.page--auctions .cv-list { max-width: 52rem; margin-top: 1rem; }

/* ---------- Prints ---------- */
.page--prints .prose { margin-bottom: 4rem; }
.prints {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}
.print { margin: 0; scroll-margin-top: 2rem; }
.print__image .work__open img { --mat: clamp(0.75rem, 1.4vw, 1.5rem); max-height: 26rem; box-shadow: 0 1.25rem 2rem -1.25rem rgba(10, 14, 12, 0.55); }
.print figcaption { margin-top: 1.25rem; }
.print__sale {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font: 400 var(--t-label)/1.5 var(--sans);
	color: var(--stone-dim);
}
.print__sale p { margin: 0 0 0.5rem; }
.print__sizes { margin: 0 0 0.75rem; }
.print__sizes > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.print__sizes dd { margin: 0; color: var(--stone); font-variant-numeric: lining-nums tabular-nums; }
.print__status { color: var(--brass); }
.print--sold .print__status { color: var(--stone-dim); }
.print--sold .work__open img { opacity: 0.75; }
.label__print { margin-top: 0.5rem !important; }

.button {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--brass);
	background: none;
	color: var(--stone);
	font: 500 var(--t-ui)/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.button:hover { background: var(--brass); color: var(--wall-deep); }

/* ---------- Enquiry form ---------- */
.enquiry { max-width: 40rem; margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 2rem; }
.enquiry h2 { margin: 0 0 1.5rem; font: italic 400 var(--t-h3)/1.3 var(--serif); color: var(--stone-dim); }
.enquiry__form p { margin: 0 0 1.25rem; }
.enquiry__form label { display: block; margin-bottom: 0.375rem; font: 400 var(--t-ui)/1.4 var(--sans); color: var(--stone-dim); }
.enquiry__form input[type='text'],
.enquiry__form input[type='email'],
.enquiry__form select,
.enquiry__form textarea {
	width: 100%;
	padding: 0.75rem 0.875rem;
	border: 1px solid rgba(232, 228, 218, 0.28);
	border-radius: 0;
	background: var(--wall-deep);
	color: var(--stone);
	font: 400 1.0625rem/1.5 var(--serif);
}
.enquiry__form input:focus,
.enquiry__form select:focus,
.enquiry__form textarea:focus { border-color: var(--brass); outline: 1px solid var(--brass); outline-offset: 0; }
.enquiry__consent label { display: flex; gap: 0.625rem; align-items: flex-start; }
.enquiry__consent input { margin-top: 0.25rem; accent-color: var(--brass); }
.enquiry__trap { position: absolute; left: -9999px; }
.enquiry__status { padding: 0.875rem 1rem; border-left: 2px solid var(--brass); font: 400 var(--t-ui)/1.5 var(--sans); }
.enquiry__status--error { border-color: #d98b7a; }

/* ---------- Recognition band (home, above the hung work) ---------- */
.ticker {
	overflow: hidden;
	border-block: 1px solid var(--rule);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; }
.ticker__list {
	display: flex;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ticker__list li {
	display: flex;
	align-items: baseline;
	padding: 0.875rem 0;
	white-space: nowrap;
	font: 400 var(--t-label)/1.4 var(--sans);
	color: var(--stone-dim);
}
/* A short brass rule between entries. */
.ticker__list li::after {
	content: '';
	display: inline-block;
	width: 2.5rem;
	height: 1px;
	margin: 0 2.5rem;
	vertical-align: middle;
	background: var(--brass);
	opacity: 0.6;
	align-self: center;
}
.ticker a { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; }
.ticker a:hover .ticker__title { color: var(--brass); }
.ticker__year { margin-right: 0.75rem; color: var(--brass); font-variant-numeric: lining-nums tabular-nums; }
.ticker__title { margin-right: 0.75rem; font: italic 400 1.0625rem/1.4 var(--serif); color: var(--stone); }

@media (prefers-reduced-motion: no-preference) {
	.ticker__track { animation: ticker 48s linear infinite; }
	.ticker:hover .ticker__track,
	.ticker:focus-within .ticker__track { animation-play-state: paused; }
}
@keyframes ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.ticker { -webkit-mask-image: none; mask-image: none; }
	.ticker__track { width: auto; }
	.ticker__list { flex-wrap: wrap; flex-shrink: 1; }
	.ticker__list[aria-hidden] { display: none; }
	.ticker__list li { white-space: normal; }
}

/* With the band above it, the hung work gives back that height. */
.ticker + .hang--hero { min-height: calc(100svh - 9.25rem); }
.ticker + .hang--hero .work--hero .work__open img { max-height: calc(100svh - 14rem); }
@media (max-width: 63.99em) {
	.ticker + .hang--hero { min-height: 0; padding-top: 1.5rem; }
	.ticker + .hang--hero .work--hero .work__open img { max-height: 72svh; }
}

/* ---------- Cookie consent ---------- */
.consent {
	position: fixed;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	left: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 30;
	max-width: 30rem;
	margin-left: auto;
	padding: 1.25rem 1.5rem 1.375rem;
	border: 1px solid var(--rule);
	background: var(--wall-deep);
	box-shadow: 0 1.5rem 3rem -1rem rgba(10, 14, 12, 0.6);
	font: 400 var(--t-ui)/1.55 var(--sans);
	color: var(--stone-dim);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent__title { margin-bottom: 0.5rem !important; font: italic 400 var(--t-h3)/1.3 var(--serif); color: var(--stone); }
.consent__text a { color: var(--stone); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem !important; }
/* Both choices carry equal weight, as consent rules require. */
.consent__actions .button { flex: 1 1 10rem; text-align: center; }

.linkish {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(191, 163, 115, 0.55);
	text-underline-offset: 0.22em;
	cursor: pointer;
}
.linkish:hover { color: var(--brass); }

.colophon__legal ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.colophon__legal { text-align: right; }
.colophon__legal ul { justify-content: flex-end; }
@media (max-width: 47.99em) {
	.colophon__legal, .colophon__legal ul { text-align: left; justify-content: flex-start; }
}

.prints__notice {
	margin: 0 0 3rem;
	padding: 0.875rem 1rem;
	border-left: 2px solid var(--brass);
	font: 400 var(--t-ui)/1.5 var(--sans);
	color: var(--stone);
	max-width: 40rem;
}

/* ---------- Exhibition and award record in wall labels ---------- */
.label__record { margin-top: 1rem; }
.label__heading {
	margin-bottom: 0.25rem !important;
	font: italic 400 0.9375rem/1.4 var(--serif);
	color: var(--stone);
}
.label__record ul { margin: 0; padding: 0; list-style: none; }
.label__record li { margin: 0 0 0.375rem; padding-left: 0.875rem; text-indent: -0.875rem; }
.label__record li::before { content: '–'; display: inline-block; width: 0.875rem; text-indent: 0; color: var(--brass); }
.label__record a { color: var(--stone); }
.label__upcoming { color: var(--brass); }

/* ---------- Competition badges (images only, under the record) ---------- */
.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 0.875rem 0 0;
	padding: 0;
	list-style: none;
}
.badge a { display: block; text-decoration: none; color: inherit; }
.badge--image .badge__img {
	display: block;
	width: auto;
	height: 4.5rem;
	max-width: 7rem;
	object-fit: contain;
}
.badge--image a:hover .badge__img { filter: brightness(1.12); }
.series__badges { margin: -1rem 0 2.25rem; }
.series__badges .badge--image .badge__img { height: 5.5rem; max-width: 8.5rem; }
.page__badge { margin: 0 0 2.5rem; }
.page--event .event__work { margin: clamp(2.5rem, 7vh, 4.5rem) 0; }
.page__badge img { display: block; width: auto; height: 8rem; }
.viewer__label .badges { margin-top: 0.75rem; }

/* ---------- Age check (nude works) ---------- */
.age-pending .work--sensitive img {
	filter: blur(28px) saturate(0.6);
	transition: filter 0.4s ease;
}
/* Keep the blurred frame inside its own edges. */
.age-pending .work--sensitive img { clip-path: inset(0); }
.agegate {
	max-width: 30rem;
	padding: 1.75rem 2rem 2rem;
	border: 1px solid var(--rule);
	background: var(--wall-deep);
	color: var(--stone);
	box-shadow: 0 2rem 4rem -1rem rgba(10, 14, 12, 0.7);
}
.agegate::backdrop { background: rgba(20, 26, 23, 0.82); backdrop-filter: blur(6px); }
.agegate p { margin: 0; }
.agegate__title { margin-bottom: 0.75rem !important; font: italic 400 var(--t-h2)/1.2 var(--serif); }
.agegate__text { font-size: 1.0625rem; line-height: 1.55; color: var(--stone-dim); }
.agegate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem !important; }
.agegate__actions .button { flex: 1 1 11rem; text-align: center; }
.agegate__hidden {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	z-index: 25;
	transform: translateX(-50%);
	margin: 0;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--rule);
	background: var(--wall-deep);
	font: 400 var(--t-ui)/1.4 var(--sans);
	color: var(--stone-dim);
	white-space: nowrap;
}
.agegate__hidden[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.age-pending .work--sensitive img { transition: none; }
}

/* ---------- Works overview: justified photo grid ---------- */
.page--works { max-width: none; }
.works__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.works__head .page__title { margin-bottom: 1.5rem; }
.works__view { display: flex; gap: 1.25rem; font: 400 var(--t-ui)/1.4 var(--sans); }
.works__view a { color: var(--stone-dim); text-decoration: none; }
.works__view a:hover { color: var(--stone); }
.works__view a[aria-current='page'] { color: var(--stone); text-decoration: underline; text-decoration-color: var(--brass); }
.works__filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 2rem; }
.works__filter {
	padding: 0;
	border: 0;
	background: none;
	color: var(--stone-dim);
	font: 400 var(--t-ui)/1.6 var(--sans);
	cursor: pointer;
}
.works__filter:hover { color: var(--stone); }
.works__filter[aria-pressed='true'] { color: var(--stone); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.3em; }

/* Larger view: browse with previous / next. */
.viewer__bar { display: flex; justify-content: flex-end; gap: 1.75rem; }
.viewer__nav {
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: var(--stone-dim);
	font: 400 var(--t-ui)/1 var(--sans);
	cursor: pointer;
}
.viewer__nav:hover { color: var(--stone); }
.viewer__label .label__more { margin-top: 0.75rem; }

/* ---------- Works overview: scattered prints over a wide field ---------- */
.scatter {
	position: relative;
	width: 100vw;
	height: calc(var(--h) * 1vw);
	margin: 0.5rem 0 0 calc(50% - 50vw);
	overflow: clip;
}
/* The artist's name stays in the middle of the screen; the prints scroll over it. */
.scatter__name {
	position: sticky;
	top: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	height: 100vh;
	height: 100svh;
	margin-bottom: -100vh;
	margin-bottom: -100svh;
	pointer-events: none;
}
.scatter__name span {
	font: 200 clamp(3.5rem, 10.5vw, 13rem)/0.9 var(--serif);
	letter-spacing: -0.025em;
	white-space: nowrap;
	color: var(--stone);
}
.scatter__field { position: absolute; inset: 0; z-index: 2; }
.scatter__item {
	position: absolute;
	left: calc(var(--x) * 1vw);
	top: calc(var(--y) * 1vw);
	width: calc(var(--w) * 1vw);
	margin: 0;
	transition: opacity 0.45s ease;
}
.scatter__item:hover, .scatter__item:focus-within { z-index: 3; }
.scatter__item .work__open { display: block; width: 100%; cursor: zoom-in; }
.scatter__item .work__open img {
	--mat: 0.85vw;
	width: 100%;
	height: auto;
	max-height: none;
	box-shadow: 0 1.5rem 2.5rem -1.25rem rgba(10, 14, 12, 0.6);
}
.scatter__item.is-dim { opacity: 0.1; }
.scatter__cap {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 0.5rem;
	font: 400 var(--t-label)/1.4 var(--sans);
	color: var(--stone-dim);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.scatter__cap cite { font: italic 400 0.9375rem/1.4 var(--serif); color: var(--stone); }
.scatter__cap span { margin-left: 0.5rem; }
.scatter__item:hover .scatter__cap, .scatter__item:focus-within .scatter__cap { opacity: 1; }

/* Overview map, bottom right: where you are in the field. Click to jump. */
.scatter__map {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 20;
	width: 8.5rem;
	border: 1px solid var(--rule);
	background: rgba(37, 48, 41, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	cursor: pointer;
}
.scatter__map.is-visible { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.scatter__map-dots { position: absolute; inset: 0; overflow: hidden; }
.scatter__map-dots i { position: absolute; display: block; background: var(--mat-color); opacity: 0.75; }
.scatter__map-dots i.is-dim { opacity: 0.15; }
.scatter__map-view { position: absolute; left: 0; right: 0; border: 1px solid var(--brass); }

@media (max-width: 47.99em) {
	.scatter { height: calc(var(--mh) * 1vw); }
	.scatter__item { left: calc(var(--mx) * 1vw); top: calc(var(--my) * 1vw); width: calc(var(--mw) * 1vw); }
	.scatter__item .work__open img { --mat: 1.8vw; }
	.scatter__map { display: none; }
	.scatter__cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.scatter__item, .scatter__cap, .scatter__map { transition: none; }
}

/* ---------- Footer ---------- */
.colophon {
	margin-top: clamp(4rem, 10vh, 7rem);
	background: var(--wall-deep);
}
.colophon__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr auto;
	gap: 2rem;
	align-items: start;
	max-width: 96rem;
	margin: 0 auto;
	padding: 3rem var(--gutter) 3.5rem;
	font: 400 var(--t-ui)/1.6 var(--sans);
	color: var(--stone-dim);
}
.colophon__name { margin: 0; font: 400 var(--t-lead)/1.3 var(--serif); color: var(--stone); }
.colophon__name span { font: 400 var(--t-ui)/1.6 var(--sans); color: var(--stone-dim); }
.colophon__links { margin: 0; padding: 0; list-style: none; }
.colophon__copy { margin: 0; }

@media (max-width: 47.99em) {
	.colophon__inner { grid-template-columns: 1fr; }
}

/* ---------- Larger view ---------- */
.viewer {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: clamp(1rem, 3vw, 2.5rem);
	border: 0;
	background: var(--wall-deep);
	color: var(--stone);
}
.viewer::backdrop { background: var(--wall-deep); }
.viewer[open] {
	display: flex;
	flex-direction: column;
}
.viewer__close {
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: var(--stone);
	font: 500 var(--t-ui)/1 var(--sans);
	cursor: pointer;
}
.viewer__figure {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--label-col);
	gap: 2rem;
	align-items: end;
	min-height: 0;
	margin: 1rem 0 0;
}
.viewer__img {
	width: auto;
	height: auto;
	max-width: 100%;
	justify-self: center;
	align-self: center;
	padding: clamp(0.75rem, 2vw, 2rem) clamp(0.75rem, 2vw, 2rem) clamp(0.9rem, 2.4vw, 2.4rem);
	background: var(--mat-color);
	max-height: calc(100dvh - 7rem);
}
@media (max-width: 63.99em) {
	.viewer__figure { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
	.viewer__img { max-height: calc(100dvh - 12rem); }
}
.viewer-open { overflow: hidden; }

/* ---------- WordPress bits ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font: 400 var(--t-label)/1.5 var(--sans); color: var(--stone-dim); }

@media print {
	html, body { background: #fff; color: #111; }
	.masthead nav, .colophon, .viewer, .skip { display: none; }
	.work { break-inside: avoid; }
	.label, .cv-list dt { color: #444; }
}
