/*
Theme Name: Arlene Saunders
Description: Custom lightweight theme for Arlene Saunders, watercolour artist, Walters Falls, Ontario.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: arlenesaunders
*/

/* ---------- Tokens (mockups/HANDOFF.md §2) ---------- */
:root {
	--paper: #F7F5F0;
	--surface: #FFFFFF;
	--ink: #1D2329;
	--text: #3E464E;
	--muted: #4F5862;
	--line: #DAD5CB;
	--blue: #135E9C;
	--blue-hover: #0D4472;
	--blue-tint: #E7EFF6;
	--navy: #113957;
	--navy-line: #2E5677;
	--on-navy: #FFFFFF;
	--on-navy-2: #D6E2EC;
	--rule-navy: #8FB8DD;
	--focus: #E39B2D;

	--serif: 'Source Serif 4', Georgia, serif;
	--sans: 'Libre Franklin', Arial, sans-serif;

	--container: 1280px;
	--gutter: 20px;
	--section-pad: 56px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --section-pad: 80px; } }
@media (min-width: 1440px) { :root { --gutter: 80px; } }
@media (min-width: 1024px) { :root { --section-pad: 104px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (min-width: 1024px) { html { scroll-padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, iframe:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: 32px; line-height: 1.18; }
h3 { font-size: 21px; line-height: 1.25; }
@media (min-width: 1024px) {
	h1 { font-size: 60px; line-height: 1.08; }
	h2 { font-size: 44px; line-height: 1.15; }
	h3 { font-size: 24px; }
}
p { margin: 0 0 1em; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
@media (min-width: 1024px) { .eyebrow { font-size: 14px; } }
.lead { font-size: 18px; line-height: 1.6; }
@media (min-width: 1024px) { .lead { font-size: 20px; } }
.small { font-size: 15px; color: var(--muted); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Sections alternate paper / white, separated by a 1px line. */
.section--paper, .section--surface { padding: var(--section-pad) 0; border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--navy { padding: var(--section-pad) 0; background: var(--navy); color: var(--on-navy-2); }
.section--navy h2, .section--navy h3 { color: var(--on-navy); }

/* ---------- Buttons (square corners everywhere: client request) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid var(--blue); border-radius: 0; cursor: pointer; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-tint); color: var(--blue-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .btn, .call-link, .main-nav .menu a { white-space: nowrap; } }
@media (max-width: 767px) { .btn-row { flex-direction: column; } .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
@media (min-width: 1024px) {
	.site-header { position: static; }
	.site-header__inner { min-height: 92px; gap: 32px; }
}
.wordmark { display: flex; flex-direction: column; gap: 2px; text-decoration: none; margin-right: auto; padding: 6px 0; }
.wordmark__name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.wordmark__sub { font-size: 11px; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.wordmark__long { display: none; }
@media (min-width: 480px) { .wordmark__long { display: inline; } }
@media (min-width: 1024px) {
	.wordmark__name { font-size: 28px; }
	.wordmark__sub { font-size: 13px; letter-spacing: 0.08em; }
}
.wordmark:hover .wordmark__name { color: var(--blue); }

.header-call { min-height: 44px; padding: 0 12px; gap: 6px; }
.site-header__inner > .wordmark { min-width: 0; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 2px solid var(--line); border-radius: 0; color: var(--ink); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }
.menu-toggle span { display: inline-flex; }

.main-nav { display: none; }
.main-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 8px 16px rgba(29, 35, 41, 0.08); }
.main-nav .menu { list-style: none; margin: 0; padding: 0; }
.main-nav .menu a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 18px; border-bottom: 1px solid var(--line); }
.main-nav .menu a:hover { color: var(--blue); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--blue); }
.main-nav__cta { width: 100%; margin-top: 16px; }

@media (min-width: 1024px) {
	.header-call, .menu-toggle { display: none; }
	.main-nav, .main-nav.is-open { display: flex; align-items: center; gap: 28px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
	.main-nav .menu { display: flex; gap: 24px; }
	.main-nav .menu a { min-height: 44px; font-size: 16px; border: 0; padding: 0 2px; }
	.main-nav .menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { text-decoration: underline; text-underline-offset: 6px; }
	.main-nav__cta { width: auto; margin: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-header__inner { gap: 24px; }
	.main-nav, .main-nav.is-open { gap: 20px; }
	.main-nav .menu { gap: 18px; }
	.wordmark__long { display: none; }
	.main-nav__cta { padding: 0 18px; }
	.hero__grid, .commissions__grid, .about__grid, .contact__grid { column-gap: 56px; }
}

/* ---------- Hero ---------- */
.hero__grid { display: flex; flex-direction: column; }
.hero__text { display: contents; }
.hero__text .eyebrow { order: 1; }
.hero h1 { order: 2; margin-bottom: 20px; }
.hero .lead { order: 3; margin-bottom: 28px; }
.hero__figure { order: 4; margin: 0 0 28px; }
.hero__buttons { order: 5; }
.hero__call { display: none; }
.hero__figure img { width: 100%; height: 340px; object-fit: cover; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (min-width: 768px) {
	.hero__figure img { height: 480px; }
}
@media (min-width: 1024px) {
	.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 80px; align-items: center; }
	.hero__text { display: block; }
	.hero__figure { margin: 0; }
	.hero__figure img { height: 620px; }
	.hero__call { display: block; margin: 20px 0 0; font-size: 16px; }
	.hero h1 { margin-bottom: 24px; }
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head--split p { margin: 16px 0 0; max-width: 420px; }
.section-head--action { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
	.section-head { margin-bottom: 48px; }
	.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
	.section-head--split h2 { max-width: 680px; }
	.section-head--split p { margin: 0; }
	.section-head--action { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
@media (max-width: 767px) { .section-head--action .btn { width: 100%; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.card > img { width: 100%; height: 210px; object-fit: cover; }
@media (min-width: 1024px) { .card > img { height: 280px; } }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card__body p { margin-bottom: 12px; }
.card__body .more { margin-top: auto; }

/* ---------- Homepage gallery ---------- */
.painting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 768px) { .painting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
.painting-grid figure { margin: 0; }
.painting-grid img { width: 100%; height: 170px; object-fit: cover; }
@media (min-width: 768px) { .painting-grid img { height: 240px; } }
@media (min-width: 1024px) { .painting-grid img { height: 340px; } }
.painting-grid figcaption { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 12px; line-height: 1.3; }
@media (min-width: 1024px) { .painting-grid figcaption { font-size: 19px; } }
.gallery__note { margin: 32px 0 0; }

/* ---------- Commissions ---------- */
.commissions__grid { display: flex; flex-direction: column; }
.commissions__left, .commissions__right { display: contents; }
.commissions__intro { order: 1; }
.commissions__figure { order: 2; margin: 8px 0 32px; }
.commissions__prices { order: 3; }
.how-box { order: 4; }
.commissions__cta { order: 5; }
.commissions__intro h2 { margin-bottom: 20px; }
.commissions__figure img { width: 100%; height: 300px; object-fit: cover; }
.commissions__figure strong { color: var(--ink); font-weight: 600; }
.price-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.price-table caption { caption-side: top; text-align: left; font-size: 15px; color: var(--muted); padding-bottom: 12px; }
.price-table th { text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); padding: 12px 8px 12px 0; border-bottom: 2px solid var(--ink); }
.price-table td { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); }
.price-table td:nth-child(2) { font-weight: 600; color: var(--ink); }
.how-box { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin: 24px 0 32px; }
.how-box h3 { font-size: 20px; }
.how-box ol { margin: 0; padding-left: 1.4em; }
.how-box li { margin-bottom: 6px; }
.commissions__cta { display: flex; flex-direction: column; gap: 8px; }
.call-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; }
@media (min-width: 1024px) {
	.commissions__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
	.commissions__left, .commissions__right { display: block; }
	.commissions__intro { margin-bottom: 32px; }
	.commissions__figure { margin: 0 0 32px; }
	.commissions__figure img { height: 420px; }
	.how-box { margin: 0; padding: 28px 32px; }
	.commissions__cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 12px; }
}

/* ---------- Mapmaker band ---------- */
.why h2 { margin-bottom: 40px; }
.why__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.why__grid > div { border-top: 2px solid var(--rule-navy); padding-top: 20px; }
.why__grid h3 { font-size: 21px; margin-bottom: 8px; }
.why__grid p { margin: 0; }

/* ---------- About ---------- */
.about__grid { display: flex; flex-direction: column; gap: 32px; }
.about__figure { margin: 0; }
.about__figure img { width: 100%; height: 220px; object-fit: cover; }
.pull-quote { margin: 28px 0; padding-left: 24px; border-left: 3px solid var(--blue); }
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ink); margin: 0; }
@media (min-width: 1024px) {
	.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
	.about__figure img { height: 300px; }
	.pull-quote p { font-size: 22px; }
}

/* ---------- Where to see (Home page block content: columns of cards) ---------- */
.shows__cards.entry-content, .painting-grid.entry-content { max-width: none; }
.shows h2 { margin-bottom: 32px; }
@media (min-width: 1024px) { .shows h2 { margin-bottom: 48px; } }
.shows__cards .wp-block-columns { display: grid; gap: 24px; margin: 0; }
@media (min-width: 768px) { .shows__cards .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shows__cards .wp-block-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.shows__cards .wp-block-column { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 28px; margin: 0; }
.shows__cards .wp-block-column > * { margin: 0 0 12px; }
.shows__cards .wp-block-column > :last-child { margin: auto 0 0; }
.shows__cards .wp-block-column > p:first-child { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.shows__cards .wp-block-column h3 { font-size: 21px; }
.shows__cards .wp-block-column > :last-child a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact__grid { display: flex; flex-direction: column; gap: 32px; }
.contact__text { display: flex; flex-direction: column; }
.contact__buttons { margin-bottom: 28px; }
.contact-list { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; margin: 0; }
.contact-list dt { font-weight: 600; color: var(--ink); }
.contact-list dd { margin: 0; }
.contact-list a { display: inline-block; padding: 2px 0; }
.contact__map { display: block; width: 100%; height: 240px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 1024px) {
	.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
	.contact__buttons { order: 10; margin: 32px 0 0; }
	.contact__map { height: auto; min-height: 520px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 56px 0 32px; font-size: 15px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--on-navy-2); }
.site-footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--navy-line); }
.wordmark--footer { margin: 0; text-decoration: none; }
.wordmark--footer .wordmark__name { color: var(--on-navy); }
.wordmark--footer .wordmark__sub { color: var(--on-navy-2); text-transform: none; letter-spacing: 0; font-size: 15px; }
.wordmark--footer:hover .wordmark__name { color: var(--on-navy-2); }
.wordmark--footer .wordmark__long { display: inline; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__contact a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__legal { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-size: 14px; text-align: center; }
.site-footer__legal p { margin: 0; }
@media (min-width: 1024px) {
	.site-footer { padding: 64px 0 32px; }
	.site-footer__top { grid-template-columns: auto 1fr auto; align-items: start; gap: 48px; }
	.footer-nav ul { justify-content: center; }
	.site-footer__contact { text-align: right; align-items: flex-end; }
	.site-footer__legal { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Inner pages ---------- */
.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .page-hero { padding: 80px 0 48px; } }
.page-hero h1 { margin: 0; max-width: 900px; }
.page-hero .lead { margin: 16px 0 0; max-width: 720px; }
.page-hero .meta { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-body { padding: 40px 0 var(--section-pad); }
@media (min-width: 1024px) { .page-body { padding-top: 56px; } }

.entry-content { max-width: 760px; }
.entry-content--wide { max-width: none; }
.entry-content--wide > :not(.wp-block-gallery):not(.alignwide):not(.alignfull):not(.wp-block-table):not(.contact-map):not(.wp-block-columns) { max-width: 760px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 28px; }
@media (min-width: 1024px) { .entry-content h2 { font-size: 34px; } }
.entry-content h3 { margin-top: 1.4em; }
.entry-content strong { color: var(--ink); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 3px solid var(--blue); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.entry-content p img { display: inline-block; vertical-align: top; margin: 6px 10px 6px 0; max-width: 100%; height: auto; }
.entry-content .wp-block-buttons { gap: 12px; margin-bottom: 1.6em; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 0; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--blue); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--blue-tint); color: var(--blue-hover); }
.entry-content .contact-map { display: block; width: 100%; height: 420px; border: 1px solid var(--line); }

/* Tables (commission prices on the Commissions page) */
.entry-content .wp-block-table { max-width: 760px; overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { text-align: left; padding: 14px 8px 14px 0; border: 0; border-bottom: 1px solid var(--line); }
.entry-content .wp-block-table thead { border: 0; }
.entry-content .wp-block-table thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); font-size: 15px; }
.entry-content .wp-block-table figcaption { text-align: left; }

/* Single posts: text stays readable at 760px, photos get more room. */
.entry-content--post { max-width: none; }
.entry-content--post > * { max-width: 760px; }
.entry-content--post > .wp-block-gallery,
.entry-content--post > .wp-block-image,
.entry-content--post > .wp-block-columns { max-width: 1040px; margin-top: 1.6em; margin-bottom: 1.6em; }
.entry-content--post > .wp-block-image img { max-height: 80vh; object-fit: contain; width: auto; max-width: 100%; }
.post-nav { max-width: 760px; display: grid; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); }
.post-nav a:hover { color: var(--blue); }
.post-nav small { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.post-nav__next { text-align: right; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.post-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list time { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* Core gallery blocks: whole paintings in a tile, never cropped (HANDOFF §11). */
.entry-content .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 24px; gap: 24px; margin-bottom: 2em; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static; background: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.3;
	text-align: left; padding: 10px 0 0; margin: 0; max-height: none; text-shadow: none; overflow: visible;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; justify-content: flex-start; }
.entry-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { aspect-ratio: 1 / 1; height: auto; flex: none; object-fit: contain; background: var(--surface); border: 1px solid var(--line); padding: 10px; }
@media (max-width: 599px) {
	.entry-content .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
	.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 12px); }
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }

/* Legacy [gallery] shortcode output */
.entry-content .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 2em; }
@media (min-width: 640px) { .entry-content .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); border: 1px solid var(--line); padding: 8px; }
.entry-content .gallery br { display: none; }

/* Photo viewer (assets/js/lightbox.js) */
.lb-thumb { cursor: zoom-in; }
html:has(.lb[open]) { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 25, 32, 0.95); color: #fff; }
.lb::backdrop { background: transparent; }
.lb__fig { position: absolute; inset: 56px 12px 64px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb__img { display: block; max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; }
.lb__cap { flex: none; font-family: var(--serif); font-size: 17px; line-height: 1.4; text-align: center; color: #fff; max-width: 46em; margin: 0; }
.lb__count { position: absolute; top: 18px; left: 16px; margin: 0; font-size: 14px; color: var(--on-navy-2); }
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.lb__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb__btn[hidden] { display: none; }
.lb__close { top: 6px; right: 8px; }
.lb__prev, .lb__next { bottom: 8px; }
.lb__prev { left: calc(50% - 60px); }
.lb__next { right: calc(50% - 60px); }
@media (min-width: 900px) {
	.lb__fig { inset: 56px 88px 40px; }
	.lb__prev, .lb__next { bottom: auto; top: calc(50% - 24px); }
	.lb__prev { left: 20px; }
	.lb__next { right: 20px; }
}

/* ---------- Contact band on inner pages ---------- */
.cta-band__inner { display: flex; flex-direction: column; gap: 24px; }
.cta-band h2 { font-size: 28px; margin: 0; }
.cta-band p { margin: 8px 0 0; }
@media (min-width: 1024px) {
	.cta-band__inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 48px; }
	.cta-band h2 { font-size: 36px; }
}

/* ---------- 404 ---------- */
.not-found { padding: var(--section-pad) 0; }
.not-found h1 { max-width: 800px; }
