/*
Theme Name: Anita Studio
Theme URI: https://anitassart.store
Author: John-Henry Bartlett
Description: A warm, coastal portfolio theme for Anita Bartlett's oil paintings. Works with the "Anita's Paintings" plugin for the gallery.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anita-studio
*/

:root {
	--sand: #f3ede3;
	--paper: #fbf8f2;
	--linen: #e9e1d4;
	--line: #dbd1c1;
	--ink: #1f2b2a;
	--ink-soft: #3c4846;
	--muted: #5a6562;
	--sea: #2e5d5b;
	--sea-deep: #234847;
	--clay: #9f5230;
	--white: #ffffff;
	--display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius: 2px;
	--shadow: 0 1px 2px rgba(31, 43, 42, 0.08), 0 12px 32px -12px rgba(31, 43, 42, 0.28);
}

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

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

body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--sea);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--sea-deep);
}

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

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
}

h1 {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
	font-size: 1.6rem;
}

p {
	margin: 0 0 1.1em;
}

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

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.eyebrow {
	display: inline-block;
	font-family: var(--body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 1rem;
}

.lede {
	font-size: 1.15rem;
	color: var(--ink-soft);
	max-width: 36em;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--sea);
	border-radius: 999px;
	background: var(--sea);
	color: var(--white);
	font-family: var(--body);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	background: var(--sea-deep);
	border-color: var(--sea-deep);
	color: var(--white);
}

.btn--ghost {
	background: transparent;
	color: var(--sea);
}

.btn--ghost:hover {
	background: var(--sea);
	color: var(--white);
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

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

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(243, 237, 227, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.brand {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--ink);
	line-height: 1;
}

.brand:hover {
	color: var(--ink);
}

.brand__name {
	font-family: var(--display);
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.brand__tag {
	margin-top: 5px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.brand img {
	max-height: 44px;
	width: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 999px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
	background: var(--linen);
	color: var(--ink);
}

.site-nav .nav-cta a {
	background: var(--sea);
	color: var(--white);
	padding: 0 20px;
}

.site-nav .nav-cta a:hover {
	background: var(--sea-deep);
	color: var(--white);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--sand);
		border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 20px;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav a {
		width: 100%;
		font-size: 1.05rem;
		padding: 0 16px;
	}

	.site-nav .nav-cta a {
		justify-content: center;
		margin-top: 8px;
	}
}

/* Framed painting */
.frame {
	background: var(--white);
	padding: clamp(8px, 1.2vw, 14px);
	box-shadow: var(--shadow);
}

.frame img {
	width: 100%;
	height: auto;
}

/* Hero */
.hero {
	padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
}

.hero__text h1 em {
	font-style: italic;
	color: var(--sea);
}

.hero__art {
	position: relative;
}

.hero__art .frame {
	transform: rotate(0.6deg);
}

.hero__caption {
	margin-top: 14px;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: right;
}

.hero__place {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 0.9rem;
	color: var(--muted);
}

.hero__place svg {
	width: 18px;
	height: 18px;
	color: var(--sea);
}

@media (max-width: 860px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__art {
		order: -1;
	}
}

/* Sections */
.section {
	padding: clamp(56px, 8vw, 112px) 0;
}

.section--paper {
	background: var(--paper);
}

.section--linen {
	background: var(--linen);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
	margin: 0;
}

.section-head p {
	margin: 10px 0 0;
	color: var(--muted);
	max-width: 34em;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
}

.link-arrow svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.link-arrow:hover svg {
	transform: translateX(3px);
}

/* Subject cards */
.subjects {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
}

.subject-card {
	display: block;
	text-decoration: none;
	color: var(--ink);
}

.subject-card__img {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--linen);
	border-radius: var(--radius);
}

.subject-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.subject-card:hover .subject-card__img img {
	transform: scale(1.04);
}

.subject-card__name {
	display: block;
	margin-top: 14px;
	font-family: var(--display);
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.15;
}

.subject-card__count {
	display: block;
	margin-top: 2px;
	font-size: 0.85rem;
	color: var(--muted);
}

.subject-card:hover {
	color: var(--sea);
}

@media (max-width: 1000px) {
	.subjects {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.subjects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Masonry gallery */
.masonry {
	column-count: 4;
	column-gap: clamp(14px, 2vw, 28px);
}

.masonry--3 {
	column-count: 3;
}

.masonry__item {
	break-inside: avoid;
	margin: 0 0 clamp(14px, 2vw, 28px);
}

.tile {
	display: block;
	position: relative;
	background: var(--white);
	padding: 8px;
	box-shadow: 0 1px 2px rgba(31, 43, 42, 0.06), 0 8px 22px -14px rgba(31, 43, 42, 0.35);
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(31, 43, 42, 0.08), 0 18px 36px -16px rgba(31, 43, 42, 0.45);
	color: var(--ink);
}

.tile img {
	width: 100%;
	height: auto;
	background: var(--linen);
}

.tile__meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 4px 2px;
	font-size: 0.8rem;
	color: var(--muted);
}

@media (max-width: 560px) {
	.tile__meta > span {
		display: none;
	}
}

.tile__meta strong {
	font-weight: 600;
	color: var(--ink-soft);
}

@media (max-width: 1100px) {
	.masonry {
		column-count: 3;
	}
}

@media (max-width: 760px) {
	.masonry,
	.masonry--3 {
		column-count: 2;
	}
}

/* Gallery page */
.page-hero {
	padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
}

.page-hero h1 {
	margin-bottom: 0.3em;
}

.filters {
	position: sticky;
	top: 76px;
	z-index: 20;
	background: rgba(243, 237, 227, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 14px 0;
	margin-bottom: clamp(20px, 3vw, 36px);
	border-bottom: 1px solid var(--line);
}

.filters ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.filters ul::-webkit-scrollbar {
	display: none;
}

.filters a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.filters a:hover {
	border-color: var(--sea);
	color: var(--sea);
}

.filters a[aria-current="page"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.filters .count {
	font-size: 0.78rem;
	opacity: 0.7;
}

.gallery-note {
	margin: clamp(32px, 5vw, 56px) 0 0;
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	text-align: center;
}

.gallery-note p {
	margin: 0 0 16px;
	color: var(--ink-soft);
}

/* Single painting */
.painting {
	padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px);
}

.breadcrumbs {
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 24px;
}

.breadcrumbs a {
	color: var(--muted);
}

.painting__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
}

.painting__art .frame img {
	max-height: 82vh;
	width: auto;
	margin: 0 auto;
}

.painting__info {
	position: sticky;
	top: 110px;
}

.painting__info h1 {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.details {
	margin: 24px 0 28px;
	border-top: 1px solid var(--line);
}

.details div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.95rem;
}

.details dt {
	color: var(--muted);
}

.details dd {
	margin: 0;
	font-weight: 500;
	text-align: right;
}

.painting__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.painting__actions .btn {
	width: 100%;
}

.painting__hint {
	margin-top: 16px;
	font-size: 0.88rem;
	color: var(--muted);
}

.pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(40px, 6vw, 72px);
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
	.painting__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.painting__info {
		position: static;
	}
}

/* About */
.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}

.about-grid__media {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 18px;
}

.about-grid__media video {
	width: 100%;
	background: var(--ink);
}

.prose {
	font-size: 1.08rem;
	color: var(--ink-soft);
	max-width: 38em;
}

.prose p:first-of-type::first-letter {
	float: left;
	font-family: var(--display);
	font-size: 4.2em;
	line-height: 0.82;
	padding: 6px 10px 0 0;
	color: var(--sea);
}

.prose h2 {
	margin-top: 1.4em;
}

.pull {
	margin: 1.6em 0;
	padding: 0;
	font-family: var(--display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-style: italic;
	line-height: 1.25;
	color: var(--ink);
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 2em 0;
	padding: 0;
	list-style: none;
}

.facts li {
	padding: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
	font-size: 0.95rem;
	line-height: 1.45;
}

.facts strong {
	display: block;
	margin-bottom: 6px;
	font-family: var(--display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--ink);
}

@media (max-width: 860px) {
	.about-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-grid__media {
		position: static;
	}

	.facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Quote band */
.quote-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.quote-band blockquote {
	margin: 0 0 24px;
	font-family: var(--display);
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1.2;
}

.quote-band cite {
	display: block;
	margin-bottom: 28px;
	font-style: normal;
	font-size: 0.9rem;
	color: var(--muted);
}

@media (max-width: 860px) {
	.quote-band {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Commission band */
.cta-band {
	background: var(--sea);
	color: var(--paper);
}

.cta-band .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.cta-band h2 {
	color: var(--paper);
	margin-bottom: 0.3em;
}

.cta-band p {
	margin: 0;
	color: #dfe8e5;
	max-width: 32em;
}

.cta-band .btn-row {
	justify-content: flex-end;
}

.cta-band .btn {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--sea-deep);
}

.cta-band .btn:hover {
	background: var(--white);
	color: var(--ink);
}

.cta-band .btn--ghost {
	background: transparent;
	color: var(--paper);
}

.cta-band .btn--ghost:hover {
	background: var(--paper);
	color: var(--sea-deep);
}

@media (max-width: 860px) {
	.cta-band .wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.cta-band .btn-row {
		justify-content: flex-start;
	}
}

/* Steps (commissions) */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	counter-increment: step;
	padding-top: 22px;
	border-top: 1px solid var(--ink);
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 14px;
	font-family: var(--display);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--clay);
}

.steps h3 {
	font-size: 1.45rem;
	margin-bottom: 0.4em;
}

.steps p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

@media (max-width: 960px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
	border-color: var(--sea);
	transform: translateY(-2px);
	color: var(--ink);
}

.contact-card svg {
	width: 26px;
	height: 26px;
	margin-bottom: 12px;
	color: var(--sea);
}

.contact-card__label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-card__value {
	font-family: var(--display);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Generic page content */
.entry {
	max-width: 760px;
}

.entry > * {
	max-width: 100%;
}

/* Footer */
.site-footer {
	background: var(--ink);
	color: #c9d1ce;
	padding: clamp(48px, 6vw, 80px) 0 32px;
	font-size: 0.95rem;
}

.site-footer a {
	color: var(--paper);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	color: var(--white);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.footer-brand {
	font-family: var(--display);
	font-size: 2rem;
	font-weight: 500;
	color: var(--paper);
	margin-bottom: 10px;
}

.footer-grid h2 {
	font-family: var(--body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9fb0ab;
	margin-bottom: 16px;
}

.footer-grid ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-grid li {
	margin-bottom: 8px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
	color: #9fb0ab;
}

@media (max-width: 760px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

/* Lightbox */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 27, 26, 0.96);
	color: var(--paper);
}

.lightbox::backdrop {
	background: rgba(20, 27, 26, 0.9);
}

.lightbox__inner {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	padding: 12px clamp(12px, 3vw, 32px) 20px;
}

.lightbox__top {
	display: flex;
	justify-content: flex-end;
}

.lightbox__stage {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 0;
}

.lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 0;
	margin: 0;
}

.lightbox__figure img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	background: var(--white);
	padding: 8px;
}

.lightbox__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--paper);
	cursor: pointer;
}

.lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.lightbox__btn svg {
	width: 22px;
	height: 22px;
}

.lightbox__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 16px;
}

.lightbox__title {
	font-family: var(--display);
	font-size: 1.5rem;
	line-height: 1.2;
}

.lightbox__sub {
	font-size: 0.85rem;
	color: #b9c6c2;
}

.lightbox .btn {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
}

.lightbox .btn.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--paper);
}

.lightbox .btn.btn--ghost:hover {
	background: var(--paper);
	color: var(--ink);
}

@media (max-width: 640px) {
	.lightbox__stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.lightbox__stage .lightbox__btn--prev,
	.lightbox__stage .lightbox__btn--next {
		display: none;
	}

	.lightbox__nav-mobile {
		display: flex !important;
		gap: 8px;
	}
}

.lightbox__nav-mobile {
	display: none;
}

/* -------------------------------------------------------------------------
 * Exhibition spotlight (home page showcase)
 * ---------------------------------------------------------------------- */
.showcase {
	--wall: #1c2524;
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - 76px);
	min-height: calc(100svh - 76px);
	display: flex;
	align-items: center;
	padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 104px);
	background:
		radial-gradient(ellipse 55% 70% at 70% 45%, #33433f 0%, rgba(51, 67, 63, 0) 70%),
		radial-gradient(ellipse 120% 90% at 50% 120%, #111817 0%, rgba(17, 24, 23, 0) 60%),
		var(--wall);
	color: var(--paper);
	isolation: isolate;
}

.showcase__light {
	position: absolute;
	inset: -10% 0 0 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse 30% 55% at 70% 0%, rgba(255, 236, 200, 0.22), rgba(255, 236, 200, 0) 72%);
	animation: sc-breathe 9s ease-in-out infinite alternate;
}

.showcase__light::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 6%;
	bottom: 12%;
	height: 60px;
	background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
	filter: blur(8px);
}

@keyframes sc-breathe {
	from { opacity: 0.75; }
	to { opacity: 1; }
}

.showcase__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	width: 100%;
}

.showcase h1 {
	color: var(--paper);
}

.showcase h1 em {
	font-style: italic;
	color: #e9c9a3;
}

.showcase .lede {
	color: #d3dcd9;
}

.showcase .hero__place {
	color: #a9b8b4;
}

.showcase .hero__place svg {
	color: #e9c9a3;
}

.eyebrow--light {
	color: #e9c9a3;
}

.btn--light {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
}

.btn--light:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--ink);
}

.btn--ghost-light {
	background: transparent;
	border-color: rgba(251, 248, 242, 0.45);
	color: var(--paper);
}

.btn--ghost-light:hover {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
}

.showcase__text > * {
	animation: sc-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.showcase__text > *:nth-child(2) { animation-delay: 0.12s; }
.showcase__text > *:nth-child(3) { animation-delay: 0.24s; }
.showcase__text > *:nth-child(4) { animation-delay: 0.36s; }
.showcase__text > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes sc-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.showcase__stage {
	position: relative;
}

.showcase__slides {
	position: relative;
	display: grid;
	height: min(66vh, 640px);
	min-height: 360px;
}

.slide {
	grid-area: 1 / 1;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.985);
	transition: opacity 1.6s ease, transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 1.6s;
}

.slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 1.6s ease, transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

.slide__frame {
	display: block;
	max-width: 100%;
	padding: clamp(12px, 1.8vw, 24px);
	background: #f6f1e6;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.25),
		0 0 0 7px #0f1615,
		0 0 0 8px rgba(255, 255, 255, 0.06),
		0 40px 70px -28px rgba(0, 0, 0, 0.85),
		0 18px 30px -18px rgba(0, 0, 0, 0.6);
	transition: transform 0.4s ease;
}

.slide__frame:hover {
	transform: translateY(-2px);
}

.slide__canvas {
	display: block;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.slide__canvas img {
	display: block;
	width: auto;
	height: auto;
	max-height: calc(min(66vh, 640px) - 64px - 2 * clamp(12px, 1.8vw, 24px));
	max-width: 100%;
	object-fit: contain;
	transform-origin: 50% 40%;
	transform: scale(1.06);
}

.slide.is-active .slide__canvas img {
	animation: sc-drift 9s ease-out both;
}

@keyframes sc-drift {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}

.slide__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 18px;
	background: rgba(251, 248, 242, 0.06);
	border: 1px solid rgba(251, 248, 242, 0.12);
	text-align: center;
}

.slide__title {
	font-family: var(--display);
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--paper);
}

.slide__meta {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #a9b8b4;
}

.showcase__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
}

.showcase__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	padding: 0;
	border: 1px solid rgba(251, 248, 242, 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--paper);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.showcase__btn:hover {
	background: rgba(251, 248, 242, 0.1);
	border-color: rgba(251, 248, 242, 0.5);
}

.showcase__btn svg {
	width: 20px;
	height: 20px;
}

.showcase__btn .i-play,
.showcase.is-paused .showcase__btn .i-pause {
	display: none;
}

.showcase.is-paused .showcase__btn .i-play {
	display: block;
}

.showcase__progress {
	display: flex;
	gap: 6px;
	width: min(260px, 40vw);
}

.showcase__tick {
	flex: 1;
	height: 2px;
	background: rgba(251, 248, 242, 0.2);
	overflow: hidden;
}

.showcase__tick span {
	display: block;
	height: 100%;
	width: 0;
	background: #e9c9a3;
}

.showcase__tick.is-done span {
	width: 100%;
}

.showcase__tick.is-active span {
	animation: sc-progress var(--sc-duration, 7s) linear both;
}

.showcase.is-paused .showcase__tick.is-active span,
.showcase.is-holding .showcase__tick.is-active span {
	animation-play-state: paused;
}

@keyframes sc-progress {
	from { width: 0; }
	to { width: 100%; }
}

.showcase__count {
	min-width: 3.4em;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	color: #a9b8b4;
	text-align: center;
}

.showcase__scroll {
	position: absolute;
	left: 50%;
	bottom: 22px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1px solid rgba(251, 248, 242, 0.35);
	border-radius: 14px;
}

.showcase__scroll span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 3px;
	height: 8px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--paper);
	animation: sc-scroll 2s ease-in-out infinite;
}

@keyframes sc-scroll {
	0% { opacity: 0; transform: translateY(0); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 860px) {
	.showcase {
		min-height: 0;
		padding-top: 28px;
	}

	.showcase__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.showcase__stage {
		order: -1;
	}

	.showcase__slides {
		height: 62vh;
		height: 58svh;
		min-height: 320px;
	}

	.slide__canvas img {
		max-height: calc(58svh - 64px - 2 * clamp(12px, 1.8vw, 24px));
	}

	.showcase__light {
		background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 236, 200, 0.2), rgba(255, 236, 200, 0) 72%);
	}

	.showcase__light::after {
		left: 10%;
		right: 10%;
		bottom: auto;
		top: 60svh;
	}

	.showcase__scroll {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.showcase__light,
	.showcase__text > *,
	.slide.is-active .slide__canvas img,
	.showcase__scroll span {
		animation: none !important;
	}

	.slide__canvas img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
