/* Antzi — style B "museum label". Cream paper, Cormorant Garamond for text, Jost for labels. */

:root {
	--paper: #F4EFE6;
	--ink: #2B2621;
	--muted: #7D7368;
	--muted-dark: #5A5148;
	--line: #DDD3C5;
	--wall: #EAE3D7;
	--terracotta: #A4502F;
	--blue-grey: #3E6478;
	--highlight: #E7B98A;
	--serif: "Cormorant Garamond", Garamond, Georgia, serif;
	--sans: Jost, Futura, "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 4vw, 56px);
	--max: 1280px;
	--reading: 720px;
	--shadow-painting: 0 10px 28px rgba(43, 38, 33, 0.2);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
}

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

.label {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.kicker {
	color: var(--terracotta);
	margin: 0 0 0.9rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--gutter);
	border-bottom: 1px solid var(--line);
}

.wordmark {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 2rem;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.wordmark small {
	margin-left: 0.6em;
	color: var(--muted);
	font-size: 0.95rem;
	font-style: italic;
}

.site-nav ul {
	display: flex;
	gap: clamp(16px, 2.4vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a,
.footer-nav a {
	font-family: var(--sans);
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav a {
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
	color: var(--terracotta);
}

.site-nav a[aria-current] {
	color: var(--terracotta);
	border-bottom-color: var(--terracotta);
}

.menu-toggle {
	display: none;
	position: relative;
	z-index: 60;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
}

@media (max-width: 860px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
	}

	.site-nav {
		display: none;
	}

	body.menu-open {
		overflow: hidden;
	}

	body.menu-open .site-nav {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 50;
		align-items: center;
		justify-content: center;
		background: var(--paper);
	}

	body.menu-open .site-nav ul {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}

	body.menu-open .site-nav a {
		font-size: 1rem;
	}
}

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

.site-footer {
	padding: 56px var(--gutter) 36px;
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px 48px;
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a:hover {
	color: var(--terracotta);
}

.site-footer__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.78rem;
}

.site-footer__meta p {
	margin: 0;
}

.site-footer__meta a {
	text-decoration: none;
}

.site-footer__meta a:hover {
	color: var(--terracotta);
}

@media (max-width: 700px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.footer-nav ul {
		justify-content: flex-start;
	}
}

/* ---------- Text pages ---------- */

.page-head {
	max-width: calc(var(--reading) + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(48px, 8vw, 104px) var(--gutter) 0;
}

.text-page .page-head::after {
	content: "";
	display: block;
	width: 56px;
	margin: 0 0 clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--terracotta);
}

.page-title {
	margin: 0 0 0.5em;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	font-weight: 400;
	line-height: 1;
}

.prose {
	max-width: calc(var(--reading) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(64px, 9vw, 128px);
	font-size: 1.3rem;
	line-height: 1.65;
}

.prose > p:first-child,
.prose > .antzi-draft-note + h2 + p {
	font-size: 1.5rem;
	line-height: 1.5;
}

.prose p {
	margin: 0 0 1em;
}

.prose h2 {
	margin: 2.2em 0 0.6em;
	font-size: 2.1rem;
	font-weight: 400;
	line-height: 1.15;
}

.prose > h2:first-child {
	margin-top: 0.4em;
}

.prose h3 {
	margin: 1.9em 0 0.5em;
	font-size: 1.6rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

.prose a {
	text-decoration-color: var(--terracotta);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.prose a:hover {
	color: var(--terracotta);
}

.prose ul,
.prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.2em;
}

.prose li {
	margin: 0.3em 0;
}

.prose li::marker {
	color: var(--terracotta);
}

.prose blockquote {
	margin: 2em 0;
	padding: 0.2em 0 0.2em 1.4em;
	border-left: 2px solid var(--terracotta);
	font-size: 1.45rem;
	font-style: italic;
	line-height: 1.5;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose figure {
	margin: 2.4em 0;
}

/* Images in texts hang on the "gallery wall", like the catalogue. */
.prose .wp-block-image {
	padding: clamp(16px, 3vw, 32px);
	background: var(--wall);
}

.prose .wp-block-image img {
	margin: 0 auto;
	box-shadow: var(--shadow-painting);
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 1em;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.78rem;
	line-height: 1.5;
	text-align: left;
}

.prose .wp-block-gallery {
	gap: 16px;
}

.prose .wp-block-gallery .wp-block-image {
	padding: 12px;
}

/* Gallery captions sit under the photo (WordPress lays them over it by default). */
.prose .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-direction: column;
}

.prose .wp-block-gallery.has-nested-images figure.wp-block-image::before {
	display: none;
}

.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin-top: 0.8em;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--muted);
	font-size: 0.7rem;
	text-align: left;
	text-shadow: none;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.1rem;
	line-height: 1.45;
}

.prose th {
	padding: 0.6em 0.8em 0.6em 0;
	border-bottom: 1px solid var(--ink);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-align: left;
	text-transform: uppercase;
}

.prose td {
	padding: 0.7em 0.8em 0.7em 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.prose td:first-child {
	width: 8.5em;
	color: var(--terracotta);
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose hr,
.prose .wp-block-separator {
	width: 80px;
	margin: 3em auto;
	border: 0;
	border-top: 1px solid var(--terracotta);
}

.antzi-draft-note {
	padding: 0.9em 1.1em;
	border-left: 3px solid #dba617;
	background: #fbf3dd;
	font-family: var(--sans);
	font-size: 0.85rem !important;
	line-height: 1.5 !important;
}

.plain-list {
	list-style: none;
	padding: 0;
}

/* ---------- Buttons ---------- */

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.antzi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 26px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 0.74rem;
	letter-spacing: 0.22em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.antzi-button:hover {
	background: var(--terracotta);
	border-color: var(--terracotta);
	color: #fff;
}

.antzi-button--ghost {
	background: transparent;
	color: var(--ink);
}

.prose .antzi-button {
	text-decoration: none;
}

/* ---------- Homepage ---------- */

.home {
	display: grid;
	grid-template-rows: 1fr auto;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
}

.home__stage {
	position: relative;
	overflow: hidden;
	background: var(--ink);
}

.home__painting {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: home-drift 28s ease-out both;
}

@keyframes home-drift {
	from {
		transform: scale(1.06);
	}

	to {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home__painting {
		animation: none;
	}
}

.home__card {
	position: absolute;
	top: 50%;
	left: clamp(20px, 5vw, 80px);
	width: min(440px, calc(100% - 40px));
	padding: clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) clamp(24px, 2.8vw, 38px);
	background: var(--paper);
	box-shadow: 0 18px 50px rgba(20, 16, 12, 0.28);
	transform: translateY(-50%);
	animation: home-card 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes home-card {
	from {
		opacity: 0;
		transform: translateY(calc(-50% + 16px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.home__card {
		animation: none;
	}
}

.home__card p {
	margin: 0;
}

.home__kicker {
	color: var(--terracotta);
}

.home__pre {
	margin-top: 1.1rem !important;
	color: var(--muted-dark);
	font-size: 1.55rem;
	font-style: italic;
	line-height: 1.2;
}

.home__name {
	margin: 0.05em 0 0.08em;
	font-size: clamp(4.6rem, 8.6vw, 8.4rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 0.92;
}

.home__dates {
	color: var(--muted-dark);
	font-size: 1.6rem;
	line-height: 1.2;
}

.home__caption {
	margin-top: 1.4rem !important;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.45;
}

.home__caption a {
	text-decoration: none;
}

.home__caption a:hover {
	color: var(--terracotta);
}

.home__tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 170px));
	justify-content: center;
	gap: clamp(12px, 1.6vw, 24px);
	padding: clamp(18px, 2.2vw, 30px) var(--gutter);
	background: var(--paper);
}

.home-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.home-tile__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wall);
}

.home-tile__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-tile:hover .home-tile__image img {
	transform: scale(1.06);
}

.home-tile__label {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-align: center;
}

.home-tile:hover .home-tile__label {
	color: var(--terracotta);
}

@media (max-width: 820px) {
	.home {
		display: block;
		height: auto;
		min-height: 0;
	}

	.home__stage {
		overflow: visible;
		background: none;
	}

	.home__painting {
		position: relative;
		height: min(56svh, 520px);
		min-height: 300px;
		animation: none;
	}

	.home__card {
		position: relative;
		top: auto;
		left: auto;
		width: auto;
		margin: -64px 16px 0;
		transform: none;
		animation: none;
	}

	.home__tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px 16px;
		padding: 36px 16px 44px;
	}
}

/* ---------- Catalogue ---------- */

.catalogue {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 112px);
}

.catalogue__head .page-title {
	margin-bottom: 0.2em;
}

.catalogue__count {
	margin: 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.85rem;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: clamp(28px, 3.4vw, 40px) 0 14px;
}

.filter select,
.filter-search input {
	height: 40px;
	border: 1px solid #CFC4B4;
	border-radius: 999px;
	background-color: #FAF7F1;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.82rem;
}

.filter {
	flex: 0 0 158px;
}

.filter select {
	width: 100%;
	padding: 0 34px 0 16px;
	text-overflow: ellipsis;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.filter.is-active select {
	border-color: var(--terracotta);
	color: var(--terracotta);
}

.filter-search {
	margin-left: auto;
}

.filter-search input {
	width: 150px;
	padding: 0 16px;
}

.filters__submit {
	height: 40px;
	border-radius: 999px;
}

.filters.is-enhanced .filters__submit {
	display: none;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--terracotta);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.78rem;
	text-decoration: none;
}

.chip:hover {
	background: var(--ink);
}

.chips__reset {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.78rem;
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 42vw), 1fr));
	gap: clamp(24px, 3vw, 40px) clamp(16px, 2.2vw, 32px);
	margin: clamp(24px, 3vw, 36px) 0 0;
	padding: 0;
	list-style: none;
}

.work-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

/* Square "wall" whatever the painting's shape: the image is limited to 72% of the square's side. */
.work-card__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	container-type: inline-size;
	background: var(--wall);
	transition: background 0.3s;
}

.work-card__frame img {
	max-width: 72cqw;
	max-height: 72cqw;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 6px 18px rgba(43, 38, 33, 0.22);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card__link:hover .work-card__frame {
	background: #E3DBCD;
}

.work-card__link:hover .work-card__frame img {
	transform: translateY(-4px);
}

.work-card__placeholder {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.75rem;
	text-align: center;
}

.work-card__no {
	margin-top: 14px;
	color: var(--terracotta);
	font-size: 0.66rem;
}

.work-card__title {
	margin: 4px 0 2px;
	font-size: 1.35rem;
	line-height: 1.15;
}

.work-card__link:hover .work-card__title {
	color: var(--terracotta);
}

.work-card__meta {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.75rem;
	line-height: 1.5;
}

.catalogue__empty {
	margin: 48px 0;
	padding: 48px 24px;
	background: var(--wall);
	text-align: center;
}

.catalogue__empty p {
	margin: 0 0 20px;
	font-size: 1.5rem;
}

.pagination {
	margin-top: 56px;
	font-family: var(--sans);
	font-size: 0.82rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
}

.pagination a,
.pagination span {
	text-decoration: none;
}

.pagination .current {
	color: var(--terracotta);
}

@media (max-width: 700px) {
	.filter {
		flex: 1 1 calc(50% - 5px);
	}

	.filter-search {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.filter-search input {
		width: 100%;
	}
}

/* ---------- Single work ---------- */

.work {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px var(--gutter) clamp(64px, 8vw, 112px);
}

.crumbs {
	margin-bottom: 28px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8rem;
}

.crumbs a {
	color: var(--terracotta);
	text-decoration: none;
}

.crumbs a:first-child {
	color: var(--muted);
}

.work__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(32px, 4.5vw, 72px);
	align-items: start;
}

.work__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	margin: 0;
	padding: clamp(20px, 3.4vw, 48px);
	background: var(--wall);
}

.work__zoom {
	display: block;
	cursor: zoom-in;
}

.work__image {
	max-height: 70vh;
	width: auto;
	box-shadow: 0 14px 36px rgba(43, 38, 33, 0.25);
}

.work__hint {
	position: absolute;
	right: 14px;
	bottom: 10px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.7rem;
}

.work__stage--empty {
	aspect-ratio: 4 / 3;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.85rem;
}

.work__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.work__thumbs li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 88px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.68rem;
	text-align: center;
}

.work__thumb {
	width: 88px;
	height: 66px;
	padding: 0;
	border: 1px solid transparent;
	background: var(--wall);
	cursor: pointer;
}

.work__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.work__thumb.is-active {
	border-color: var(--terracotta);
}

.work__credit {
	margin: 12px 0 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.72rem;
	line-height: 1.5;
}

.work__title {
	margin: 0 0 0.4em;
	font-size: clamp(2.2rem, 3.6vw, 3.2rem);
	font-weight: 400;
	line-height: 1.05;
}

.facts {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.15rem;
	line-height: 1.4;
}

.facts th,
.facts td {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.facts th {
	width: 36%;
	padding-top: 16px;
	padding-right: 12px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.facts a {
	text-decoration-color: var(--terracotta);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.facts a:hover {
	color: var(--terracotta);
}

.facts__note {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 1rem;
	font-style: italic;
}

.work__notes {
	margin-top: 24px;
	font-size: 1.2rem;
}

.work__cta {
	display: block;
	margin-top: 32px;
	padding: 24px 26px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	transition: background 0.25s;
}

.work__cta:hover {
	background: var(--terracotta);
}

.work__cta-title {
	display: block;
	font-size: 1.6rem;
	line-height: 1.2;
}

.work__cta .label {
	display: block;
	margin-top: 10px;
	color: var(--highlight);
}

.work__cta:hover .label {
	color: #fff;
}

.related {
	margin-top: clamp(64px, 8vw, 104px);
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.related__title {
	margin: 0;
	font-size: 1.9rem;
	font-weight: 400;
}

.works-grid--small {
	grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr));
}

.work__pager {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 0.8rem;
}

.work__pager a {
	text-decoration: none;
}

.work__pager a:hover {
	color: var(--terracotta);
}

@media (max-width: 900px) {
	.work__layout {
		grid-template-columns: 1fr;
	}

	.work__hint {
		display: none;
	}

	.work__stage {
		min-height: 0;
	}

	.work__image {
		max-height: none;
	}
}

/* ---------- Zoom viewer ---------- */

.viewer {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(24, 20, 17, 0.96);
	color: var(--paper);
}

.viewer::backdrop {
	background: rgba(24, 20, 17, 0.6);
}

.viewer__scroll {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 56px 72px;
	overflow: auto;
}

.viewer__image {
	max-width: 100%;
	max-height: 100%;
	cursor: zoom-in;
}

.viewer.is-zoomed .viewer__scroll {
	display: block;
	padding: 0;
}

.viewer.is-zoomed .viewer__image {
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.viewer__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	margin: 0;
	font-family: var(--sans);
	font-size: 0.78rem;
	text-align: center;
	pointer-events: none;
}

.viewer__close,
.viewer__prev,
.viewer__next {
	position: absolute;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(244, 239, 230, 0.4);
	border-radius: 50%;
	background: rgba(24, 20, 17, 0.6);
	color: var(--paper);
	font-size: 1.1rem;
	cursor: pointer;
}

.viewer__close {
	top: 14px;
	right: 14px;
}

.viewer__prev,
.viewer__next {
	top: 50%;
	transform: translateY(-50%);
}

.viewer__prev {
	left: 14px;
}

.viewer__next {
	right: 14px;
}

.viewer button:hover {
	border-color: var(--paper);
}

/* ---------- News ---------- */

.news {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 112px);
}

.news__head .page-title {
	margin-bottom: 0.3em;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(20px, 3vw, 36px);
	margin-bottom: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--line);
}

.tabs a {
	margin-bottom: -1px;
	padding-bottom: 12px;
	border-bottom: 2px solid transparent;
	font-family: var(--sans);
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.tabs a:hover {
	color: var(--terracotta);
}

.tabs a[aria-current] {
	border-bottom-color: var(--terracotta);
	color: var(--terracotta);
}

.badge {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid currentColor;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.64rem;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
}

.badge--terra {
	color: var(--terracotta);
}

.badge--blue {
	color: var(--blue-grey);
}

.news-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 4.5vw, 64px);
	align-items: center;
	padding-bottom: clamp(32px, 4vw, 48px);
	border-bottom: 1px solid var(--line);
}

.news-feature__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: clamp(20px, 3vw, 36px);
	background: var(--wall);
	container-type: inline-size;
}

.news-feature__image img {
	max-width: 100%;
	max-height: 62cqw;
	width: auto;
	box-shadow: var(--shadow-painting);
}

.news-feature__title {
	margin: 18px 0 14px;
	font-size: clamp(2.1rem, 3.6vw, 3.2rem);
	font-weight: 400;
	line-height: 1.05;
}

.news-feature__title a,
.news-item__title a {
	text-decoration: none;
}

.news-feature__title a:hover,
.news-item__title a:hover {
	color: var(--terracotta);
}

.news-feature__excerpt {
	margin: 0 0 18px;
	color: var(--muted-dark);
	font-size: 1.35rem;
	line-height: 1.5;
}

.news-more {
	color: var(--terracotta);
	text-decoration: none;
}

.news-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
	gap: 36px 48px;
	margin-top: clamp(32px, 4vw, 44px);
}

.news-item {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 22px;
	align-items: start;
}

.news-item__image,
.news-feature__image {
	text-decoration: none;
}

.news-item__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wall);
}

.news-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--muted);
	font-size: 1.6rem;
	font-style: italic;
}

.news-item__date {
	margin: 10px 0 4px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.75rem;
}

.news-item__title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.15;
}

.news__empty {
	padding: 48px 24px;
	background: var(--wall);
	font-size: 1.4rem;
	text-align: center;
}

.news-single .kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.news-single__date {
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: none;
	font-size: 0.8rem;
}

.related--news {
	max-width: var(--max);
	margin: 0 auto;
	padding: 32px var(--gutter) 0;
}

.news-single__back {
	max-width: calc(var(--reading) + 2 * var(--gutter));
	margin: 48px auto 80px;
	padding: 0 var(--gutter);
}

.news-single__back a {
	color: var(--terracotta);
	text-decoration: none;
}

@media (max-width: 800px) {
	.news-feature {
		grid-template-columns: 1fr;
	}

	.news-item {
		grid-template-columns: 110px 1fr;
		gap: 16px;
	}
}

/* ---------- Contact form ---------- */

.antzi-contact {
	margin-top: 2.4em;
	padding-top: 2em;
	border-top: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 0.95rem;
	scroll-margin-top: 24px;
}

.antzi-contact__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
}

.antzi-contact__field {
	margin: 0 0 22px !important;
}

.antzi-contact__field label {
	display: block;
	margin-bottom: 8px;
	color: var(--muted-dark);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.antzi-contact__field label span {
	color: var(--muted);
	letter-spacing: 0;
	text-transform: none;
}

.antzi-contact input[type="text"],
.antzi-contact input[type="email"],
.antzi-contact select,
.antzi-contact textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #CFC4B4;
	border-radius: 2px;
	background: #FAF7F1;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.antzi-contact input[type="text"],
.antzi-contact input[type="email"],
.antzi-contact select {
	height: 48px;
}

.antzi-contact textarea {
	min-height: 180px;
	resize: vertical;
	line-height: 1.5;
}

.antzi-contact input:focus,
.antzi-contact select:focus,
.antzi-contact textarea:focus {
	border-color: var(--terracotta);
	outline: none;
	box-shadow: 0 0 0 3px rgba(164, 80, 47, 0.15);
}

.antzi-contact input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 1px dashed #CFC4B4;
	background: #FAF7F1;
	font: inherit;
	font-size: 0.9rem;
}

.antzi-contact__consent {
	margin: 0 0 26px !important;
	font-size: 0.88rem;
	line-height: 1.55;
}

.antzi-contact__consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
}

.antzi-contact__consent input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--terracotta);
}

.antzi-contact__hp {
	position: absolute !important;
	left: -9999px;
}

.antzi-contact__sent,
.antzi-contact__errors {
	margin-bottom: 28px;
	padding: 18px 20px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.antzi-contact__sent {
	border-left: 3px solid var(--terracotta);
	background: var(--wall);
}

.antzi-contact__errors {
	border-left: 3px solid #b32d2e;
	background: #f9e9e6;
}

.antzi-contact__errors p,
.antzi-contact__errors ul {
	margin: 0;
}

.antzi-contact__errors ul {
	margin-top: 6px;
}

@media (max-width: 640px) {
	.antzi-contact__row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Homepage introduction ---------- */

.home-intro {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(64px, 9vw, 128px) var(--gutter) clamp(56px, 8vw, 112px);
	border-top: 1px solid var(--line);
}

.home-intro .wp-block-columns {
	gap: clamp(28px, 6vw, 96px);
	margin: 0;
}

.home-intro .home-intro__kicker {
	margin: 0 0 1.1rem;
	color: var(--terracotta);
	font-family: var(--sans);
	font-size: 0.72rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.home-intro h2 {
	margin: 0;
	font-size: clamp(2.3rem, 4.2vw, 3.6rem);
	font-weight: 400;
	line-height: 1.05;
}

.home-intro p {
	margin: 0 0 1em;
	font-size: 1.35rem;
	line-height: 1.6;
}

.home-intro .home-intro__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 1.6em;
}

.home-intro__links a {
	color: var(--terracotta);
	font-family: var(--sans);
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.home-intro__links a::after {
	content: " →";
}

.home-intro__links a:hover {
	color: var(--ink);
}

.home-intro .home-intro__call {
	margin: clamp(48px, 6vw, 80px) 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	color: var(--muted-dark);
	font-size: 1.45rem;
	font-style: italic;
	text-align: center;
}

.home-intro__call a {
	color: var(--ink);
	text-decoration-color: var(--terracotta);
	text-underline-offset: 0.2em;
}

.antzi-contact__photo-error {
	margin: 10px 0 0 !important;
	color: #b32d2e;
	font-size: 0.88rem;
}

/* ---------- "Site en construction" placeholder ---------- */

.home--construction {
	grid-template-rows: 1fr;
}

.construction__login {
	position: fixed;
	right: 16px;
	bottom: 14px;
	padding: 6px 12px;
	background: rgba(244, 239, 230, 0.85);
	color: var(--muted-dark);
	font-family: var(--sans);
	font-size: 0.72rem;
	text-decoration: none;
}

.construction__login:hover {
	color: var(--terracotta);
}

@media (max-width: 820px) {
	.construction__login {
		position: static;
		display: block;
		margin: 28px auto;
		text-align: center;
		background: none;
	}
}
