/* ---------- Base ---------- */
:root {
  --color-bg: #fbfaf8;
  --color-bg-alt: #f3f0ec;
  --color-text: #201d1a;
  --color-text-muted: #6b645c;
  --color-accent: #b4863c;
  --color-border: #e2ddd5;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-signature: 'Alex Brush', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-body: 'Lora', Georgia, serif;
  --font-display: 'Fraunces', var(--font-heading);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Without this, mobile Safari's automatic text-inflation feature can
     boost font size unevenly between sibling text blocks (its heuristic
     depends on each block's own content/column width) — this showed up
     as the "We the People" exhibition entry rendering in a much larger,
     overflowing font than the "Roadblocks" entry right above it, even
     though both share the exact same markup and CSS. Locking text size
     to 100% (no auto-adjust) keeps font sizes exactly as declared in CSS
     on every browser. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

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

/* Artwork image copy deterrents: no text-style selection/drag affordance
   and no browser "save image" long-press callout on mobile. Paired with
   the right-click/drag JS guards in main.js. None of this stops a
   screenshot — nothing in a browser can — it just removes the easy,
   one-click ways to pull a full-quality file off the page. */
.gallery-item img,
.detail-image img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

@media print {
  .gallery-item img,
  .detail-image img,
  .hero-bg,
  .about-banner img,
  .framed-art,
  .collections-photo {
    display: none !important;
  }
  .detail-image::before {
    content: "This image isn't available for printing — please contact Shibani to purchase the original.";
    display: block;
    padding: 2rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}

/* ---------- Site-wide "Back" control (built in js/main.js, inserted
   as the first element inside <main> on every page) ---------- */
.site-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: var(--max-width);
  box-sizing: border-box;
  margin: 1.3rem auto 0;
  padding: 0 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-back:hover { color: var(--color-accent); }

.site-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Vertical padding trimmed from 1.1rem (was ~76px total header height
     against a 40px logo -- roughly half the header was empty space
     above/below the logo and nav) to 0.65rem, per Shibani's request that
     the header felt tall with a lot of white space around the small logo
     and nav icons, on every screen size. Horizontal padding unchanged. */
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header wordmark: the same hand-drawn "S" monogram used in the footer,
   swapped in here in place of the plain "Shibani" text (Oct 2026) — a
   more distinctive, on-brand mark that still links home like the old
   text did. Reusing the exact same asset (rather than a separate
   transparent cutout) is deliberate: its baked-in background color is
   already close enough to the site's cream background that it blends
   seamlessly in the footer, and the same holds true in the header. */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--color-accent); }

.main-nav a.active {
  color: var(--color-text);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* Right-hand cluster of the header: nav links + search icon on desktop,
   search icon + hamburger on mobile (main.js groups the existing nav and
   toggle button into this wrapper at runtime, with a new search button
   between them — see the header-actions setup in main.js). Keeps the
   brand logo pinned left and this whole group pinned right via
   .header-inner's own justify-content: space-between, same as before. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.4rem;
  margin: -0.4rem;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-toggle:hover { color: var(--color-accent); }

.search-toggle svg { width: 18px; height: 18px; }

@media (max-width: 780px) {
  .header-actions { gap: 1.1rem; }
}

/* ---------- Site search overlay ---------- */
/* Built once, site-wide, by main.js (same pattern as .zoom-overlay below)
   -- a centered panel over a dimmed backdrop, live-filtered as you type
   against every painting and sketch title (see the search index setup in
   main.js). */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 18, 16, 0.75);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 1.2rem 2rem;
  overflow-y: auto;
}

.search-overlay.open { display: flex; }

.search-panel {
  background: var(--color-bg);
  width: 100%;
  max-width: 560px;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.search-field svg {
  width: 19px;
  height: 19px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
}

.search-field input::placeholder { color: var(--color-text-muted); }

.search-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-close:hover { color: var(--color-text); }

.search-results {
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.search-result:hover,
.search-result:focus-visible { background: var(--color-bg-alt); }

.search-result img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-result-text h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.search-result-text p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.search-empty,
.search-hint {
  padding: 2rem 1.3rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .search-overlay { padding-top: 5.5vh; }
  .search-result img { width: 44px; height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f6ecd9 0%, #fbfaf8 55%, #f3ead6 100%);
  width: 100%;
  /* Matching the box's own aspect ratio to the artwork's (1536:909) means
     object-fit:cover never has to crop the sides to fill it — only
     max-height, when it kicks in on a short/wide screen, trims a sliver
     off the top/bottom instead. That's what keeps the full composition
     (including the architecture at the right edge) intact, while the
     cap keeps the hero from growing "unnecessarily tall" on screens
     wide enough that the natural aspect-ratio height would otherwise
     approach the full viewport height. 100svh (small viewport height) is
     preferred where supported since it accounts for mobile browser
     chrome; 100vh is the fallback.

     Mobile used to load a different, separately-built portrait composite
     here (images/hero-background-mobile.jpg) via a <picture><source>
     breakpoint. That composite never quite matched the desktop image's
     framing, which is what repeatedly read as "cropped" even after the
     file itself was fixed. Removed (Oct 2026): mobile now loads this same
     desktop image and uses this same aspect-ratio rule, so there's only
     one hero image, one framing, sitewide — see index.html's <picture>
     element (now just a plain <img>, no mobile <source>). */
  aspect-ratio: 1536 / 909;
  max-height: 72vh;
  max-height: 72svh;
  min-height: 300px;
}

@media (max-width: 780px) {
  .hero {
    /* A deliberately shorter-than-natural ratio, not a mismatch bug: this
       is the same "box wider than the image's own ratio" case documented
       above, which only ever trims a bit off the top/bottom — it's the
       safe direction, unlike a box that's narrower/taller than the image
       (which crops the sides). Used here on purpose as a mild, controlled
       zoom (~12%) so the SHIBANI wordmark baked into the artwork reads
       larger on phones, per Shibani's request, without resizing the
       artwork file itself or touching anything on desktop/tablet. */
    aspect-ratio: 1536 / 810;
  }
}


/* The hero's height varies by viewport (see fitHeroToViewport() in
   js/main.js), so object-fit:cover crops the artwork at a different point
   on every screen — sometimes landing mid-building or right at the
   architecture's ground line, which reads as an abrupt, accidental cut
   rather than a deliberate frame. A soft fade into the page's own
   background color at the bottom edge means wherever that crop lands, it
   always resolves gracefully instead of hard-stopping. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(251,250,248,0) 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* "VISUAL ARTIST" is baked into the hero photo itself (part of the
   SHIBANI wordmark art). It read too small on mobile, and three rounds
   of trying to fix that with a live CSS text + patch overlay all ran
   into the same wall: a flat CSS color patch can't blend seamlessly
   with a real photo's grain/vignette, especially over a wide area (it
   showed up as a visible grey stripe on the doorface photo). So instead
   of patching over the baked text at runtime, dedicated "-mobile.jpg"
   copies of all 7 hero photos were edited directly: the small old text
   erased using real sampled background texture (not a flat color), and
   new, bigger, properly-centered text baked in at full photo quality.
   Mobile (780px and under) swaps to these files; desktop keeps using
   the original, unedited photos, pixel-for-pixel unchanged. See the
   hero-variant picker script below for the swap logic. */

/* The wordmark used to be baked into the hero photo itself, which meant
   every size/spacing/font tweak required re-editing pixels. Rendering it
   as real text instead lets it use the site's actual heading webfont, be
   positioned independently of how the photo crops at different heights,
   and be restyled with ordinary CSS going forward. */
.hero-text {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-wordmark {
  font-family: var(--font-heading);
  font-weight: 500;
  /* Sized up again per follow-up feedback. */
  font-size: clamp(1.92rem, calc(0.68rem + 5.27vw), 3.65rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
  line-height: 1;
}

/* Two CSS-only attempts at centering the heart over the "I" (by eye,
   then by canceling letter-spacing's trailing gap) both looked right in
   this sandbox's local font-fallback preview but still weren't actually
   centered in the real browser/webfont — because CSS box-model math
   around letter-spacing and glyph metrics isn't something this sandbox
   can fully verify without the real font. So this is no longer CSS-only:
   `left` below is just the pre-JS fallback paint. The real positioning
   happens in js/main.js (`centerHeroHeart()`), which measures exactly
   where the "I" glyph is actually painted (via the Range API, which
   reports the glyph's real rendered box, sidestepping any letter-spacing
   box-model ambiguity entirely) and sets `left` precisely from that —
   correct in whatever font is actually active, verified or not. */
.hero-wordmark-i-wrap {
  position: relative;
  display: inline-block;
}

.hero-heart {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -60%);
  width: 0.4em;
  height: 0.4em;
  color: #b63339;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.85rem, calc(0.65rem + 0.8vw), 1.2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0.7rem 0 0;
}

.hero-text-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.hero-text-divider-line {
  width: 44px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.hero-text-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.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;
}

.hero-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Slightly tighter gap between the tagline and the buttons below it. */
  gap: 0.9rem;
  padding: 2.5rem 1.5rem;
  background: var(--color-bg);
  text-align: center;
}

.hero-cta-tagline {
  /* Upright (not italic). Sized down ~11% (1.35rem -> 1.2rem) — it was
     competing with the hero wordmark above it for attention. */
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

@media (max-width: 500px) {
  /* Sized down from the 1.2rem base so the full line fits on one row at
     phone widths instead of wrapping to two; bumped back up slightly
     (0.78rem -> 0.88rem, Oct 2026) per Shibani's readability feedback. */
  .hero-cta-tagline { font-size: 0.88rem; letter-spacing: 0.01em; }
}

.hero-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Previously smaller than the sitewide .btn (About's "My Story", Featured
   Work's "View All" buttons, collection pages). Shibani asked for them to
   match in size -- removed the override (Oct 2026) so every "View All" /
   "My Story" button now shares the same base .btn padding and font-size.
   Width still varies naturally with each button's own label text. */

@media (max-width: 780px) {
  /* The base .hero's min-height:300px (and this rule's old 340px) was
     written for the old, separate portrait mobile image. Now that mobile
     shares the desktop's wide 1536:909 image and aspect-ratio, a min-height
     anywhere near that tall would force the box taller than the image's
     own proportions at narrow widths — which, same as if max-height ever
     grew the box instead of shrinking it, makes object-fit:cover crop the
     LEFT/RIGHT edges to fill the mismatch. Dropped low enough (160px) that
     it never binds at any realistic phone width, so aspect-ratio alone
     governs the box and the full image always shows with zero side crop. */
  .hero { min-height: 160px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0;
}

.hero-signature {
  font-family: var(--font-signature);
  font-weight: 400;
  font-size: clamp(5.5rem, 16vw, 9.5rem);
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 1.1rem;
  display: inline-block;
  transform: scaleX(1.08);
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-kicker-row .rule {
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.hero-medium {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.hero-medium .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 1.1rem;
}

.hero-handle {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  /* Vertical padding trimmed ~17% (0.75rem -> 0.62rem) per Shibani's
     request to make the button boxes a little less tall -- horizontal
     padding (and so the width) left untouched. */
  padding: 0.62rem 1.7rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover { background: var(--color-accent); }

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Sections ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-inner.narrow {
  max-width: 640px;
  text-align: center;
}

.section-inner.story-wrap {
  max-width: 880px;
}

.gallery-section.alt { background: var(--color-bg-alt); }

.page-section .section-inner { padding-top: 3.5rem; }

.gallery-section h2, .about-section h2, .about-hero h1, .contact-section h1 {
  /* Fluid type: scales linearly between 19.2px at a 375px-wide phone and
     31.2px from 900px up. Sized down again (from a 25.6–41.6px range)
     per Shibani's follow-up that headings still read too large on both
     mobile and desktop. */
  font-size: clamp(1.2rem, calc(0.6643rem + 2.2857vw), 1.95rem);
  margin-bottom: 0.9rem;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

.filter-btn.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

@media (max-width: 780px) {
  /* Pills sized down (padding + font-size) so one more fits on the first
     row before wrapping -- Paintings' 5 filters (All/Landscapes/
     Miniatures/Figurative Art/Miscellaneous) used to wrap after just 2-3
     at narrow widths. Checked via measurement that this gets "Miniatures"
     onto the first line. Also closed up the large gap that used to sit
     between the pills and the grid below them (2.5rem -> 0.9rem), per
     Shibani's "lot of empty space after Miniature button" feedback. */
  .filter-btn { padding: 0.4rem 0.85rem; font-size: 0.75rem; }
  .filters { gap: 0.5rem; margin-bottom: 0.9rem; }
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* On phones, minmax(260px+, 1fr) collapses to a single column, so every
   tile rendered nearly full-screen-width — far larger than intended.
   Switched to a fixed 2-column layout at mobile widths below (placed
   after the #paintingsGrid/#featuredGrid override further down, since an
   ID+class selector there would otherwise win the cascade tie and keep
   those two grids single-column regardless of this rule's own mobile
   breakpoint). */

.gallery-item {
  cursor: pointer;
}

.gallery-item.hidden { display: none; }

.placeholder-img {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(0,0,0,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  transition: transform 0.25s ease;
  border: 1px solid var(--color-border);
}

.gallery-item:hover .placeholder-img { transform: translateY(-3px); }

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-bottom: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Paintings grid (main gallery + homepage featured strip): every tile is
   the same fixed-ratio box, no matter the real canvas size — a small
   piece and a large canvas read as identical "same size" thumbnails,
   which is what makes the grid feel uniform. object-fit: cover crops
   each painting to fill its box edge to edge (centered); the full,
   uncropped painting is always one click away on its own detail page.
   This intentionally does NOT scale tiles by the painting's real-world
   size — every tile is identical on purpose, so no piece reads as
   "bigger" or "smaller" than another. The one exception is square
   canvases (see the data-square rule below), which keep their own
   square shape rather than being cropped into the 4:5 box. */
#paintingsGrid.gallery-grid,
#featuredGrid.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* On phones, minmax(260px+/280px+, 1fr) collapses every grid to a single
   column, so each tile rendered nearly full-screen-width — far larger
   than intended. Switch to a fixed 2-column layout at mobile widths so
   thumbnails size down with the screen instead of filling it. Placed
   here, after the ID+class rule above, so it actually wins the cascade
   for #paintingsGrid/#featuredGrid (same specificity, later wins). */
@media (max-width: 600px) {
  .gallery-grid,
  #paintingsGrid.gallery-grid,
  #featuredGrid.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

#paintingsGrid .gallery-item .img-frame,
#featuredGrid .gallery-item .img-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.9rem;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(32, 29, 26, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Square pieces: the "set of 4" miniatures (Cityscape, Reflections,
   Timeless — each a 2x2 grid of 6 x 6 in canvases) and any individual
   painting whose own canvas is square (data-square="true", set in
   main.js from data.js's `square` flag — e.g. Grace and Poise at 14 x 14
   in). Cropping a square piece into the standard 4:5 tile made it read
   as a tall rectangle instead of the square it actually is, so these
   keep their natural square proportions while every other painting still
   shares the uniform 4:5 tile. */
#paintingsGrid .gallery-item[data-category="miniatures"] .img-frame,
#featuredGrid .gallery-item[data-category="miniatures"] .img-frame,
#paintingsGrid .gallery-item[data-square="true"] .img-frame,
#featuredGrid .gallery-item[data-square="true"] .img-frame {
  aspect-ratio: 1 / 1;
}

/* Wide/panoramic pieces: same idea as the square override above, for the
   opposite extreme. Pantry is 13 x 36 in -- its own photo is a 2.76:1
   panorama, so far from the standard 4:5 tile that cropping it in like
   every other painting left only the fruit basket on the right visible,
   with the pitcher, folded cloth and stack of books on the left cropped
   out of the thumbnail entirely (found in a full-site audit, Dec 2026 --
   see gallery-display-notes). data-wide="true" (set in main.js from
   data.js's `wide` flag) keeps a piece like this at its own true
   proportions instead. */
#paintingsGrid .gallery-item[data-wide="true"] .img-frame,
#featuredGrid .gallery-item[data-wide="true"] .img-frame {
  aspect-ratio: 36 / 13;
}

.availability-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  background: rgba(32, 29, 26, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}

#paintingsGrid .gallery-item:hover .img-frame,
#featuredGrid .gallery-item:hover .img-frame {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(32, 29, 26, 0.16);
}

#paintingsGrid .gallery-item .img-frame img,
#featuredGrid .gallery-item .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  margin-bottom: 0;
  background: none;
  display: block;
}

#paintingsGrid .gallery-item:hover .img-frame img,
#featuredGrid .gallery-item:hover .img-frame img {
  transform: none;
  box-shadow: none;
}

.gallery-item:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(32, 29, 26, 0.12);
}

.placeholder-img.landscapes { background: linear-gradient(150deg, #e8ded0, #cfd9c6); }
.placeholder-img.miniatures { background: linear-gradient(150deg, #ecdccb, #d9c2a8); }
.placeholder-img.figurative-art { background: linear-gradient(150deg, #f0d9c4, #d99a6c); }
.placeholder-img.miscellaneous { background: linear-gradient(150deg, #e6e2da, #c9c2b6); }
.placeholder-img.sketches { background: repeating-linear-gradient(45deg, #eeeae3, #eeeae3 10px, #e4dfd6 10px, #e4dfd6 11px); }

.gallery-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.gallery-item figcaption p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- About / Contact ---------- */
.about-text, .contact-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.about-text {
  text-align: left;
}

.about-text p + p {
  margin-top: 1.2rem;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact page: hero redesign (Dec 2026) ----------
   Shibani: "too many font sizes... needs to be exciting, fun, curious,
   aesthetic." Consolidated five near-but-not-quite-matching sizes (1.05 /
   1(inherited) / 1.1 / 0.95 / 0.9rem) down to one shared body size
   (.contact-text, .contact-links a, .contact-faq-teaser all 1.05rem) plus
   the existing h1 scale, and added a few small, already-established brand
   touches so the page doesn't read as bare text: the .eyebrow label and
   .heading-heart already used elsewhere, a short gold divider borrowed
   from .home-about-divider's pattern, and a line set in the site's own
   cursive signature font (same one as the homepage "Shibani" wordmark). */
.contact-hello {
  font-family: var(--font-signature);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  color: var(--color-accent);
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.contact-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 2.2rem auto;
}

/* ---------- About page: full-page sketch backdrop ---------- */
.about-canvas {
  position: relative;
  background-color: var(--color-bg);
  background-image: linear-gradient(rgba(251, 250, 248, 0.82), rgba(251, 250, 248, 0.82)), url('../images/about/bg-sketch.jpg');
  background-size: 950px auto;
  background-position: top center;
  background-repeat: repeat-y;
}

/* ---------- Home: featured works + about teaser ---------- */
.home-featured .section-inner { padding-bottom: 4rem; }

.home-featured .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.home-featured .section-head .heading-block { max-width: 560px; }

.home-featured .section-head .section-intro { margin-bottom: 0; font-size: 1.1rem; }

/* "Featured Work" semibold, to match "A Little About Me" (set directly on
   .home-about-text h2's own rule above). Scoped to .home-featured only,
   not the shared .gallery-section h2 rule used sitewide, so other pages'
   headings are untouched. Was full bold (700); toned down to 600 per
   Shibani's request. */
.home-featured h2 { font-weight: 600; }

@media (max-width: 780px) {
  /* Re-flipped (Oct 2026): the About-teaser right above this section is
     now left-aligned on mobile (side-by-side text + photo), so Featured
     Work's heading/intro/CTA switched from centered back to left-aligned
     to match it -- the opposite direction from the center-to-match fix
     this replaced, now that the section it's matching has itself flipped. */
  .home-featured .section-head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    /* Cut again (2rem -> 1rem -> 0.5rem) -- still read as generous after
       the first trim, per Shibani's follow-up. Featured Work's first row
       should sit close under its intro line, just enough gap to read as
       a break rather than a collision. */
    margin-bottom: 0.5rem;
  }
  .home-featured .section-head .heading-block { max-width: 100%; }
  /* Sized down a notch (1.1rem -> 0.95rem), then down ~10% again
     (0.95rem -> 0.86rem) per Shibani's follow-up that it still read
     large against the "Featured Work" heading. Checked whether this gets
     the full sentence onto one line on mobile: it doesn't, at any
     font-size that stays comfortably readable -- the sentence itself is
     long enough that only a much smaller, harder-to-read size (well
     under 0.8rem) forces a single line at common phone widths. Left at 2
     lines, just more compact than before. */
  .home-featured .section-head .section-intro { margin-left: 0; margin-right: 0; font-size: 0.86rem; }
}

.home-featured-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

@media (max-width: 780px) {
  /* Same ~20% trim as the section-head gap above, applied to the space
     above the "View All Paintings/Sketches" buttons that close out this
     section (3rem -> 2.4rem). */
  .home-featured-cta { margin-top: 2.4rem; }
  /* Left-aligned to match the now-left-aligned heading above it, rather
     than floating centered beneath a left-aligned block. */
  .home-featured-cta { justify-content: flex-start; }
}

@media (max-width: 780px) {
  /* "View All Paintings"/"View All Sketches" (both the hero bar's pair
     and Featured Work's own pair) trimmed a little narrower than the
     sitewide .btn default -- they read more visually prominent than the
     smaller "My Story" button next to them. Horizontal padding only
     (1.7rem -> 1.45rem, ~15%), kept the same between both pairs so they
     stay equal in size to each other, and kept comfortably above a
     cramped tap target. Vertical padding/height untouched. */
  .hero-cta-buttons .btn,
  .home-featured-cta .btn {
    padding-left: 1.45rem;
    padding-right: 1.45rem;
  }
}

.home-about-teaser {
  background: var(--color-bg-alt) url('../images/about/texture-soft.jpg') center/cover no-repeat;
}

/* Tighter than the default page-section padding: this section is meant to
   peek into the bottom of the first viewport (see fitHeroPeek() in
   js/main.js), and the default 3.5rem/5rem top/bottom spacing pushed "A
   Little About Me" too far down to be visible without scrolling.
   Trimmed again on desktop (Oct 2026, 1.75rem/2.5rem -> 1.4rem/2rem) per
   Shibani's request to tighten the vertical spacing around this section
   -- paired with the smaller portrait below. */
.home-about-teaser .section-inner { padding-top: 1.4rem; padding-bottom: 2rem; }

.home-about-inner {
  display: grid;
  /* Both columns size to their own content (not a stretchy 1fr), so the
     text column doesn't span the whole remaining width while the text
     itself stays much narrower. The text column starts flush at the
     section's left edge — matching "Featured Work" below it — and
     "space-between" pushes the photo out toward the section's right
     edge instead of leaving it bunched next to the text with a wide gap
     of empty background to its right on a big screen. */
  grid-template-columns: minmax(280px, 440px) minmax(220px, 260px);
  justify-content: space-between;
  align-items: center;
  gap: 3.5rem;
  text-align: left;
  position: relative;
}

/* Sized down a notch (Oct 2026, 260px -> 230px) per Shibani's request to
   make the desktop photo a little smaller. */
.home-about-inner .about-portrait { justify-self: start; max-width: 230px; }

/* On a big screen there's enough width and height to let the photo be
   noticeably larger (it's still the taller of the two columns, so it
   continues to span the full height of the row — top to bottom — just
   more prominently) instead of looking small and adrift in all the
   extra space. Also sized down a notch alongside the base rule above
   (340px -> 300px). */
@media (min-width: 1300px) {
  .home-about-inner { grid-template-columns: minmax(280px, 440px) minmax(260px, 340px); }
  .home-about-inner .about-portrait { max-width: 300px; }
}

/* Centered against the portrait photo rather than top-aligned: the text
   column (heading + paragraph + button) is shorter than the portrait, and
   top-aligning it left dead space below the button at the bottom of the
   row. Centering keeps both columns visually balanced as a unit. */
.home-about-inner .home-about-text { align-self: center; }

.home-about-text h2 {
  /* Matches "Featured Work" (.gallery-section h2) exactly — same font
     (inherited from the base h1,h2,h3 rule), same size, same weight — so
     the two headings read as the same visual language scrolling from one
     section into the next. */
  font-size: clamp(1.2rem, calc(0.6643rem + 2.2857vw), 1.95rem);
  /* Semibold rather than full bold (700 -> 600), per Shibani's request —
     matches the .home-featured h2 weight below it. */
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Short accent rule under the heading, replacing the old eyebrow label —
   a small graphic beat instead of a second line of text. */
.home-about-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.3rem;
}

/* Small heart accent on the "About Shibani" heading (used here and in
   about.html's hero), echoing the one baked into the hero wordmark —
   color sampled directly from that image. Scaled in em so it tracks the
   heading's own fluid font-size at every breakpoint. */
.home-about-text h2 .heading-heart,
.about-hero-text h1 .heading-heart,
.contact-section h1 .heading-heart {
  display: inline-block;
  margin-left: 0.3rem;
  color: #b63339;
  font-size: 0.55em;
  vertical-align: 0.15em;
}

.home-about-text p {
  font-family: var(--font-display);
  font-style: italic;
  /* Regular weight rather than medium — the 500-weight italic read as
     bold next to the rest of the page's body text. */
  font-weight: 400;
  color: #4a443e;
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 1.25rem;
}

/* A little breathing room before "My Story ->", so it doesn't sit flush
   under the paragraph above it. */
.home-about-text .btn { margin-top: 0.5rem; }

/* "My Story" sized down a further 15% in both width and height beyond
   the sitewide .btn above, per Shibani's request -- text/font-size
   unchanged, padding tightened on both axes to hit the smaller box. */
.home-about-text .btn { padding: 0.41rem 1.04rem; }

@media (max-width: 780px) {
  /* Side-by-side on mobile (Oct 2026), replacing the earlier fully
     stacked layout -- a narrow photo column alongside the text instead
     of a full-width photo below it. ".home-about-inner"'s own
     align-items: center (set in the base rule above, not overridden
     here) keeps the shorter text block vertically centered against the
     photo automatically. Text reads left-aligned in this narrower
     column -- centered multi-line text felt uneven at this width. */
  .home-about-inner {
    grid-template-columns: 1fr minmax(90px, 132px);
    text-align: left;
    gap: 1.25rem;
  }
  /* Sized up ~10% (120px -> 132px) per Shibani's feedback that the photo
     read slightly undersized against the text -- checked that the
     paragraph still wraps cleanly in the narrower text column this
     leaves (see verification notes in the project). */
  .home-about-inner .about-portrait { justify-self: start; max-width: 132px; margin: 0; }
  /* Font size down again for the narrower text column this layout gives
     it (0.95rem -> 0.86rem), and the italic weight dropped a step
     lighter (400 -> 300, loaded via the Fraunces Google Fonts link in
     index.html) per Shibani's request. Line-height/style otherwise
     unchanged. The "am" word-wrap safeguard from the previous stacked
     layout (see the non-breaking space in index.html) still applies
     regardless of column width, so that fix carries over unaffected. */
  .home-about-text p { margin-left: 0; margin-right: 0; font-size: 0.86rem; font-weight: 300; margin-bottom: 0.7rem; }
  .home-about-divider { margin-left: 0; margin-right: 0; }
  /* Pulled the "My Story" button closer to the paragraph above it on
     mobile -- Shibani's feedback that the two felt disconnected,
     reversing some of the extra breathing room the general .btn rule
     below adds (which still applies on desktop). */
  .home-about-text .btn { margin-top: 0.2rem; }
}

/* ---------- About page: hero ---------- */
.about-hero { position: relative; }

.about-hero .section-inner { padding-bottom: 2rem; }

.about-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  gap: 4.5rem;
  text-align: left;
}

.about-hero-text {
  background: rgba(251, 250, 248, 0.9);
  padding: 1.75rem 2rem;
  border-radius: 6px;
}

.about-portrait {
  position: relative;
  justify-self: center;
}

.about-portrait img {
  width: 100%;
  /* Fixed aspect-ratio (matches portrait-bw.jpg's own 1222:1500 ratio,
     so this -- the "opening" photo -- isn't cropped at all) + object-fit
     so every About-page photo renders as the same-size tile regardless
     of its own source image's natural proportions. See .story-photo img
     below, deliberately matched to this. (Oct 2026) */
  aspect-ratio: 1222 / 1500;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  box-shadow: 0 22px 44px rgba(32, 29, 26, 0.14);
}

.photo-caption {
  position: absolute;
  bottom: -0.9rem;
  right: -1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.9rem;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--color-accent);
  transform: rotate(-3deg);
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(32, 29, 26, 0.1);
}

.about-hero-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  /* Fluid type: 21.6px at 375px wide, scaling up to 36px from 900px up.
     Sized down again (from a 28.8–48px range) per Shibani's follow-up
     that headings still read too large on both mobile and desktop. */
  font-size: clamp(1.35rem, calc(0.7071rem + 2.7429vw), 2.25rem);
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  /* Fluid type: 18.4px at 375px wide, scaling up to 25.6px from 900px up. */
  font-size: clamp(1.15rem, calc(0.8286rem + 1.3714vw), 1.6rem);
  line-height: 1.4;
  color: var(--color-text);
  border-left: 2px solid var(--color-accent);
  padding-left: 1.3rem;
  margin: 1.4rem 0 1.4rem;
}

.about-lede {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 480px;
}

.about-lede-secondary {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 480px;
  margin-top: 1.1rem;
}

/* ---------- About page: story rows ---------- */
.about-story { position: relative; }

.about-story .section-inner { padding-top: 1.5rem; position: relative; z-index: 1; }

.story-row {
  display: grid;
  /* Photo column matched to .about-hero-inner's own minmax(240px, 340px)
     above -- was (220px, 380px) -- so the story photos render at the
     same width (and, with the shared aspect-ratio above, the same
     height) as the opening portrait. */
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  gap: 3.5rem;
  text-align: left;
}

.story-row + .story-row { margin-top: 5rem; }

.story-row.reverse { grid-template-columns: 1fr minmax(240px, 340px); }
.story-row.reverse .story-photo { order: 2; }
.story-row.reverse .story-text { order: 1; }

.story-photo { position: relative; }

.story-photo img {
  width: 100%;
  /* Same fixed aspect-ratio + object-fit as .about-portrait img above,
     and the container width matched at every breakpoint (story-row's
     photo column / .story-photo's mobile max-width below) -- per
     Shibani's request that all the About page photos read as the same
     size as the opening one, rather than each at its own source image's
     natural proportions. (Oct 2026) */
  aspect-ratio: 1222 / 1500;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(32, 29, 26, 0.1);
}

.story-photo .photo-caption {
  bottom: -0.8rem;
  right: 0.9rem;
  left: auto;
}

.story-row.reverse .photo-caption { right: auto; left: 0.9rem; transform: rotate(3deg); }

.story-text {
  background: rgba(251, 250, 248, 0.9);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
}

.story-text p {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.12rem;
  line-height: 1.7;
}
.story-text p + p { margin-top: 1rem; }

/* Closing wrap-up lines after the last fun-fact -- same card treatment as
   .story-text, but centered and narrower since there's no photo beside it. */
.story-closing {
  background: rgba(251, 250, 248, 0.9);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.story-closing p {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.12rem;
  line-height: 1.7;
}
.story-closing p + p { margin-top: 1rem; }

/* ---------- About page: fun-fact toggles ---------- */
.fun-fact {
  max-width: 620px;
  margin: 2.5rem auto;
  background: rgba(251, 250, 248, 0.9);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.4rem;
}

.fun-fact + .fun-fact {
  margin-top: 5rem;
}

.fun-fact summary {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
}

.fun-fact summary::-webkit-details-marker { display: none; }

.fun-fact summary::before {
  content: "+ ";
}

.fun-fact[open] summary::before {
  content: "\2212 ";
}

.fun-fact p {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

/* Homepage Featured Work: small staggered delay so tiles fade in one
   after another rather than all at once as the grid enters view. */
#featuredGrid.reveal, #featuredGrid .reveal { transform: translateY(16px); }
#featuredGrid .reveal:nth-child(1) { transition-delay: 0s; }
#featuredGrid .reveal:nth-child(2) { transition-delay: 0.08s; }
#featuredGrid .reveal:nth-child(3) { transition-delay: 0.16s; }
#featuredGrid .reveal:nth-child(4) { transition-delay: 0.24s; }
#featuredGrid .reveal:nth-child(5) { transition-delay: 0.08s; }
#featuredGrid .reveal:nth-child(6) { transition-delay: 0.16s; }
#featuredGrid .reveal:nth-child(7) { transition-delay: 0.24s; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- About page: banner ---------- */
.about-banner {
  position: relative;
  height: 46vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  margin-top: 6rem;
}

/* Homepage closing section: the hero artwork and Featured Work grid
   already carry the page's visual interest, so this doesn't repeat a
   photo — it's the personal canvas quote on its own soft, plain
   background, flowing straight into the footer below rather than
   announcing itself as a separate "banner". */
.home-quote-banner {
  background: var(--color-bg-alt);
  /* Cut further — still read as too much empty space above/below the
     closing quote even after the first reduction (4.5rem -> 3.75rem ->
     2.5rem, about 44% off the original). */
  padding: 2.5rem 1.5rem;
}

/* The inner wrapper here (.home-banner-card) also carries the generic
   .section-inner class, purely for its max-width/centering -- but
   .section-inner's own padding (5rem top+bottom, 3.5rem on mobile) was
   ALSO applying on top of .home-quote-banner's own padding above, since
   unlike every other section that reuses .section-inner, this one never
   zeroed it out. That doubled-up padding (not just the section's own
   value) was the real source of the large gap Shibani flagged between
   the top of "Every canvas..." and the space after the heart. (Oct 2026) */
.home-quote-banner .section-inner { padding: 0; }

.home-banner-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.home-banner-divider {
  width: 40px;
  height: 1px;
  background: var(--color-text-muted);
  opacity: 0.5;
  margin: 1.1rem auto;
}

.home-banner-line-1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: clamp(1.25rem, calc(0.9rem + 1.2vw), 1.7rem);
  line-height: 1.4;
}

.home-banner-line-2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: clamp(1.15rem, calc(0.9714rem + 0.7619vw), 1.4rem);
  line-height: 1.45;
}

.home-banner-heart {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  margin-top: 1.3rem;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(20,17,14,0.15) 0%, rgba(20,17,14,0.55) 100%);
}

.about-banner-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: #fdfbf7;
  /* Fluid type: 19.2px at 375px wide, scaling up to 32px from 900px up. */
  font-size: clamp(1.2rem, calc(0.6286rem + 2.4381vw), 2rem);
  line-height: 1.45;
  max-width: 720px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.about-cta { text-align: center; }
.about-cta .section-inner { padding-top: 4.5rem; }

/* Same problem as the Exhibitions section below: this closing block sits
   directly on the .about-canvas sketch backdrop with nothing but text and
   buttons, so the pattern showed through and made the eyebrow + buttons
   hard to read. Give it the same solid card treatment. */
.about-cta .section-inner.narrow {
  max-width: 600px;
  background: var(--color-bg);
  border-radius: 14px;
  padding: 3rem 2.6rem 3.2rem;
  box-shadow: 0 10px 30px rgba(44, 38, 30, 0.06);
}

.about-cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact-links a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(180, 134, 60, 0.06);
}

/* ---------- Contact page: echoes the business card back ----------
   The business card back's links (website / Instagram / email) render in
   plain charcoal text with no button chrome, matching the card's own dark
   icon/text color rather than the accent gold used elsewhere on the site.
   Scoped to .contact-page only — the Paintings/Sketches closing sections
   reuse the same .contact-links markup but keep their existing pill-button
   treatment, since those read as calls-to-action within a product page
   rather than a dedicated, card-like contact moment.
   The page used to also show a cropped watercolor-wash image
   (images/contact-splash.png) as a right-edge side panel next to this
   text, echoing the business card's own layout. Removed (Dec 2026) per
   Shibani's feedback: at mobile widths it forced the text column off
   true-center to stay clear of it, which then looked misaligned against
   the plain, fully-centered "Looking for more information?" section
   right below it. Simpler and "crisp" (her word) to drop the art and let
   both sections center the same way at every width -- .contact-section
   no longer needs position:relative/overflow:hidden either, since
   nothing inside it is absolutely positioned anymore. */
.contact-section .section-inner {
  padding-top: 1.25rem;
}

.contact-page .contact-links {
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.contact-page .contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--color-text);
  font-size: 1.05rem;
}

/* Soft tinted icon circle behind each link's icon (Dec 2026) -- reads as
   an inviting small button rather than a bare line icon, without going
   as far as the .btn-outline pill treatment the Paintings/Sketches pages
   use for the same markup (see note above). */
.contact-page .contact-links a .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(180, 134, 60, 0.12);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-page .contact-links a .icon-circle svg {
  width: 17px;
  height: 17px;
}

.contact-page .contact-links a:hover .icon-circle {
  background: var(--color-accent);
  color: var(--color-bg);
}

.contact-page .contact-links a:hover {
  color: var(--color-accent);
  border-color: transparent;
  background: none;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--color-border);
}

/* ---------- About: Selected Exhibitions ---------- */
/* This section sits directly on the page's faint architectural-sketch
   backdrop (.about-canvas), unlike the story rows above it which have
   photos covering most of their width to naturally mute the pattern.
   With nothing but text here, the sketch lines showed through behind
   the eyebrow/heading and made them hard to read — so the whole block
   gets its own solid card instead of floating directly on the texture. */
.exhibitions-section .section-inner.narrow {
  max-width: 760px;
  background: var(--color-bg);
  border-radius: 14px;
  padding: 3rem 2.6rem 3.2rem;
  box-shadow: 0 10px 30px rgba(44, 38, 30, 0.06);
}

.exhibitions-intro {
  color: var(--color-text-muted);
  margin-top: 0.8rem;
}

.exhibitions-list {
  list-style: none;
  text-align: left;
  margin-top: 1.8rem;
}

.exhibitions-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
}

.exhibitions-list li:last-child { border-bottom: 1px solid var(--color-border); }

.exhibition-year {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 54px;
}

.exhibition-details {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.exhibition-dates {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* One row, always — never wraps to a second row (however many photos
   are in a given entry), with "artist + painting" shots deliberately
   not placed next to each other in the markup so the strip reads as a
   mix rather than two portraits side by side. Plain, non-interactive
   images on purpose: these are supporting/documentary photos, not
   product shots that need a closer look, so no click-to-zoom.

   Tiles are a FIXED 130px, not flex-grown to fill the row: an entry
   with fewer photos (e.g. 3) must look the same size as one with more
   (e.g. 5), not bigger. 130px matches what 5 photos already work out
   to in the 676px-wide card (the original, grow-to-fill math), so the
   existing 5-photo rows are pixel-identical to before; a 3-photo row
   now just leaves empty space on the right instead of stretching. */
.exhibition-photos {
  flex-basis: 100%;
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.exhibition-photos img {
  flex: 0 0 130px;
  width: 130px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

@media (max-width: 600px) {
  /* min-width: 0 on the stacked flex item is required here: without it,
     a column-direction flex container sizes every child to the width of
     its widest content by default, so the wide, horizontally-scrolling
     .exhibition-photos row (5 images at 130px each, well over a phone's
     width) was stretching its sibling .exhibition-details text block to
     that same oversized width too — pushing the whole page wider than
     the screen and preventing the exhibition text from wrapping, even
     though the photos row itself was meant to scroll in place. */
  .exhibitions-list li { flex-direction: column; gap: 0.3rem; min-width: 0; }
  .exhibition-details { min-width: 0; }
  /* Shrinking 5+ photos to fit a phone's width in one row makes them
     too small to read, so the row scrolls horizontally instead of
     wrapping — still one row, just a swipeable one. width/min-width
     here keep the row itself capped at the available screen width so it
     scrolls internally instead of expanding its parent. */
  .exhibition-photos {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
  }
  .exhibition-photos img {
    flex: 0 0 130px;
    min-width: 130px;
  }
}

/* Wraps .footer-logo so the footer emblem is also a home link, same as the
   header emblem (.brand) — inline-block so it shrink-wraps to the image
   and .site-footer's existing text-align:center still centers it. */
.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  display: block;
  width: 34px;
  height: auto;
  margin: 0 auto 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover .footer-logo {
  opacity: 1;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-social a:hover { color: var(--color-accent); }

.footer-social svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.footer-rights-note {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  opacity: 0.75;
  max-width: 440px;
  margin: 0.4rem auto 0;
}

/* Single text link (currently just "FAQ") sitting between the social
   icons and the copyright line -- same small-caps treatment as
   .eyebrow so it reads as a quiet utility link, not another icon. */
.footer-links {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--color-accent); }

/* ============================================================
   PAINTINGS — landing page (hero)
   ------------------------------------------------------------
   Mirrors the Sketches hero below (same grid/typography pattern,
   duplicated under its own class names so the two pages can be tuned
   independently), but with a canvas presentation instead of a
   framed-print one: a thin dark edge and a deeper shadow, no cream
   mat, since these are gallery-wrapped acrylic originals rather than
   matted prints. The dark "collections band" at the bottom of the
   page reuses .collections-band /
   .collections-photo as-is (see below) with painting-flavored copy
   and images, and the same mat-free .mini-frame treatment.
   ============================================================ */
.paintings-hero .section-inner {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

/* Mobile-only separator between the hero blurb and the gallery grid
   below it — hidden on desktop/tablet, where the room photo and the
   gallery's own heading already read as a clear break between sections.
   Reused by both the Paintings and Sketches gallery headings. */
.mobile-gallery-divider { display: none; }
@media (max-width: 780px) {
  .mobile-gallery-divider {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--color-accent);
    /* Trimmed again (1.6rem -> 1.1rem, Oct 2026), same "minimize all the
       vertical spacing" pass as the rest of this block. */
    margin: 0 auto 1.1rem;
  }
  /* Pulls the gallery heading (and its divider) up closer to the hero
     text above, now that the hero's own bottom padding has been tightened
     too — together these close the large empty gap that used to sit
     between the opening blurb and the divider line. Trimmed again
     (1.25rem -> 0.6rem, Oct 2026). */
  #gallery .section-inner { padding-top: 0.6rem; }
  /* "Paintings" / "Sketches" heading removed on mobile only — the page
     title already reads clearly from the hero above, so repeating it
     right under the divider was redundant at this width. Divider and
     intro line stay, just without the heading between them. */
  #gallery h2 { display: none; }
  /* Intro line ("Filter by category below." / the sketches equivalent)
     sized down and pulled closer to the filter pills below it -- part of
     the same "too much empty space before the grid" feedback as the
     .filters trim further down. Margin trimmed again (1rem -> 0.6rem,
     Oct 2026). */
  #gallery .section-intro { font-size: 0.85rem; margin-bottom: 0.6rem; }
}


.paintings-hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  align-items: center;
  gap: 4rem;
  text-align: left;
  max-width: var(--max-width);
}

.paintings-hero-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  /* Fluid type: 22.4px at 375px wide, scaling up to 40.8px from 900px up.
     Sized down again (from a 30.4–54.4px range) per Shibani's follow-up
     that headings still read too large on both mobile and desktop. */
  font-size: clamp(1.4rem, calc(0.5786rem + 3.5048vw), 2.55rem);
  line-height: 1.1;
  margin-bottom: 1.3rem;
}

.paintings-hero-text h1 em {
  font-style: italic;
  font-weight: 500;
}

/* :not(.eyebrow) (Oct 2026) -- the eyebrow line above the heading is
   also a <p>, and without this exclusion it was picking up this rule's
   2rem margin-bottom and 1.1rem font-size instead of its own smaller
   .eyebrow styling (this selector is more specific: class+tag beats a
   single class), which is what was making the gap between "Original
   acrylic paintings" and "Stories, painted in color." read far larger
   than intended. */
.paintings-hero-text p:not(.eyebrow) {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2rem;
}

.paintings-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* The hero's room-view photo is shown on its own — no beige backdrop
   panel, no added frame box around it (the photographed room/frame is
   presentation enough, and a second frame on top of it looked boxy).
   This used to force every one of the 19 different room photos into a
   fixed 4:3 box via object-fit:cover. That's fine for a room photo shot
   roughly 4:3 to begin with, but 8 of the 19 are much more portrait
   (around 4:5) because the painting itself is portrait-oriented --
   forcing those into a landscape 4:3 box center-cropped away the top
   ~20% and bottom ~20% of the photo, which for several (Golden Bloom,
   Monochrome, Winter) sliced straight into the painting itself, not
   just surrounding wall (found from a user-reported screenshot of
   Winter looking cropped, Dec 2026 -- see gallery-display-notes).
   Follow-up (Dec 2026): letting the box grow to each photo's own ratio
   fixed the cropping, but most of these room photos are portrait phone
   shots (~4:5), so the box could get very tall and end up dominating the
   page next to the text column -- reported by Shibani as "overpowering."
   Added max-height so the box never grows past a size that sits
   comfortably beside the hero text.
   Follow-up #2 (Dec 2026): the fix above forced width:100% of the grid
   column *and* capped height independently (via aspect-ratio + object-fit:
   contain). Those two constraints disagree for most photos -- the box
   ended up a different shape than the photo itself, and object-fit:contain
   then had to fill the leftover space with blank margin inside the box,
   showing as visible white bars down the sides (reported by Shibani: "the
   white space around the image should NOT appear"). Fixed by dropping the
   forced width and the object-fit/aspect-ratio hack entirely -- width:auto:
   height:auto with only max-width/max-height constraints is normal <img>
   behavior and sizes the box to exactly match the rendered photo's own
   natural shape every time, so there's never a gap to fill no matter which
   of the 19 room photos loads. js/main.js no longer needs to measure or
   set an aspect ratio for this element either, for the same reason. */
.painting-room-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(20, 17, 14, 0.22);
}

@media (max-width: 780px) {
  .paintings-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .paintings-hero-text p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  /* "View the Collection" dropped on mobile — the gallery is one scroll
     away right below, so the button was redundant at this width. */
  .paintings-hero-buttons { display: none; }
  /* Room photo dropped on mobile — the blurb needs to be the focus at
     this width, not competing with a large image above or below it. */
  .painting-room-photo { display: none; }
  /* Tightened the hero's top AND bottom padding on mobile (Oct 2026,
     padding-top added on top of the existing padding-bottom trim) per
     Shibani's feedback that the whole opening felt too tall -- with the
     button and room photo both hidden above, there's nothing left here
     that needs 4rem/4.5rem of breathing room. */
  /* Trimmed again (1.75rem/1rem -> 1.1rem/0.5rem, Oct 2026) per Shibani's
     "pull everything up, minimize all the vertical spacing" feedback. */
  .paintings-hero .section-inner { padding-top: 1.1rem; padding-bottom: 0.5rem; }
  /* Eyebrow, heading and blurb all sized down a notch on mobile, same
     "felt too large" feedback. */
  .paintings-hero-text h1 { font-size: 1.5rem; }
  .paintings-hero-text p:not(.eyebrow) {
    font-size: 0.92rem;
    /* Cut from the inherited 2rem (Oct 2026) -- the single biggest
       contributor to the gap between the description and the divider
       line below it. */
    margin-bottom: 0.9rem;
  }
}

/* ============================================================
   SKETCHES — landing page (hero, collections band)
   ============================================================ */

.sketches-hero .section-inner {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.sketches-hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  align-items: center;
  gap: 4rem;
  text-align: left;
  max-width: var(--max-width);
}

.sketches-hero-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  /* Fluid type: 22.4px at 375px wide, scaling up to 40.8px from 900px up.
     Sized down again (from a 30.4–54.4px range) per Shibani's follow-up
     that headings still read too large on both mobile and desktop. */
  font-size: clamp(1.4rem, calc(0.5786rem + 3.5048vw), 2.55rem);
  line-height: 1.1;
  margin-bottom: 1.3rem;
}

.sketches-hero-text h1 em {
  font-style: italic;
  font-weight: 500;
}

/* :not(.eyebrow) -- same fix as .paintings-hero-text p above (Oct 2026):
   without it, the eyebrow line was picking up this rule's 2rem
   margin-bottom/1.1rem font-size instead of its own .eyebrow styling. */
.sketches-hero-text p:not(.eyebrow) {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
}

.sketches-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* An honest, CSS-built "framed on the wall" presentation — a soft toned
   backdrop with a black-frame + white-mat treatment around a real sketch,
   rather than a staged photo. */
.framed-art {
  position: relative;
  background: linear-gradient(160deg, #ddd3c2 0%, #c9bca5 100%);
  border-radius: 6px;
  padding: 10% 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 60px rgba(32, 29, 26, 0.08);
}

.framed-art-frame {
  background: #211d1a;
  padding: 0.6rem;
  border-radius: 2px;
  box-shadow: 0 24px 50px rgba(20, 17, 14, 0.28);
  max-width: 280px;
}

.framed-art-mat {
  background: #faf8f4;
  padding: 1.1rem;
}

.framed-art-mat img {
  width: 100%;
  display: block;
}

@media (max-width: 780px) {
  .sketches-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .sketches-hero-text p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  /* "View the Collection" dropped on mobile — the gallery is one scroll
     away right below, so the button was redundant at this width. */
  .sketches-hero-buttons { display: none; }
  /* Framed sketch dropped on mobile — the blurb needs to be the focus at
     this width, not competing with a large image above or below it. */
  .framed-art { display: none; }
  /* Tightened the hero's top AND bottom padding on mobile (Oct 2026,
     padding-top added on top of the existing padding-bottom trim) per
     Shibani's feedback that the whole opening felt too tall -- with the
     button and framed sketch both hidden above, there's nothing left
     here that needs 4rem/4.5rem of breathing room. */
  /* Trimmed again (1.75rem/1rem -> 1.1rem/0.5rem, Oct 2026) -- same as
     the Paintings hero, per Shibani's "pull everything up, minimize all
     the vertical spacing" feedback. */
  .sketches-hero .section-inner { padding-top: 1.1rem; padding-bottom: 0.5rem; }
  /* Eyebrow, heading and blurb all sized down a notch on mobile, same
     "felt too large" feedback. */
  .sketches-hero-text h1 { font-size: 1.5rem; }
  .sketches-hero-text p:not(.eyebrow) {
    font-size: 0.92rem;
    /* Cut from the inherited 2rem (Oct 2026), same as Paintings above. */
    margin-bottom: 0.9rem;
  }
}

/* ---------- Spec list (Medium/Size rows on painting + sketch detail
   pages) ---------- */
.spec-list { max-width: 440px; }

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.spec-row:first-child { border-top: 1px solid var(--color-border); }

.spec-row .spec-label { color: var(--color-text-muted); }
.spec-row .spec-value { text-align: right; }

@media (max-width: 780px) {
  .spec-list { margin-left: auto; margin-right: auto; }
}

/* ---------- Collections / hospitality band (dark) ---------- */
.collections-band {
  background: var(--color-text);
  color: #f2ece2;
}

.collections-band .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  max-width: var(--max-width);
}

.collections-band .eyebrow { color: #d8b27c; }

.collections-band h2 {
  /* Fluid type: 17.6px at 375px wide, scaling up to 28.8px from 900px up.
     Sized down again (from a 24–38.4px range) per Shibani's follow-up
     that headings still read too large on both mobile and desktop. */
  font-size: clamp(1.1rem, calc(0.6rem + 2.1333vw), 1.8rem);
  color: #f8f4ec;
  margin-bottom: 1rem;
}

.collections-band p {
  color: #c9c1b3;
  max-width: 420px;
  margin-bottom: 1.8rem;
}

.collections-band .btn-outline {
  border-color: rgba(242, 236, 226, 0.4);
  color: #f2ece2;
}

.collections-band .btn-outline:hover {
  border-color: #d8b27c;
  color: #d8b27c;
}

.collections-photo {
  background: linear-gradient(160deg, #a9ae9c 0%, #8d9280 100%);
  border-radius: 6px;
  padding: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.collections-photo .mini-frame {
  background: #6b5438;
  padding: 0.35rem;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(10, 9, 7, 0.3);
  align-self: center;
}

.collections-photo .mini-frame-mat {
  background: #faf8f4;
  padding: 0.4rem;
}

.collections-photo img { width: 100%; display: block; max-width: 120px; }

/* Used when .collections-photo holds a single already-framed/room photo
   (e.g. the Sketches footer band) instead of several plain mini-frames
   — drops the sage backdrop + padding so the photo isn't shown inside
   a second backdrop of its own. */
.collections-photo.photo-only {
  background: none;
  padding: 0;
}

.collections-photo.photo-only img {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(20, 18, 16, 0.22);
}

@media (max-width: 780px) {
  .collections-band .section-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .collections-band p { margin-left: auto; margin-right: auto; }
  .collections-photo { padding: 1.6rem; flex-wrap: wrap; }
}

/* Paintings page bottom band: plain room-view photos shown directly on
   the dark band, with no sage backdrop panel and no per-photo frame box
   (the Sketches page's own .collections-photo/.mini-frame treatment is
   untouched above — this is a separate, simpler look used only here). */
.room-photos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.room-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(10, 9, 7, 0.32);
}

@media (max-width: 780px) {
  .room-photos-row { gap: 0.7rem; }
}

/* ============================================================
   PAINTING + SKETCH DETAIL PAGES (shared template)
   ------------------------------------------------------------
   Both paintings/<slug>.html and sketches/<slug>.html use these same
   classes, so a visitor moving between a painting's page and a sketch's
   page sees the same layout, spacing, and "inquire" pattern — one
   gallery, not two different mini-sites bolted together.
   ============================================================ */
.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a:hover { color: var(--color-accent); }

.detail-section .section-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem 4rem;
  align-items: start;
  max-width: var(--max-width);
  text-align: left;
}

.detail-section .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.detail-image {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Watermark over the full-size detail image (the one image on the site
   large/clean enough to be worth printing). A tiled, diagonal "©
   Shibani" repeats across the whole image rather than sitting in one
   corner, so it can't just be cropped out — and it survives a
   screenshot, which a corner logo or a metadata-only watermark doesn't.
   It's deliberately light (low opacity, multiply blend) so it reads
   clearly on a screen but doesn't fight the artwork. This applies to
   both paintings/<slug>.html and sketches/<slug>.html since they share
   this .detail-image class. */
.detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='170'><text x='10' y='95' font-family='Georgia, serif' font-size='22' fill='rgba(32,29,26,0.5)' transform='rotate(-30 130 85)'>%C2%A9 Shibani</text></svg>");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.16;
}

.detail-info h1 {
  /* Fluid type: 19.2px at 375px wide, scaling up to 33.6px from 900px up.
     Sized down again (from a 25.6–44.8px range) — Shibani's follow-up
     said painting/sketch titles like "Circle of Trust" still read too
     large on both mobile and desktop, not just on phones. */
  font-size: clamp(1.2rem, calc(0.5571rem + 2.7429vw), 2.1rem);
  margin-bottom: 0.5rem;
}

.detail-location {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.6rem;
}

/* Unused as of Oct 2026 — the blurb paragraph was removed from both
   paintings and sketches detail pages. Left in place in case either
   section adds real copy later. */
.detail-blurb {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.detail-info .spec-list { margin-bottom: 1.8rem; max-width: none; }

.detail-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* "View in a Room" thumbnail picker — only present on paintings with a
   `room` photo in data.js. Sits at the bottom of the main image: one
   thumbnail for the painting alone, one for the room photo. Given a
   higher z-index than the watermark pseudo-element above so the small
   thumbnails themselves stay crisp and clickable rather than getting
   watermarked too (the large image they swap into still is). */
.detail-thumbs {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.detail-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.detail-thumb:hover { opacity: 0.85; }

.detail-thumb.active {
  opacity: 1;
  border-color: var(--color-accent);
}

/* ---------- Zoom lightbox (click the main detail image to inspect it
   larger) ----------
   This is deliberately not the old click-to-enlarge lightbox that used
   to sit between the gallery grid and a painting's own page (that one
   was removed — grid tiles now link straight to a detail page, see
   gallery-display-notes). This is a separate, narrower feature that
   only lives on a piece's own detail page: click the big image to open
   it larger, click again to zoom in further and scroll/drag to pan,
   click again (or the close button, or outside the image, or Escape)
   to leave. Shows on both paintings/<slug>.html and
   sketches/<slug>.html since both share .detail-image. The tiled
   watermark is reapplied here too, same as the inline image, so
   zooming in doesn't give a clean copy. */
.detail-image > img { cursor: zoom-in; }

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.2rem;
}

.zoom-overlay.open { display: flex; }

.zoom-overlay-scroll {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-overlay-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='170'><text x='10' y='95' font-family='Georgia, serif' font-size='22' fill='rgba(242,236,226,0.55)' transform='rotate(-30 130 85)'>%C2%A9 Shibani</text></svg>");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.zoom-overlay img {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-overlay img.zoomed {
  max-width: none;
  max-height: none;
  width: 1800px;
  cursor: zoom-out;
}

.zoom-overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 226, 0.4);
  background: rgba(20, 18, 16, 0.5);
  color: #f2ece2;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.zoom-overlay-close:hover {
  background: rgba(20, 18, 16, 0.8);
  border-color: #d8b27c;
}

.zoom-overlay-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #c9c1b3;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 780px) {
  .zoom-overlay img.zoomed { width: 220vw; }
}

.more-section { background: var(--color-bg-alt); }

.more-section h2 {
  /* Fluid type: 16px at 375px wide, scaling up to 24px from 900px up.
     Sized down again (from a 21.6–32px range) per Shibani's follow-up
     that headings still read too large on both mobile and desktop. */
  font-size: clamp(1rem, calc(0.6429rem + 1.5238vw), 1.5rem);
  margin-bottom: 2rem;
}

@media (max-width: 780px) {
  .detail-section .section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .detail-image { padding: 1.5rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
  }

  .hero-cta-bar { padding: 1.6rem 1.5rem; }

  /* padding-bottom trimmed ~20% too (4rem -> 3.2rem) -- the same "feels
     generous on mobile" feedback applied to the space below the View
     All buttons, before the closing quote banner. */
  .home-featured .section-inner { padding-top: 1.75rem; padding-bottom: 3.2rem; }

  .section-inner { padding: 3.5rem 1.5rem; }

  .about-hero-inner {
    grid-template-columns: 1fr;
    /* Pulled the text block up closer to the photo above it (2.5rem ->
       1.25rem), per Shibani's request. */
    gap: 1.25rem;
    text-align: center;
  }

  /* Sized down a little (280px -> 230px) per Shibani's request. */
  .about-portrait { max-width: 230px; margin: 0 auto; }

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

  .pull-quote {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* .about-lede (1.15rem/18.4px) and .story-text p (1.12rem/17.9px) have no
     mobile-specific size on desktop — fine on a wide screen, but on a narrow
     phone the same size wraps to fewer words per line and reads noticeably
     "big" compared to typical mobile editorial text (industry convention is
     body copy around 16-17px on phones). Headline and pull-quote already
     scale down via clamp()'s vw component, so only these two need a mobile
     override here. */
  .about-lede, .about-lede-secondary { margin-left: auto; margin-right: auto; font-size: 1.05rem; }

  .story-row, .story-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .story-row.reverse .story-photo,
  .story-row.reverse .story-text,
  .story-row .story-photo,
  .story-row .story-text {
    order: initial;
  }

  /* Matched to .about-portrait's own mobile max-width (230px) -- was
     320px -- so every About-page photo reads as the same size. */
  .story-photo { max-width: 230px; margin: 0 auto; }

  .story-row + .story-row { margin-top: 3.5rem; }

  /* banner-village-at-dusk.jpg is a wide (2.07:1) image. The old fixed
     38vh/260px height made this band too tall relative to a narrow phone's
     width, so object-fit:cover cropped heavily off BOTH left and right
     edges to fill it (the opposite trade-off from the hero fix above —
     here we want zero/near-zero horizontal crop and don't mind some
     vertical crop, since there's no edge-to-edge text baked into this
     photo). Sizing the height as a fraction of viewport width (rather
     than viewport height) keeps the band's own aspect ratio close to the
     photo's, so cropping happens mostly top/bottom instead of left/right.
     min-height keeps the overlaid quote from feeling cramped at the
     narrowest phone widths. */
  .about-banner { height: 56vw; min-height: 215px; margin-top: 4rem; }
  .home-quote-banner { padding: 1.8rem 1.5rem; }

  .about-canvas { background-size: 560px auto; }

  .about-hero-text { padding: 1.25rem 1.4rem; }

  .story-text { padding: 1.1rem 1.3rem; }

  .story-text p { font-size: 1.05rem; text-align: center; }

  .story-closing { padding: 1.1rem 1.3rem; margin-top: 2rem; }

  .story-closing p { font-size: 1.05rem; }

  .fun-fact { margin: 2rem auto; padding: 0.8rem 1.1rem; text-align: center; }

  /* Exhibitions list: the year + details side-by-side row (built for a
     wide screen) doesn't translate to simple centered text at this width,
     so it stacks into a centered column instead — year above details,
     rather than a left-pinned year column with centered text awkwardly
     wrapping beside it. */
  .exhibitions-list { text-align: center; }
  .exhibitions-list li { flex-direction: column; align-items: center; gap: 0.4rem; }
  .exhibition-year { width: auto; }

  .fun-fact + .fun-fact { margin-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq-answer-wrap { transition: none; }
}

/* ============================================================
   CONTACT PAGE — FAQ teaser
   ------------------------------------------------------------
   A quiet line below the main email/Instagram/Facebook links, not a
   second CTA competing with them. Originally a separate heading +
   paragraph + link (three more font sizes on top of the hero's own) --
   collapsed to one sentence at the same 1.05rem body size used
   everywhere else on this page (Dec 2026, per Shibani: "too many font
   sizes," "needs to be... aesthetic"), with the FAQ link inline rather
   than its own line.
   Deliberately its OWN page-section, not nested inside .contact-section
   -- that section's watercolor splash image used to be absolutely
   positioned at 100% of .contact-section's height, so anything added
   inside that same section grew the splash along with it. The splash is
   gone now too (see note above .contact-page .contact-links), but kept
   this as a separate section below regardless since the divider between
   them still reads as a natural break. */
.contact-faq-section .section-inner {
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
}

.contact-faq-teaser {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.contact-faq-teaser a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-faq-teaser a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* ============================================================
   FAQ PAGE
   ------------------------------------------------------------
   Hero mirrors the Contact page's minimal, centered treatment (no
   two-column hero, no room/splash photo -- this is a reading page).
   The accordion body below gets its own, slightly wider column since
   question/answer text needs more room than the 640px centered
   ".narrow" column comfortably gives, and reads left-aligned rather
   than centered, same as any other block of body copy on the site.
   ============================================================ */
.faq-hero .section-inner { padding-bottom: 1rem; }

/* The sitewide `* { margin: 0 }` reset left no breathing room between
   this h1 and the intro paragraph right under it -- other hero sections
   (Contact, About) get a margin-bottom on their own h1 from a shared
   rule this page's h1 was never added to. Giving it the same value here
   directly, rather than joining that shared rule, so the FAQ heading's
   own font-size clamp isn't touched. (Dec 2026, per Shibani: "the line
   below is too tight.") */
.faq-hero h1 { margin-bottom: 0.9rem; }

.faq-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.faq-inner {
  max-width: 740px;
  text-align: left;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category:last-child { margin-bottom: 0; }

.faq-category h2 {
  font-size: clamp(1.15rem, calc(0.9rem + 1vw), 1.5rem);
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-q { font-weight: 500; }

/* The question itself is the only clickable control -- a full-width,
   unstyled <button> so the whole row (not just the icon) responds to a
   click/tap, with generous vertical padding as the tap target. */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--color-text);
  cursor: pointer;
}

.faq-question:hover { color: var(--color-accent); }

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Plus/minus indicator, drawn with two bars rather than an icon font or
   image -- the vertical bar fades out on open, leaving the horizontal
   one behind as the "minus." */
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 100%; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 100%; transition: opacity 0.2s ease; }

.faq-item.is-open .faq-icon::after { opacity: 0; }

/* Expand/collapse via the grid-rows trick -- animates smoothly without
   JS having to measure each answer's height, and collapses to a true
   0 (not just visually hidden) so no empty gap is left when closed. */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer-wrap > .faq-answer { overflow: hidden; }

.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }

.faq-answer p {
  font-family: var(--font-serif-body);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-bottom: 1.3rem;
}

@media (max-width: 600px) {
  .faq-question { font-size: 1rem; padding: 1rem 0; }
  .faq-category { margin-bottom: 2.2rem; }
}
