/* Art-gallery page theme (first used by /pages/art-prints). Loaded by the Page
 * Studio `page-theme` block. EVERY rule is scoped under body:has(.pb-theme-gallery),
 * which only matches a page that placed the block, so nothing leaks onto other
 * pages. Warm ivory + linen, charcoal type, muted olive accent; the site's own
 * Fraunces + Inter (no extra font downloads). Header and footer stay site chrome. */
body:has(.pb-theme-gallery){
  --gx-bg:#F8F6F1;--gx-alt:#EEEAE2;--gx-ink:#242321;--gx-muted:#6A665F;--gx-line:#DED9D0;--gx-accent:#5E634E;
  background:var(--gx-bg);
}
body:has(.pb-theme-gallery) .pb-theme{display:none;}

/* Shared blocks on this page pick up the palette. */
body:has(.pb-theme-gallery) .rubric{color:var(--gx-accent);}
body:has(.pb-theme-gallery) .btn-solid{background:var(--gx-ink);border-color:var(--gx-ink);color:var(--gx-bg);}
body:has(.pb-theme-gallery) .btn-solid:hover{background:var(--gx-accent);border-color:var(--gx-accent);}

/* Section rhythm: linen bands for "Shop by Space" and the full collection. */
body:has(.pb-theme-gallery) #shop-by-space,
body:has(.pb-theme-gallery) #collection{background:var(--gx-alt);}

/* Section intros (rich-text) read as gallery captions. */
body:has(.pb-theme-gallery) .pb-rich{background:transparent;}
body:has(.pb-theme-gallery) .pb-rich h2.serif{font-weight:400;font-size:clamp(2rem,1.3rem + 2.4vw,3.2rem);line-height:1.08;letter-spacing:-.015em;color:var(--gx-ink);}
body:has(.pb-theme-gallery) .pb-rich-body{color:var(--gx-muted);font-size:1.06rem;line-height:1.7;}
body:has(.pb-theme-gallery) .pb-rich-center .pb-rich-body p{max-width:56ch;margin-left:auto;margin-right:auto;}

/* Closing statement: quiet, centred, hairline rules. */
body:has(.pb-theme-gallery) #closing .pb-rich-inner{max-width:720px;margin:0 auto;padding:56px 0;border-top:1px solid var(--gx-line);border-bottom:1px solid var(--gx-line);}
body:has(.pb-theme-gallery) #closing h2.serif{font-style:italic;}

/* Product cards: calm frames, serif names, muted prices. Cart controls untouched. */
body:has(.pb-theme-gallery) .fp-bs-product .fp-bs-prodimage{background:var(--gx-alt);}
body:has(.pb-theme-gallery) .fp-bs-product .fp-bs-prodname,
body:has(.pb-theme-gallery) .fp-bs-product .fp-bs-prodname a{font-family:Fraunces,Georgia,serif;font-weight:400;font-size:1.06rem;letter-spacing:-.005em;color:var(--gx-ink);}
body:has(.pb-theme-gallery) .fp-bs-product .fp-bs-prodprice,
body:has(.pb-theme-gallery) .fp-bs-product .fp-bs-prodprice .price{color:var(--gx-muted);font-weight:500;}

/* Collection tabs: underline tabs instead of the site's pill bar. */
body:has(.pb-theme-gallery) .pb-ctabs-bar{border:0;border-bottom:1px solid var(--gx-line);border-radius:0;background:transparent;padding:0;gap:6px 28px;width:100%;}
body:has(.pb-theme-gallery) .pb-ctab{border-radius:0;padding:14px 2px;font-size:.74rem;letter-spacing:.16em;color:var(--gx-muted);border-bottom:2px solid transparent;margin-bottom:-1px;}
body:has(.pb-theme-gallery) .pb-ctab:hover{color:var(--gx-ink);}
body:has(.pb-theme-gallery) .pb-ctab.is-on{background:transparent;color:var(--gx-ink);border-bottom-color:var(--gx-ink);}
body:has(.pb-theme-gallery) .pb-ctab:focus-visible{outline-color:var(--gx-accent);}
body:has(.pb-theme-gallery) .pb-ctabs-more{text-align:center;}
@media(max-width:760px){
  body:has(.pb-theme-gallery) .pb-ctabs-bar{gap:0 22px;}
  body:has(.pb-theme-gallery) #closing .pb-rich-inner{padding:40px 0;}
}

/* Quick add / Quick buy bars and eyebrow marks match the gallery palette. */
body:has(.pb-theme-gallery) .fp-bs-products .fp-bs-qbuybutton .ectbutton.fp-bs-qbuybutton,
body:has(.pb-theme-gallery) .fp-bs-products .prodaddtocart:has(.buybutton) .ectbutton.buybutton{background:var(--gx-ink);}
body:has(.pb-theme-gallery) .fp-bs-products .fp-bs-qbuybutton .ectbutton.fp-bs-qbuybutton:hover,
body:has(.pb-theme-gallery) .fp-bs-products .prodaddtocart:has(.buybutton) .ectbutton.buybutton:hover{background:var(--gx-accent);}
body:has(.pb-theme-gallery) .pb-rich .rubric::before,
body:has(.pb-theme-gallery) .pb-ctabs .rubric::before{display:none;}
body:has(.pb-theme-gallery) .pb-rich .rubric,
body:has(.pb-theme-gallery) .pb-ctabs .rubric{letter-spacing:.22em;}
body:has(.pb-theme-gallery) .pb-ctabs .section-head{justify-content:center;text-align:center;}
