/* Tokens - "Daylight Gallery" palette, matching the tone already approved for
   wilhelminastocker.com's other build: warm white walls, near-black ink, one
   eucalyptus accent, brass for prices. */
:root {
  --wall: #faf5ec;
  --mount: #ffffff;
  --bay: #f6efe1;
  --tint: #f2e8d6;
  --warm-overlay: 251, 245, 232;
  --ink: #1f1e1b;
  --ink-soft: #43403b;
  --muted: #5d5751;
  --rule: #e6e0d5;
  --accent: #3e5c52;
  --accent-deep: #2e4740;
  --accent-wash: #eef2ef;
  --brass: #8b5e22;
  --danger: #9c3f2c;
  --display: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 1px 2px rgba(31, 30, 27, 0.06), 0 8px 24px rgba(31, 30, 27, 0.08);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: 4rem 0; }
.section--alt { background: var(--bay); }
.eyebrow {
  font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 0.6rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.7em 1.5em; border-radius: var(--radius);
  border: 1px solid var(--accent); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); }
.btn--outline { background: transparent; color: var(--accent-deep); }
.btn--outline:hover { background: var(--accent-wash); }
.btn--sm { padding: 0.5em 1.1em; font-size: 0.85rem; }
.btn--disabled { background: transparent; border-color: var(--rule); color: var(--muted); cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
/* Christmas order deadlines strip (above the header, scrolls away). */
.holiday-strip { background: var(--accent-deep); color: #fff; text-align: center; font-size: 0.9rem; line-height: 1.45; padding: 0.55rem 1rem; }
.holiday-strip[hidden] { display: none; }
.holiday-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.holiday-strip strong { font-weight: 700; }

.site-header {
  background: var(--wall); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__logo { height: 80px; width: auto; }
@media (max-width: 560px) { .brand__logo { height: 64px; } }

/* Homepage: the banner already carries the logo, so the header starts with
   just the menu and the logo fades in once the banner has scrolled away.
   Gated on .js so the logo never stays hidden if the script doesn't run.
   visibility (not just opacity) keeps the hidden link out of the tab order. */
.js .site-header--home .brand {
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.js .site-header--home.is-scrolled .brand {
  opacity: 1; visibility: visible;
  transition: opacity 0.35s var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .js .site-header--home .brand { transition: none; }
}
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.main-nav a.is-active { color: var(--accent-deep); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink);
}
.nav-toggle::before { top: 15px; }
.nav-toggle::after { bottom: 15px; }
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--wall); border-bottom: 1px solid var(--rule); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .main-nav li { border-top: 1px solid var(--rule); }
  .main-nav a { display: block; padding: 0.9rem 1.5rem; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(var(--warm-overlay), 0.6) 0%, rgba(var(--warm-overlay), 0.5) 45%, rgba(var(--warm-overlay), 0.65) 100%),
    url("/assets/images/gallery-banner-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.hero p { max-width: 42rem; margin-left: auto; margin-right: auto; }
/* Page subtitles: bold and darker so they read clearly over the banner image. */
.hero p.muted, .intro p.muted { font-weight: 700; color: var(--ink-soft); }

/* Homepage banner - the artwork already carries the name and logo, so it is
   shown whole rather than as a background. Always full-bleed: the outer
   circles are cropped by the image edge by design, and only read as running
   off the page when that edge is the viewport's. */
.banner { border-bottom: 1px solid var(--rule); }
.banner img { width: 100%; height: auto; }
/* On computers the banner is capped in height so the next section peeks out below it (a hint to scroll).
   The picture has a white background, so the white sides blend in. */
@media (min-width: 900px) {
  .banner { background: #fff; }
  .banner img {
    display: block; width: auto; max-width: 100%; max-height: 62vh; margin: 0 auto;
    /* the circles run off the picture's left and right edges; fade those edges into the white */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }
}
.intro { padding: 2.5rem 0 3rem; text-align: center; }
.intro p { max-width: 42rem; margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Welcome / prose block */
.prose-block { max-width: 42rem; margin: 0 auto; text-align: center; }
.prose-block p { color: var(--muted); }
.prose-block .signature { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin-top: 1.5rem; }

/* Image beside text (Commissions) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.flyer { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.price-callout { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.price-callout strong { color: var(--brass); }

/* Classes */
.split--top { align-items: start; }
@media (min-width: 801px) { .split--flip .split__media { order: 2; } }
.photo { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.class-title { font-size: 1.7rem; margin-bottom: 1rem; }
.class-subtitle { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.price { color: var(--brass); white-space: nowrap; }
.price .muted { font-weight: 400; font-size: 0.85em; }
.price-table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.price-table th { text-align: left; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 0.75rem 0.4rem 0; }
.price-table td { border-top: 1px solid var(--rule); padding: 0.45rem 0.75rem 0.45rem 0; }
.jump-list, .fact-list { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.jump-list li, .fact-list li { margin-bottom: 0.3rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 800px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.photo-wall { columns: 4 14rem; column-gap: 1rem; }
.photo-wall img { width: 100%; height: auto; margin-bottom: 1rem; break-inside: avoid; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Prints dropdown in the main menu: opens on hover and on keyboard focus
   (desktop); always shown, indented, in the phone menu, where hover
   menus don't work. */
.has-sub { position: relative; }
.has-sub__toggle::after { content: " \25BE"; font-size: 0.75em; }
.main-nav .sub-nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: -1rem; min-width: 13rem; list-style: none; margin: 0; padding: 0.5rem 0; background: var(--mount); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 30; }
.sub-nav a { display: block; padding: 0.55rem 1rem; white-space: nowrap; }
.sub-nav a:hover { background: var(--accent-wash); }
.main-nav .has-sub:hover .sub-nav, .main-nav .has-sub:focus-within .sub-nav { display: flex; }
@media (max-width: 720px) {
  .main-nav .sub-nav { display: flex; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0; background: none; }
  .sub-nav li { border-top: 1px solid var(--rule); }
  .main-nav .sub-nav a { padding-left: 2.75rem; font-weight: 500; }
}
.print-switch { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 2rem 0 2.5rem; }
.print-switch .filter-btn { text-decoration: none; }
.piece__badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.35rem; }

/* Painting photos: card button and full-screen viewer */
.piece__open { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.piece__open img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.piece__count { position: absolute; right: 0.25rem; bottom: 0.25rem; background: rgba(31, 30, 27, 0.72); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.2em 0.6em; border-radius: 999px; }
.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(20, 19, 17, 0.94); display: grid; grid-template-columns: 4rem 1fr 4rem; grid-template-rows: 1fr auto; align-items: center; }
.viewer[hidden] { display: none; }
.viewer__stage { grid-column: 2; grid-row: 1; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 0 0.5rem; min-height: 0; }
.viewer__img { max-width: 100%; max-height: calc(100% - 2.5rem); object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.viewer__caption { color: #f3eee4; font-family: var(--display); font-size: 1.05rem; margin-top: 0.8rem; text-align: center; }
.viewer__nav, .viewer__close { background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; }
.viewer__nav { font-size: 3.2rem; height: 100%; opacity: 0.75; }
.viewer__nav:hover, .viewer__close:hover { opacity: 1; }
.viewer__prev { grid-column: 1; grid-row: 1; }
.viewer__next { grid-column: 3; grid-row: 1; }
.viewer__close { position: absolute; top: 0.6rem; right: 1rem; font-size: 2.6rem; opacity: 0.85; z-index: 1; }
.viewer__thumbs { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 0.5rem; justify-content: center; padding: 0.75rem 1rem 1rem; overflow-x: auto; }
.viewer__thumbs button { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: #000; cursor: pointer; opacity: 0.6; }
.viewer__thumbs button.is-active { border-color: #fff; opacity: 1; }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer--single .viewer__nav, .viewer--single .viewer__thumbs { visibility: hidden; }
@media (max-width: 600px) {
  .viewer { grid-template-columns: 2.4rem 1fr 2.4rem; }
  .viewer__nav { font-size: 2.4rem; }
  .viewer__thumbs button { width: 3rem; height: 3rem; }
}

/* About page */
.about-text { max-width: 46rem; }
.about-text h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text a, .about-lists a { color: var(--accent-deep); }
.about-text .signature { font-family: var(--display); font-size: 1.15rem; margin-top: 2rem; }
.about-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .about-lists { grid-template-columns: 1fr; gap: 2rem; } }
.about-lists h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.credit-list { list-style: none; padding: 0; margin: 0; }
.credit-list li { border-top: 1px solid var(--rule); padding: 0.6rem 0; font-size: 0.95rem; }
.credit-list li span { display: block; font-size: 0.82rem; color: var(--muted); }

/* Subject tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; background: var(--tint); box-shadow: var(--shadow);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__veil {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,30,27,0.62) 0%, rgba(31,30,27,0) 55%);
}
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; color: #fff; }
.tile__title { font-family: var(--display); font-size: 1.15rem; display: block; }
.tile__count { font-size: 0.8rem; opacity: 0.85; }

/* Gallery grid + filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--rule); background: var(--mount);
  font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--ink-soft);
}
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wall { grid-template-columns: 1fr; } }
.piece { background: var(--mount); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.piece__bay {
  background: var(--bay); display: flex; align-items: center; justify-content: center;
  height: 17rem; padding: 1rem;
}
.piece__bay img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.piece__body { padding: 1.1rem 1.25rem 1.4rem; }
.piece__title { font-size: 1.05rem; margin-bottom: 0.2rem; }
.piece__meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.piece__price { color: var(--brass); font-weight: 700; }
/* "Read more" and the window with the full description */
.read-more { background: none; border: 0; padding: 0; margin: -0.3rem 0 0.9rem; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--accent, #3e5c52); text-decoration: underline; cursor: pointer; }
.read-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.read-dialog::backdrop { background: rgba(20, 18, 15, 0.55); }
.read-dialog__body { padding: 2rem 1.75rem 1.75rem; overflow-y: auto; max-height: min(80vh, 760px); line-height: 1.65; }
.read-dialog__body h2 { margin: 0 2rem 1rem 0; }
.read-dialog__body a { color: var(--accent, #3e5c52); word-break: break-word; }
.read-dialog__close { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: inherit; }
.wall-divider { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem 0.5rem; border-top: 1px solid rgba(0, 0, 0, 0.1); margin-top: 1rem; }
.wall-divider h2 { margin: 0 0 0.4rem; }
.wall-divider p { max-width: 620px; margin: 0 auto; }
.sold-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.piece__sold { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger); margin-bottom: 0.4rem; }
.piece__desc { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0; }

/* Prints */
.print-card .piece__body { display: flex; flex-direction: column; gap: 0.5rem; }
/* Unlimited prints: section dropdown, one section per heading, size list + one button per card */
.print-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.9rem; margin: 0 0 2.5rem; }
.print-picker label { font-weight: 700; font-size: 0.95rem; }
.print-picker select, .print-buy__size { font: inherit; color: var(--ink); background: var(--mount); border: 1px solid var(--rule); border-radius: var(--radius); }
.print-picker select { font-size: 1rem; padding: 0.6em 2.2em 0.6em 0.9em; min-width: 15rem; max-width: 100%; }
.print-section { margin-bottom: 3.5rem; }
.print-section[hidden] { display: none; }
.print-section__title { font-size: 1.6rem; margin: 0 0 1.25rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.print-section__title span { font-family: var(--body, inherit); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 0.4rem; }
.print-card { display: flex; flex-direction: column; }
.print-card .piece__body { flex: 1; }
.print-card .piece__price { margin: 0; }
.print-card .piece__desc { margin: 0.1rem 0 0.4rem; }
.print-card .read-more { align-self: flex-start; margin: -0.3rem 0 0.4rem; }
.print-buy { display: flex; gap: 0.5rem; align-items: stretch; margin-top: auto; padding-top: 0.4rem; }
.print-buy__size { flex: 1; min-width: 0; font-size: 0.88rem; padding: 0.45em 0.5em; }
.print-variants { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.4rem 0; }
.print-variant { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; border-top: 1px solid var(--rule); padding-top: 0.4rem; }
.print-variant:first-child { border-top: none; padding-top: 0; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 36rem; margin: 0 auto; }
.form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 0.7em 0.85em; border-radius: var(--radius); border: 1px solid var(--rule);
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: none; margin: 0; padding: 0; }
.form legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 0.35rem; }
.choice-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 1rem; margin-bottom: 0.3rem; }
.choice-group input { width: auto; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; }
.notice { background: var(--accent-wash); border: 1px solid var(--accent); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; font-size: 0.85rem; text-align: center; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; margin-bottom: 0.9rem; }

/* Store policy pages */
.policy { max-width: 46rem; }
.policy h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.policy ul { padding-left: 1.3rem; margin: 0 0 1em; }
.policy li { margin-bottom: 0.4rem; }
.policy table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0.5rem 0 1.25rem; }
.policy th { text-align: left; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 0.75rem 0.45rem 0; }
.policy td { border-top: 1px solid var(--rule); padding: 0.55rem 0.75rem 0.55rem 0; vertical-align: top; }
.policy a { color: var(--accent-deep); }
.policy-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.92rem; }

.text-center { text-align: center; }

/* Cart (shared cart.css uses these) */
:root { --shop-accent: var(--accent); --shop-muted: var(--muted); --shop-rule: var(--rule); --shop-panel: var(--mount); --shop-radius: var(--radius); }
.main-nav { order: 2; }
.header-cart { order: 3; margin-left: 1.5rem; color: var(--ink); }
.nav-toggle { order: 4; }
@media (max-width: 720px) { .header-cart { margin-left: auto; margin-right: 0.5rem; } }
.buy-options { display: grid; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.buy-options:empty { display: none; }
.buy-option { font-size: 0.85rem; color: var(--ink-soft); }
.buy-option strong { color: var(--brass); }
.inquire-link { margin-top: 0.25rem; }
.is-sold-card .inquire-link { display: none; }
.sold-out { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Painting pages (/gallery/<painting>/) ---------- */
.small { font-size: 0.875rem; }
.painting { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: 1rem; }
.painting__main { display: block; width: 100%; height: auto; background: var(--bay); box-shadow: var(--shadow); }
.painting__thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.painting__thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 72px; height: 72px; }
.painting__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.painting__thumb.is-active { border-color: var(--accent); }
.painting__info h1 { margin: 0.25rem 0 0.5rem; }
.painting__story { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.painting__rooms-title { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.painting__rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.painting__rooms figure { margin: 0; }
.painting__rooms img { width: 100%; height: auto; display: block; box-shadow: var(--shadow); }
.painting-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.painting-more__item { display: block; color: var(--ink); text-decoration: none; }
.painting-more__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--bay); }
.painting-more__item span { display: block; margin-top: 0.4rem; font-family: var(--display); }
.piece__title a { color: inherit; text-decoration: none; }
.piece__title a:hover { text-decoration: underline; }
@media (max-width: 760px) { .painting { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Homepage: featured paintings caption line, and the four ways to bring art home */
.painting-more__item small { display: block; margin-top: 0.15rem; font-size: 0.85rem; }
.home-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.home-offer { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; background: var(--mount); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: box-shadow 0.2s var(--ease); }
.home-offer:hover { box-shadow: var(--shadow); }
.home-offer strong { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.home-offer span { color: var(--ink-soft); flex: 1; }
.home-offer em { font-style: normal; font-weight: 600; color: var(--accent); }
.painting-more--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .painting-more--four { grid-template-columns: repeat(2, 1fr); } }

/* Framed prints page: the three frame colors, and the video + packaging block. */
.frame-choices { margin: 0 0 2.2rem; }
.frame-choices__title { font-size: 1.35rem; margin-bottom: 0.9rem; }
.frame-choices__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 960px; }
.frame-choice { margin: 0; text-align: center; }
.frame-choice img { width: 100%; height: auto; border-radius: 6px; display: block; }
.frame-choice figcaption { font-family: var(--display); font-size: 1rem; margin-top: 0.4rem; color: var(--ink); }
.frame-choice figcaption span { display: block; font-family: var(--body); font-size: 0.8rem; color: var(--muted); }
.frame-choices__note { margin-top: 0.8rem; font-size: 0.92rem; }
.piece__meta a { color: var(--accent); }
.framed-extra { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.framed-extra__video { margin: 0; }
.framed-extra__video video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; display: block; }
.framed-extra__video figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }
.framed-extra__text h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.framed-extra__text img { width: 100%; max-width: 420px; border-radius: 8px; margin: 0.6rem 0 1rem; display: block; }
@media (max-width: 640px) {
  .frame-choices__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .framed-extra { grid-template-columns: 1fr; }
  .framed-extra__video { max-width: 320px; margin: 0 auto; }
}

.wall--framed .piece__bay { background: #f4f1ec; }

/* Framed prints page: "Any painting, framed" order card. */
.any-framed { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 3rem; padding: 1.6rem; background: var(--mount); border: 1px solid var(--rule); border-radius: 12px; }
.any-framed__preview { background: var(--bay); border-radius: 8px; padding: 1.2rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.any-framed__preview img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.any-framed__body h2 { font-size: 1.6rem; margin: 0.2rem 0 0.6rem; }
.any-framed__label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0.9rem 0 0.3rem; }
.any-framed__body select { width: 100%; max-width: 360px; }
.any-framed__body .piece__price { margin: 1rem 0 0.8rem; }
.any-framed__link { font-size: 0.9rem; margin-left: 0.6rem; color: var(--accent); }
@media (max-width: 720px) { .any-framed { grid-template-columns: 1fr; } .any-framed__preview { max-width: 340px; width: 100%; margin: 0 auto; } }
