/* Site Deploy — base stylesheet. Structural layout + components shared by all
 * templates; each template.css skins it, each scheme supplies the colours.
 * All colour via var(--…) injected from the scheme (never hardcoded). */

/* Donna's signature wordmark font (self-hosted; used by Donna's Theme --brand). */
@font-face {
  font-family: "Amsterdam One";
  src: url("fonts/amsterdam-one.woff2") format("woff2"),
       url("fonts/amsterdam-one.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Garet Book — Donna's Theme hero kicker. */
@font-face {
  font-family: "Garet";
  src: url("fonts/garet-book.woff2") format("woff2"),
       url("fonts/garet-book.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Self-hosted Google fonts (fontsource woff2, latin) — served same-origin so a
   network proxy that intercepts fonts.googleapis.com can't ORB-block them. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/archivo-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/archivo-latin-800-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/eb-garamond-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/eb-garamond-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'EB Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/eb-garamond-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/fraunces-latin-wght-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/playfair-display-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/playfair-display-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/work-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/work-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/work-sans-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Yellowtail';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/yellowtail-latin-400-normal.woff2') format('woff2');}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:root { --radius: 4px; --maxw: 1200px; --bodyScale: 1; --headScale: 1; }

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body, system-ui, sans-serif);
  font-size: calc(16px * var(--bodyScale)); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--inkSoft); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.section-head h2 { font-size: calc(clamp(22px, 3vw, 32px) * var(--headScale)); margin: 0; }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--accent); }
.rule { height: 1px; background: var(--line); margin: 0; }

/* buttons + chips */
.btn { display: inline-block; padding: 11px 20px; background: var(--accent); color: var(--accentInk);
  border: 1px solid var(--accent); border-radius: var(--radius); font-size: 14px; font-weight: 600;
  cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--inkSoft);
  border-radius: var(--radius); font-size: 13px; cursor: pointer; }
.chip.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 22px; padding: var(--navPadY, 16px) 24px; background: var(--bg);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav .brand { font-size: 20px; font-weight: 700; letter-spacing: .01em; cursor: pointer; }
.nav .brand small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; }
.nav .links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
/* hamburger — hidden on desktop, shown on narrow screens (see mobile query) */
.nav-burger { display: none; margin-left: auto; flex: none; width: 40px; height: 34px; padding: 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; background: var(--navText, var(--ink)); border-radius: 2px;
  margin: 3px 0; transition: transform .2s, opacity .2s; }
.nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
/* padding gives a set background a rectangle to fill; the matching negative
   margin cancels it so the nav footprint is unchanged (across every position
   mode) when no active/hover background colour is chosen. */
.nav a { font-size: var(--navTextSize, 14px); color: var(--inkSoft); cursor: pointer; padding: 5px 9px; margin: -5px -9px; border-radius: 7px; transition: background .12s ease, color .12s ease; }
.nav a.on { color: var(--navActive, var(--ink)); }
.nav a:hover { color: var(--navHover, var(--ink)); }
body .nav { background: var(--navBg, var(--bg)); }
body .nav a { color: var(--navText, var(--inkSoft)); }
body .nav a.on { color: var(--navActive, var(--navText, var(--ink))); background: var(--navActiveBg, transparent); }
body .nav a:hover { color: var(--navHover, var(--navText, var(--ink))); background: var(--navHoverBg, transparent); }

/* ── dropdown nav groups (items sharing a "group" name) ── */
.nav-group { position: relative; display: inline-flex; }
.nav-parent { font-family: inherit; font-size: var(--navTextSize, 14px); color: var(--navText, var(--inkSoft));
  background: transparent; border: 0; cursor: pointer; padding: 5px 9px; margin: -5px -9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 5px; transition: background .12s ease, color .12s ease; }
.nav-group:hover .nav-parent, .nav-parent:hover { color: var(--navHover, var(--navText, var(--ink))); background: var(--navHoverBg, transparent); }
.nav-parent.on { color: var(--navActive, var(--navText, var(--ink))); }
.nav-caret { font-size: .68em; opacity: .65; }
.nav-menu { position: absolute; top: 100%; left: 0; display: none; flex-direction: column; gap: 2px;
  background: var(--navBg, var(--bg)); border: 1px solid var(--line); border-radius: 10px; padding: 7px;
  min-width: 220px; box-shadow: 0 14px 36px rgba(0,0,0,.16); z-index: 60; }
.nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: flex; }
.nav-menu a { white-space: nowrap; width: 100%; padding: 9px 12px; margin: 0; border-radius: 7px; text-align: left; }
.nav-menu a:hover { background: var(--navHoverBg, rgba(0,0,0,.05)); }
/* side rails show sub-links inline (indented), not as a floating dropdown */
body.nav-side .nav-menu, body.nav-sideRight .nav-menu { position: static; display: flex; box-shadow: none;
  border: none; background: transparent; padding: 2px 0 2px 12px; min-width: 0; }

body.nav-topCenter .nav { flex-direction: column; gap: 12px; text-align: center; padding: var(--navPadY, 22px) 22px; }
body.nav-topCenter .nav .links { margin: 0; justify-content: center; }
/* Top - left aligned: links pinned to the left */
body.nav-topLeft .nav .links { margin-left: 0; margin-right: auto; justify-content: flex-start; }
/* Top - right aligned: links pinned to the right (default flow) */
body.nav-topRight .nav .links { margin-left: auto; justify-content: flex-end; }

/* side nav (left rail) */
body.nav-side #app, body.nav-sideRight #app { display: grid; grid-template-columns: 248px 1fr; align-items: start; }
body.nav-side .nav, body.nav-sideRight .nav { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: flex-start;
  gap: 16px; border-bottom: none; border-right: 1px solid var(--line); padding: 30px 24px; }
body.nav-side .nav .links, body.nav-sideRight .nav .links { flex-direction: column; margin-left: 0; gap: 12px; }
body.nav-side .nav .brand, body.nav-sideRight .nav .brand { font-size: 22px; }
body.nav-side .nav .foot-note, body.nav-sideRight .nav .foot-note { margin-top: auto; font-size: 12px; color: var(--muted); }
/* right sidebar: nav moves to the right column, content to the left */
body.nav-sideRight #app { grid-template-columns: 1fr 248px; }
body.nav-sideRight .nav { order: 2; border-right: none; border-left: 1px solid var(--line); }
body.nav-sideRight .main { order: 1; }

/* overlay nav (over hero) */
body.nav-overlay .nav { position: absolute; top: 0; left: 0; right: 0; background: transparent;
  border: none; z-index: 30; }
body.nav-overlay .nav, body.nav-overlay .nav a, body.nav-overlay .nav .brand { color: #fff; }
body.nav-overlay .nav a { color: rgba(255,255,255,.82); }

/* Mobile safety net: never allow a stray element to create horizontal scroll. */
@media (max-width: 560px) { html, body { overflow-x: hidden; max-width: 100%; }
  /* Newsletter: stack the Subscribe button under the email box so it can't overflow. */
  .newsletter .in { flex-direction: column; }
  .newsletter .in .btn { width: 100%; justify-self: stretch; text-align: center; }
}
/* Optional: hide the hero banner image on phones (banner setting) */
@media (max-width: 760px) { .hero-hide-img-mobile .hero-donna-art { display: none !important; } }

/* Mobile: collapse the menu to a hamburger; links drop as a column when open. */
@media (max-width: 760px) {
  .nav, body.nav-topCenter .nav, body.nav-centerMini .nav, body.nav-minimal .nav {
    flex-direction: row; flex-wrap: wrap; gap: 12px; text-align: left; padding: 14px 18px; }
  .nav .brand { margin-right: auto; }
  .nav-burger { display: block; margin-left: 0; }
  .nav .links, body.nav-topCenter .nav .links, body.nav-centerMini .nav .links {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 4px; margin: 6px 0 0; justify-content: flex-start; }
  body .nav.nav-open .links { display: flex; }
  .nav .links a { padding: 11px 12px; margin: 0; border-radius: 8px; width: 100%; }
  /* dropdown groups expand inline within the hamburger menu */
  .nav-group { display: block; width: 100%; position: static; }
  /* Group headers (e.g. "Gallery & Shop") are section labels in the hamburger menu,
     not links — smaller, bold, uppercase, in the chosen accent colour, and neither
     clickable nor selectable so they don't read as tappable links. */
  .nav-parent { width: 100%; justify-content: flex-start; padding: 12px 12px 3px; margin: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent) !important; pointer-events: none; user-select: none; cursor: default; }
  .nav-menu { position: static; display: flex; box-shadow: none; border: none; background: transparent;
    min-width: 0; padding: 0 0 4px 14px; }
  .nav .foot-note { display: none; }
  body.nav-side #app { grid-template-columns: 1fr; }
  body.nav-side .nav { height: auto; position: sticky; flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); }
  body.nav-side .nav .links { flex-direction: column; }
}

/* ── hero ────────────────────────────────────────────────────────── */
.site-hero { position: relative; }
.hero-band { background: var(--heroBg); color: var(--heroInk); padding: 64px 0; }
.hero-band h1, .hero-stack h1 { font-size: calc(clamp(30px, 4.4vw, 52px) * var(--headScale)); }
/* hero text always follows --heroInk (base h1/p colours would vanish on a dark heroBg) */
.hero-band h1, .hero-stack h1, .hero-type h1,
.hero-split .h-txt h1, .hero-splitBig .h-txt h1 { color: var(--heroInk); }
.hero-band p, .hero-stack p, .hero-type p,
.hero-split .h-txt p, .hero-splitBig .h-txt p { color: var(--heroInk); opacity: 0.88; }
.hero-band .wrap, .hero-stack .wrap { max-width: 760px; }
.hero-stack { padding: 56px 0 12px; }
.hero-stack .hero-img { margin-top: 26px; }
.hero-stack .hero-img img { width: 100%; height: 46vh; object-fit: cover; border-radius: var(--radius); }
.hero-type { padding: 90px 0 40px; }
.hero-type h1 { font-size: calc(clamp(44px, 9vw, 120px) * var(--headScale)); line-height: .95; }
.hero-fullbleed { min-height: 66vh; display: grid; align-items: end; color: #fff;
  background-size: cover; background-position: center; }
.hero-fullbleed::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 18%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.76)); }
.hero-fullbleed .wrap { position: relative; z-index: 2; padding-bottom: 54px; }
.hero-fullbleed .kicker { color: rgba(255,255,255,.82); margin-bottom: 12px; }
.hero-fullbleed h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-fullbleed p { color: rgba(255,255,255,.9); max-width: 560px; }
.hero-split, .hero-splitBig { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero-splitBig { min-height: 72vh; }
.hero-split .h-txt, .hero-splitBig .h-txt { padding: 54px clamp(24px,5vw,64px); display: flex;
  flex-direction: column; justify-content: center; background: var(--heroBg); color: var(--heroInk); }
.hero-split .h-img, .hero-splitBig .h-img { background-size: cover; background-position: center; min-height: 320px; }
.hero-cta { margin-top: 18px; display: flex; gap: 12px; }

/* ── grids + cards ───────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px; }
.grid.editorial { grid-template-columns: repeat(6, 1fr); gap: 24px; }
.grid.editorial > .card { grid-column: span 2; }
.grid.editorial > .card.feat { grid-column: span 4; grid-row: span 2; }
.grid.masonry { display: block; column-count: 4; column-gap: 22px; }
.grid.masonry > .card { break-inside: avoid; margin-bottom: 22px; }
.grid.salon { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 26px; align-items: end; }
.grid.list { display: block; }

.card { cursor: pointer; }
.card .ph { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .cap { padding: 12px 2px 0; }
.card .cap .t { font-size: 16px; font-weight: 600; color: var(--ink); }
.card .cap .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card .cap .price { font-size: 14px; color: var(--inkSoft); margin-top: 4px; }
.card .sold { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--sold);
  color: var(--soldInk); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px; }
.grid.editorial > .card.feat .ph img { height: 100%; }
.grid.editorial > .card:not(.framed) .ph { aspect-ratio: 4/5; }
.grid.uniform .card:not(.framed) .ph, .grid.wide .card:not(.framed) .ph, .grid.salon .card:not(.framed) .ph { aspect-ratio: 4/5; }

/* Framed-Salon frames (salon + Donna's Theme). The frame follows the image's
   NATURAL ratio (never cropped); the caption sits under the frame. */
.frame { padding: 10px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line), 0 14px 30px rgba(0,0,0,.16); }
.mat { padding: 12px; background: var(--bg); border: 1px solid var(--line); }
.frame .ph { position: relative; overflow: hidden; }
.frame .ph img { width: 100%; height: auto; display: block; transition: none; }
.card.framed .ph { aspect-ratio: auto; border-radius: 0; }
.card.framed:hover .ph img { transform: none; }
.card.framed .cap { text-align: center; padding: 10px 2px 0; }
/* .noframe: keep the natural-aspect image but drop the frame + mat decoration
   (used for collection oils — Art Prints layout, no frame) */
.card.noframe .frame { padding: 0; background: transparent; border: 0; box-shadow: none; }
.card.noframe .mat { padding: 0; background: transparent; border: 0; }
.frame-wrap { position: relative; }
.jframe-wrap { position: relative; }
.exh-thumb-wrap { position: relative; display: block; }
.frame-link { display: block; }
/* the single consistent "sold" badge — a shop-prints bar attached to the BOTTOM
   of the image on EVERY page (galleries, featured, exhibitions) */
.soldshop { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: var(--sold); color: var(--soldInk); text-align: center;
  padding: 5px 8px; font-size: 11px; font-weight: 600; letter-spacing: .01em;
  line-height: 1.25; text-decoration: none; }
.soldshop:hover { text-decoration: underline; }

/* Exhibitions list — thumbnail (framed, links to shop) + cleaned entry text */
.exh-list { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
/* Desktop: image on the left spanning both text rows (title/meta + body). */
.exh-item { display: grid; grid-template-columns: 130px 1fr; grid-template-areas: "thumb head" "thumb body"; column-gap: 22px; row-gap: 4px; align-items: start; padding: 6px 0; }
.exh-item > .exh-thumb-wrap, .exh-item > .exh-nopic { grid-area: thumb; align-self: center; }
.exh-head { grid-area: head; }
.exh-body { grid-area: body; }
.exh-body p { margin: 0 0 6px; }
.exh-thumb { display: block; position: relative; }
.exh-thumb .frame { padding: 6px; }
.exh-thumb .mat { padding: 8px; }
.exh-thumb .ph { position: relative; overflow: hidden; }
.exh-thumb .ph img { width: 100%; height: auto; display: block; }
.exh-nopic { width: 130px; aspect-ratio: 4/3; display: grid; place-items: center; background: var(--surface2);
  border: 1px solid var(--line); font-size: 26px; opacity: .4; }
.exh-head .exh-name, .exh-text .exh-name { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.exh-head .exh-meta, .exh-text .exh-meta { margin: 0 0 6px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.exh-text p { margin: 0 0 6px; }
.exh-link { font-size: 13px; color: var(--accent); font-weight: 600; }
/* a divider line between each listing (E11) */
.exh-list .exh-item + .exh-item { border-top: 1px solid var(--line); padding-top: 18px; }
/* main list + year archive sidebar (E11) */
.exh-layout { display: grid; grid-template-columns: 1fr 168px; gap: 34px; align-items: start; }
.exh-archive { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line); }
.exh-archive h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.exh-yr { text-align: left; background: transparent; border: 0; padding: 4px 2px; font-size: 13px; color: var(--inkSoft); cursor: pointer; border-radius: 5px; }
.exh-yr:hover { color: var(--ink); }
.exh-yr.sel { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .exh-layout { grid-template-columns: 1fr; } .exh-archive { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; } }
/* Mobile: stack as title/date → image → body (image between head and body). */
@media (max-width: 640px) {
  .exh-item { grid-template-columns: 1fr; grid-template-areas: "head" "thumb" "body"; column-gap: 0; row-gap: 10px; }
  .exh-item > .exh-thumb-wrap, .exh-item > .exh-nopic { justify-self: start; max-width: 240px; width: 100%; }
  .exh-nopic { width: 240px; max-width: 100%; }
}

/* Commissions — reference + painting side by side, story below each pair */
.comm-item { padding: 24px 0; border-top: 1px solid var(--line); }
.comm-item:first-of-type { border-top: none; padding-top: 6px; }
.comm-imgs { display: grid; gap: 22px; margin-bottom: 14px; align-items: start; }
.comm-imgs.pair { grid-template-columns: 1fr 1fr; }
.comm-imgs.solo { grid-template-columns: minmax(0, 440px); }
.comm-fig { margin: 0; }
/* paired painting + reference: proportion-matched frames — each image keeps its
   natural aspect (never cropped or letterboxed); the two heights may differ. */
.comm-imgs.pair .comm-fig .ph { aspect-ratio: auto; display: block; background: transparent; }
.comm-imgs.pair .comm-fig .ph img { width: 100%; height: auto; object-fit: initial; }
.comm-imgs.pair { align-items: start; }
.comm-fig figcaption { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px;
  text-transform: uppercase; letter-spacing: .06em; }
.comm-body h3 { margin: 0 0 2px; font-size: 20px; }
.comm-spec { display: block; margin-bottom: 8px; }
.comm-body p { max-width: 780px; }
/* Scaled pair: both images fill equal-height boxes (the smaller one scales up to
   match the larger), object-fit:cover keeps proportions. Toggle off for natural sizes. */
.comm-imgs.pair.comm-scaled { align-items: stretch; }
.comm-imgs.pair.comm-scaled .comm-fig { display: flex; flex-direction: column; }
.comm-imgs.pair.comm-scaled .comm-fig > .frame-link { display: flex; flex: 1 1 auto; min-height: 0; }
.comm-imgs.pair.comm-scaled .comm-fig .frame { display: flex; flex: 1; min-height: 0; }
.comm-imgs.pair.comm-scaled .comm-fig .mat { display: flex; flex: 1; min-height: 0; }
.comm-imgs.pair.comm-scaled .comm-fig .ph { flex: 1; min-height: 0; }
.comm-imgs.pair.comm-scaled .comm-fig .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .comm-imgs.pair { grid-template-columns: 1fr; } .comm-imgs.pair.comm-scaled { align-items: start; } }

/* About / Studio: photo (left) + write-up (right) */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; margin-top: 8px; }
.about-photo img { width: 100%; border-radius: var(--radius); display: block; }
.about-photo-ph { aspect-ratio: 4/5; background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* list rows (zine) */
.list-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; cursor: pointer; }
.list-item .ph { width: 120px; height: 120px; overflow: hidden; }
.list-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.list-item .t { font-size: 22px; font-weight: 600; }
.list-item .s { color: var(--muted); font-size: 13px; }
.list-item .price { font-size: 15px; white-space: nowrap; }

/* feature rows (split/wide) */
.row-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.row-feature:nth-child(even) .r-img { order: 2; }
.row-feature .r-img img { width: 100%; height: 66vh; object-fit: cover; }
.row-feature .r-txt { padding: clamp(28px,5vw,72px); }

/* ── detail pages ────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; padding: 46px 0; }
/* Hug the image (align-self:start) and drop the placeholder colour block — the
   detail grid stretches columns to the taller of image/info, which used to reveal
   a surface2 block below shorter images (inconsistent per artwork). */
.detail .d-img { border-radius: var(--radius); overflow: hidden; align-self: start; }
.detail .d-img img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.detail .d-info h1 { font-size: clamp(28px, 4vw, 42px); }
.detail .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0; font-size: 15px; }
.detail .kv dt { color: var(--muted); } .detail .kv dd { margin: 0; color: var(--ink); }
.detail .price-big { font-size: 26px; font-weight: 700; margin: 14px 0; }
.detail .sizes { margin: 16px 0; }
.detail .size-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail .backlink { font-size: 13px; color: var(--accent); margin-bottom: 20px; display: inline-block; }

/* ── overview / about / contact ──────────────────────────────────── */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.coll-card { position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; color: #fff;
  display: grid; align-items: end; background-size: cover; background-position: center; cursor: pointer; }
.coll-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.coll-card .lbl { position: relative; z-index: 2; padding: 16px; font-size: 19px; font-weight: 700; }
/* a collection tile plus an optional byline beneath it */
.coll-item { display: flex; flex-direction: column; margin: 0; }
.coll-by { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* Forest & Bird supporting statement — shown on bird oil-painting pages */
.forestbird { margin: 22px 0 28px; padding: 15px 20px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 8px; }
.forestbird h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.forestbird p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.prose { max-width: 680px; } .prose p { font-size: 17px; }
.form-row { display: grid; gap: 14px; max-width: 520px; }
.form-row input, .form-row select, .form-row textarea { padding: 12px 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: var(--radius); font: inherit; }
.form-charhint { font-size: 12px; color: var(--ink); opacity: .6; margin-top: -6px; }
.contact-note { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink); opacity: .85; max-width: 640px; white-space: pre-line; }
.contact-socials { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
.social-link:hover { text-decoration: underline; }
.social-link .soc-ico { flex: none; }
.newsletter { background: var(--surface2); border-radius: var(--radius); padding: 40px; text-align: center; }
.newsletter .in { display: flex; gap: 10px; max-width: 440px; margin: 16px auto 0; }
/* email box has its own colour (independent of the "Surface / cards" scheme colour) */
.newsletter input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); background: var(--newsletterInputBg, #fff); color: var(--ink); border-radius: var(--radius); }

/* preserve paragraph / line breaks typed into Text Elements */
.prose p, .prose blockquote, .newsletter p, .cb-txt p, .exh-text p, .comm-body p,
.hero-art-info p, .about-port p, .main .wrap > p.muted, .d-info > p { white-space: pre-line; }

/* ── justified / balanced-row gallery (proportion-matched frames) ──── */
.jgal { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.jgal .jitem { flex: 0 0 auto; }
.jgal .jframe-link { display: block; }
.jgal .jframe { height: var(--jh, 280px); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.t-donna .jgal .jframe { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.jgal .jframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jgal .jcap { padding: 8px 2px 2px; }
.jgal .jcap .t { display: block; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.jgal .jcap .price { color: var(--muted); font-size: 13px; }
/* .soldshop is now consistently styled at the base (static link under image) */

/* ── To-scale oil grid ────────────────────────────────────────────────
   Each work's width tracks its REAL size (--wcm, cm) against the grid's
   widest work (--maxwcm), with ONE shared scale, so physically larger
   paintings render larger. Container-query units make the scale respond to
   the grid width without JS. No frame decoration (originals, Art-Prints feel). */
.to-scale-grid { container-type: inline-size; display: flex; flex-wrap: wrap;
  gap: 30px 24px; align-items: flex-start; justify-content: center; }
.to-scale-grid .ts-item { flex: 0 0 auto;
  /* widest work = 42% of the row on desktop; the rest scale proportionally */
  width: calc(var(--wcm) / var(--maxwcm) * 42cqw); }
.to-scale-grid .frame-wrap { line-height: 0; }
.to-scale-grid .ts-ph { display: block; }
/* natural ratio: width is to-scale (--wcm), height follows the real image — no
   forced aspect box (catalogue cm ratio ≠ photo ratio → grey background strips). */
.to-scale-grid .ts-ph img { width: 100%; height: auto; display: block; }
.to-scale-grid .cap { text-align: center; padding: 10px 2px 0; line-height: 1.35; }
@container (max-width: 900px) { .to-scale-grid .ts-item { width: calc(var(--wcm) / var(--maxwcm) * 62cqw); } }
@container (max-width: 560px) { .to-scale-grid .ts-item { width: calc(var(--wcm) / var(--maxwcm) * 92cqw); } }

/* ── video embed ──────────────────────────────────────────────────── */
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* video log: featured player + Month/Year archive panel on the right */
.video-log.has-archive { display: grid; grid-template-columns: 1fr 260px; gap: 22px; align-items: start; }
.video-main { min-width: 0; }
.video-archive { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.video-archive h3 { margin: 0 0 10px; font-size: 15px; }
.va-month { margin-bottom: 12px; }
.va-mlabel { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.va-item { display: block; padding: 5px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.va-item::before { content: "▸ "; color: var(--muted); }
.va-item:hover { color: var(--accent); }
.va-item.playing { color: var(--accent); font-weight: 700; }
.va-item.playing::before { content: "▶ "; color: var(--accent); }
@media (max-width: 760px) { .video-log.has-archive { grid-template-columns: 1fr; } }

/* ── free Text + Image block ──────────────────────────────────────── */
.content-block.cb-left, .content-block.cb-right { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.content-block.cb-top, .content-block.cb-none { display: block; }
.content-block.cb-top .cb-img { margin-bottom: 20px; }
.content-block .cb-img img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.content-block .cb-txt h2 { margin: 0 0 .4em; }
.content-block .cb-txt p { white-space: pre-line; }
@media (max-width: 760px) { .content-block.cb-left, .content-block.cb-right { grid-template-columns: 1fr; gap: 20px; } }

/* ── footer ──────────────────────────────────────────────────────── */
.foot { margin-top: 40px; }
.foot-main { background: var(--surface2); border-top: 1px solid var(--line); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0 34px; }
.foot h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot a { display: block; color: var(--inkSoft); font-size: 13px; padding: 3px 0; }
/* credit strip in the page colour, so the cols above read as a footer band */
.foot-credit { background: var(--bg); }
.foot-credit .credit { display: flex; flex-direction: column; gap: 3px; padding: 18px 0; font-size: 12px; color: var(--muted); }
.foot-credit .credit span:first-child { color: var(--ink); font-weight: 600; }

/* ── lightbox ────────────────────────────────────────────────────── */
#lightbox { position: fixed; inset: 0; background: rgba(10,10,12,.92); display: none; align-items: center;
  justify-content: center; z-index: 200; padding: 40px; }
#lightbox.on { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#lightbox .x { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 30px; cursor: pointer; }
#lightbox .cap2 { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

@media (max-width: 820px) {
  .grid.editorial { grid-template-columns: 1fr 1fr; }
  .grid.editorial > .card, .grid.editorial > .card.feat { grid-column: span 1; grid-row: auto; }
  .grid.masonry { column-count: 2; }
  .hero-split, .hero-splitBig, .row-feature, .detail, .foot .cols { grid-template-columns: 1fr; }
  body.nav-side #app { grid-template-columns: 1fr; }
  body.nav-side .nav { height: auto; position: static; flex-direction: row; border-right: none;
    border-bottom: 1px solid var(--line); }
}
