/* Marina Malamud — gallery theme. Logical properties throughout so RTL/LTR flip cleanly. */
:root {
  --bg: #f5f2ec; --bg2: #ece7de; --ink: #1f1c18; --muted: var(--ink); /* one text colour everywhere (was grey #6f685d) */ --line: #d9d2c5;
  --accent: #8c5a3c; --sold: #a8443a; --on-ink: #f5f2ec;
  --link: #1558d6; --link-on-photo: #a9c8ff;   /* hover colour of text links (standard link blue; lighter over the old full-screen slideshow) */
  /* Type system: --serif only for titles (headings, painting titles, categories), --sans for all other text, --logo for the name. */
  --serif: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --logo: 'Cormorant Garamond', Georgia, serif;
  --pad: clamp(18px, 4vw, 56px); --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] { --bg: #151412; --bg2: #1d1b18; --ink: #ece6da; --muted: var(--ink); --line: #34302a; --accent: #cf9a72; --sold: #d9776b; --on-ink: #151412; --link: #8ab4f8; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
html[lang="he"] { --serif: 'Frank Ruhl Libre', Georgia, serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* visually hidden, still read by search engines and screen readers */
.skip { position: absolute; inset-inline-start: -9999px; } .skip:focus { inset-inline-start: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
html[lang="he"] .eyebrow { letter-spacing: .06em; font-size: 15px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-block-end: 1px solid transparent; transition: background .4s, color .4s, border-color .4s; }
.hdr.scrolled { border-color: var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }   /* may shrink: the sentence wraps on narrow screens */
.brand-main { font: 400 clamp(21px, 2.2vw, 27px)/1 var(--logo); letter-spacing: .16em; text-transform: uppercase; }
html[lang="he"] .brand-main { font: 500 clamp(24px, 2.4vw, 30px)/1 var(--serif); letter-spacing: .03em; }
/* The opening sentence (tagline) under the name */
.brand-sub { font: 500 14px/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); margin-block-start: 8px; }
html[lang="he"] .brand-sub { font-size: 16px; letter-spacing: .02em; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); margin-inline-start: auto; }
.nav a { font-size: 17px; letter-spacing: .05em; position: relative; padding-block: 6px; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current] ::after, .nav a[aria-current]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 4px; }
.tool { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 600 13px/1 var(--sans); letter-spacing: .06em; transition: background .25s; }
.tool:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.moon { display: none; } :root[data-theme="dark"] .moon { display: block; } :root[data-theme="dark"] .sun { display: none; }
.moon { fill: currentColor; stroke: none; }
.menu { display: none; position: relative; }
.menu span { position: absolute; width: 22px; height: 1.5px; background: currentColor; inset-inline-start: 9px; transition: transform .3s var(--ease), top .3s; }
.menu span:first-child { top: 15px; } .menu span:last-child { top: 24px; }
.hdr.open .menu span:first-child { top: 20px; transform: rotate(45deg); } .hdr.open .menu span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .menu { display: grid; }
  .nav { position: fixed; inset: var(--hdr) 0 0 0; background: var(--bg); color: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav a { font: 400 34px/1.1 var(--serif); letter-spacing: .02em; }
  .hdr.open .nav { opacity: 1; pointer-events: auto; }
  .hdr.open { background: var(--bg); color: var(--ink); backdrop-filter: none; }
}

@media (max-width: 480px) { .brand-main { font-size: 17px; letter-spacing: .1em; white-space: nowrap; } html[lang="he"] .brand-main { font-size: 22px; letter-spacing: .02em; }
  .brand-sub { font-size: 12px; margin-block-start: 5px; } html[lang="he"] .brand-sub { font-size: 13px; } .hdr { gap: 8px; } .tool { width: 36px; } }

/* ---------- layout ---------- */
main { min-height: 100vh; outline: 0; }
.page { padding-block-start: calc(var(--hdr) + clamp(32px, 6vw, 80px)); }
.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }
section { margin-block-end: clamp(72px, 11vw, 160px); }
.page-title { font-size: clamp(21.6px, 2.8vw, 38.4px); margin-block: 14px 0; }
.page-title.sm { margin-block-start: 0; } /* Works page: no label above the title */
.lead { font: 400 clamp(21px, 2vw, 26px)/1.6 var(--sans); color: var(--muted); max-width: 46ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border: 1px solid currentColor; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
html[lang="he"] .btn { letter-spacing: .04em; font-size: 15px; }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); } .btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.link { border-block-end: 1px solid currentColor; padding-block-end: 2px; }
/* Text links (menu, contact details, footer, "read more", photo caption) turn blue on hover */
.nav a, .contact-list a, .ftr a, .link, .hero-cap a { transition: color .2s; }
.nav a:hover, .contact-list a:hover, .ftr a:hover, .link:hover, .hero-cap a:hover { color: var(--link); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; animation: none !important; } }

/* ---------- hero ---------- */
/* Each painting is shown whole (never cropped or zoomed), centred on a calm background like a work on a gallery wall;
   name, tagline, caption and slide lines sit below it. */
.hero { position: relative; height: 100svh; min-height: 560px; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding-block-start: var(--hdr); background: var(--bg2); color: var(--ink); }
.hero-stage { position: relative; margin: clamp(16px, 3vh, 36px) var(--pad) 0; }
.hero .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: none; } /* clean cut between paintings: no cross-fade (two paintings overlapping looked smeared) */
.hero .slide.on { opacity: 1; }
.hero .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: none; } /* no shadow around the slideshow paintings */
.hero-copy { display: flex; justify-content: flex-end; padding: clamp(14px, 2.5vh, 28px) var(--pad) clamp(18px, 3.5vh, 36px); }
.hero-cap { text-align: end; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.hero-cap a { display: inline-block; color: var(--ink); border-block-end: 1px solid color-mix(in srgb, currentColor 40%, transparent); padding-block-end: 2px; }
.hero-dots { display: flex; gap: 8px; justify-content: flex-end; margin-block-start: 12px; }
/* Each line fills its button exactly, so the row lines up with the caption's end edge. The active line is thicker, not longer. */
.hero-dots button { width: 18px; height: 22px; padding: 0; display: grid; align-items: center; }
.hero-dots button::before { content: ''; width: 100%; height: 1.5px; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: background .3s, height .3s; }
.hero-dots button.on::before { background: var(--ink); height: 3px; }

/* Backup: the earlier full-screen slideshow (.hero--old) — paintings fill the screen (cropped, slow zoom), text over the image,
   transparent header (.hdr.on-hero). Shown when SLIDESHOW_DEFAULT = 'old' in app.js, or with /?slideshow=old. */
.hero--old { display: block; padding: 0; overflow: hidden; background: #1a1815; color: #f6f1e8; }
.hero--old .hero-stage { position: absolute; inset: 0; margin: 0; }
.hero--old .slide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; box-shadow: none; transform: scale(1.04); transition: transform 9s linear; }
.hero--old .slide.on img { transform: scale(1.12); }
.hero--old::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,12,10,.5) 0%, rgba(14,12,10,0) 30%, rgba(14,12,10,0) 48%, rgba(14,12,10,.72) 100%); }
.hero--old .hero-copy { position: absolute; z-index: 2; inset-inline: var(--pad); bottom: clamp(44px, 9vh, 96px); padding: 0; }
.hero--old .hero-cap { font-size: 13px; letter-spacing: .08em; color: inherit; opacity: .85; }
.hero--old .hero-cap a { color: inherit; border-color: rgba(255,255,255,.5); }
.hero--old .hero-cap a:hover { color: var(--link-on-photo); }
.hero--old .hero-dots button::before { background: rgba(255,255,255,.4); }
.hero--old .hero-dots button.on::before { background: #fff; }
.hdr.on-hero:not(.scrolled):not(.open) { background: transparent; backdrop-filter: none; color: #f6f1e8; }
.hdr.on-hero:not(.scrolled):not(.open) .brand-sub { color: rgba(246, 241, 232, .85); }
.hdr.on-hero:not(.scrolled):not(.open) .nav a:hover { color: var(--link-on-photo); }

/* ---------- home sections ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); align-items: center; padding-block-start: clamp(72px, 11vw, 160px); }
.intro figure { margin: 0; position: relative; }
.home .intro { grid-template-columns: auto minmax(0, 620px); justify-content: start; gap: clamp(28px, 4vw, 56px); } /* home: text close to the photo */
.home .intro figure { width: clamp(220px, 23vw, 293px); } /* home: Marina's photo 40% smaller */
@media (max-width: 800px) { .home .intro { grid-template-columns: 1fr; } .home .intro figure { width: 60%; justify-self: center; } }
.home .intro figure::before { display: none; } /* no frame line around her photo */
.intro figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; }
.intro figure::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--line); z-index: -1; }
html[dir="rtl"] .intro figure::before { inset: 22px 22px -22px -22px; }
.intro h2 { font-size: clamp(21.6px, 2.8vw, 38.4px); margin-block: 14px 26px; }
.intro .q { font: 400 clamp(18px, 1.5vw, 21px)/1.8 var(--sans); color: var(--ink); }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } .intro figure::before { display: none; } }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-block-end: clamp(26px, 4vw, 52px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(21.6px, 2.8vw, 38.4px); } /* one title size on all pages (page titles and section titles) */
.home .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; } /* home: "view all works" link under the title */

.selected { --sel-h: clamp(140px, 26vw, 330px); --sel-gap: clamp(20px, 5vw, 64px); --sel-cap: 68px; --sel-rgap: clamp(20px, 3vw, 36px); container-type: inline-size; display: flex; flex-direction: column; gap: var(--sel-rgap); } /* room between a caption and the next row */
.sel-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sel-gap); align-items: end; }
/* each painting: row height = the cap, or less if the widest painting in the row wouldn't fit its column */
.sel-row .card { min-width: 0; width: calc(min(var(--sel-h), (100cqw - var(--sel-gap)) / 2 / var(--rmax)) * var(--r)); }
.sel-row .card:nth-child(1) { justify-self: end; } .sel-row .card:nth-child(2) { justify-self: start; } /* both hug the central gap */
/* Home page and Works page: one grid for all rows; each column is as wide as its widest painting, every painting centred in its column, block centred */
.home .selected, .works-rows { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: var(--sel-gap); row-gap: var(--sel-rgap); }
.home .sel-row, .works-rows .sel-row { display: contents; }
.home .sel-row .card, .works-rows .sel-row .card { justify-self: center; } /* centred in its column (column = widest painting) */
.sel-row .card .cap { display: block; height: var(--sel-cap); overflow: hidden; } /* fixed-height caption, so images are equally spaced across and down */
.sel-row .card .cap > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; } .sel-row .card .t { line-height: 1.25; } .sel-row .card .m { padding-block-start: 6px; } /* room between the title (letters like g, y) and the line below */
@media (max-width: 600px) { .selected { --sel-gap: 24px; --sel-cap: 54px; } .sel-row .card .cap { padding-block-start: 8px; } .sel-row .card .t, html[lang="he"] .sel-row .card .t { font-size: 16px; } .sel-row .card .m { font-size: 12px; } }
/* Works page: caption = title (+ sold) line and a specs line, together the same fixed height */
.works-rows { --sel-specs: 26px; }
.works-rows .card .cap { display: flex; height: calc(var(--sel-cap) - var(--sel-specs)); }
.works-rows .card .cap .t { min-width: 0; flex: 1; } .works-rows .card .cap .pr { flex: none; }
.works-rows .card .specs { height: var(--sel-specs); padding-block-start: 6px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .works-rows { --sel-specs: 24px; } .works-rows .card .specs { font-size: 12px; } }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.cat { position: relative; aspect-ratio: 3/4; overflow: hidden; color: #f6f1e8; background: var(--bg2); display: block; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,10,8,.7)); }
.cat span { position: absolute; z-index: 1; inset-inline: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.cat b { font: 400 clamp(26px, 2.6vw, 36px)/1 var(--serif); }
.cat i { font: normal 600 12px/1 var(--sans); letter-spacing: .12em; opacity: .85; }

.cta { background: var(--bg2); text-align: center; padding: clamp(56px, 9vw, 130px) var(--pad); }
.cta h2 { font-size: clamp(21.6px, 2.8vw, 38.4px); margin-block: 14px 22px; }
.cta p { max-width: 54ch; margin-inline: auto; color: var(--muted); font-size: 18px; }
.cta .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-start: 30px; }

/* ---------- cards / works ---------- */
.card { display: block; position: relative; cursor: zoom-in; }
.card .ph { background: var(--bg2); overflow: hidden; position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; opacity: 0; }
.card img.ld { opacity: 1; }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 12px 0; font-size: 15px; }
.card .t { font: 400 22px/1.2 var(--serif); } html[lang="he"] .card .t { font-size: 20px; }
.card .m { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-align: end; min-width: 0; }   /* may wrap (long mediums) so cards never widen the page */
.card .pr { font-size: 14px; white-space: nowrap; } .card .pr.is-sold { color: var(--sold); }
.card .specs { color: var(--muted); font-size: 13px; letter-spacing: .04em; padding-block-start: 4px; }
/* Sold: a red dot in the top-right corner (both languages), with a thin light ring so it shows on dark paintings */
.badge { position: absolute; z-index: 2; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--sold); box-shadow: 0 0 0 2px var(--bg); }
.is-sold .ph img { filter: saturate(.85); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: clamp(26px, 4vw, 44px) clamp(24px, 3.4vw, 40px); position: sticky; top: var(--hdr); z-index: 5; background: var(--bg); padding-block: 14px; border-block-end: 1px solid var(--line); }
.pill { padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: all .25s; display: inline-flex; gap: 8px; align-items: baseline; }
.pill small { color: var(--muted); font-size: 12px; }
.pill:hover { border-color: var(--ink); } .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .pill[aria-pressed="true"] small { color: inherit; opacity: .7; }
.masonry { columns: 3 320px; column-gap: clamp(16px, 2.4vw, 36px); }
.masonry .card { break-inside: avoid; margin-block-end: clamp(26px, 3.4vw, 48px); }
.empty { color: var(--muted); padding-block: 60px; text-align: center; font: 400 20px var(--sans); }

/* ---------- about / studio / contact ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 800px) { .split, .split.flip { grid-template-columns: 1fr; } }
.portrait { position: sticky; top: calc(var(--hdr) + 28px); margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 800px) { .portrait { position: static; } }
/* About page: Marina's photo 40% smaller, text right beside it, both from the page edge */
.about-split { grid-template-columns: auto minmax(0, 700px); justify-content: start; gap: clamp(28px, 4vw, 56px); }
.about-split .portrait { width: clamp(200px, 21vw, 300px); }
.studio-split .portrait { width: clamp(300px, 33vw, 440px); margin-top: 6px; } /* Studio: same layout as About (photo first, text beside); a landscape photo, so wider. margin-top: the photo's top meets the top of the first line's letters */
@media (max-width: 800px) { .about-split { grid-template-columns: 1fr; } .about-split .portrait { width: 60%; justify-self: center; } .studio-split .portrait { width: 90%; margin-top: 0; } }
.prose p { font-size: 18.5px; line-height: 1.85; max-width: 62ch; }
.prose.big p:first-child { font: inherit; font-size: 18.5px; line-height: 1.85; } /* About & Studio: opening paragraph same size as the rest of the text */
.statement { margin-block-start: 56px; padding-block-start: 40px; border-block-start: 1px solid var(--line); }
.statement h3, .cv h3 { font-size: clamp(21.6px, 2.8vw, 38.4px); margin-block-end: 24px; }
.cv { margin-block-start: 64px; }
.cv-group { margin-block-end: 38px; }
.cv-group h4 { font-size: 24px; margin: 0 0 14px; }
.cv li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-block: 12px; border-block-start: 1px solid var(--line); list-style: none; }
.cv li b { font: 600 17px/1.6 var(--sans); color: var(--ink); }
.cv ul { margin: 0; padding: 0; }
/* Studio: photos and workshops share one grid of 3 equal columns, so each workshop sits under a photo */
.ws, .gal4 { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: start; gap: 32px clamp(24px, 5vw, 64px); }
@media (max-width: 800px) { .ws { grid-template-columns: 1fr; } }
.ws article { border-block-start: 1px solid var(--ink); padding-block-start: 22px; }
.ws h3 { font-size: clamp(20px, 1.8vw, 26px); margin-block-end: 14px; } .ws p { font-size: 18.5px; line-height: 1.85; } /* workshop text = studio description size and colour */

.gal4 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; font-size: 19px; } .contact-list li { padding-block: 18px; border-block-start: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-list span { color: var(--muted); } .contact-list a { border-block-end: 1px solid transparent; transition: border-color .25s; direction: ltr; unicode-bidi: isolate; } .contact-list a:hover { border-color: currentColor; }
form.f { display: grid; gap: 22px; }
.f label { display: grid; gap: 8px; font: 600 14px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="he"] .f label { letter-spacing: .04em; font-size: 17px; }
.f input, .f select, .f textarea { font: 400 20px/1.5 var(--sans); color: var(--ink); background: transparent; border: 0; border-block-end: 1px solid var(--line); padding: 10px 0; border-radius: 0; width: 100%; letter-spacing: 0; text-transform: none; }
.f textarea { min-height: 130px; resize: vertical; } .f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--ink); }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; }
html[dir="rtl"] .f select { background-position: 12px 55%, 6px 55%; }
.f .row { display: flex; gap: 12px; flex-wrap: wrap; }
.f .btn { font-size: 14px; padding: 16px 30px; } html[lang="he"] .f .btn { font-size: 17px; }
/* Contact page: one text style throughout (same size, weight and colour as the site's body text) */
.contact-page .lead, .contact-page .contact-list, .contact-page .contact-list span, .contact-page .f label, html[lang="he"] .contact-page .f label,
.contact-page .f input, .contact-page .f select, .contact-page .f textarea { font: inherit; font-size: 18.5px; line-height: 1.7; color: var(--ink); letter-spacing: normal; text-transform: none; }
.contact-page .lead { max-width: none; margin: 0 0 32px; } .contact-page .contact-list { margin-block-start: 0; } /* opening sentence above both columns, on one line where it fits */
.contact-page .split { grid-template-columns: minmax(0, 460px) minmax(0, 460px); justify-content: start; gap: clamp(40px, 7vw, 96px); } /* details and form side by side */
@media (max-width: 800px) { .contact-page .split { grid-template-columns: 1fr; } }
.contact-page .f .btn, html[lang="he"] .contact-page .f .btn { font: inherit; font-size: 17px; line-height: 1; letter-spacing: normal; text-transform: none; }

.ftr { border-block-start: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.ftr .b { font: 400 22px/1 var(--logo); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
html[lang="he"] .ftr .b { font: 500 24px/1 var(--serif); letter-spacing: .03em; }
.ftr nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr a { text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.ftr a:hover { text-decoration-color: currentColor; }

/* ---------- lightbox (layout is physical: stage left, info right; text direction follows the page) ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: #0f0e0c; color: #ece6da; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); direction: ltr; touch-action: none; }
.lb[hidden], .wall[hidden] { display: none; }
.lb-stage { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: none; }
.lb-stage.zoomed { cursor: grab; } .lb-stage.drag { cursor: grabbing; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 120px); max-height: calc(100% - 96px); width: auto; height: auto; user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: center; box-shadow: 0 24px 80px rgba(0,0,0,.5); transition: opacity .3s; }
.lb-stage img.swap { opacity: 0; }
.lb-btn { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: background .25s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 16px; right: 376px; } .lb-prev { top: 50%; left: 16px; margin-top: -24px; } .lb-next { top: 50%; right: 376px; margin-top: -24px; }
.lb-zoom { position: absolute; z-index: 3; bottom: 20px; left: calc((100% - 360px) / 2); transform: translateX(-50%); display: flex; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border-radius: 99px; padding: 4px; }
.lb-zoom button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; } .lb-zoom button:hover { background: rgba(255,255,255,.14); }
.lb-info { grid-column: 2; grid-row: 1; direction: inherit; background: #181613; padding: 36px 30px; overflow-y: auto; display: flex; flex-direction: column; border-left: 1px solid #2a2722; touch-action: pan-y; }
html[dir="rtl"] .lb-info { direction: rtl; }
.lb-info .cat-l { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #9a9285; margin-block-end: 14px; } html[lang="he"] .lb-info .cat-l { letter-spacing: .06em; font-size: 13px; }
.lb-info h2 { font-size: 38px; font-weight: 400; margin-block-end: 8px; }
.lb-info dl { margin: 26px 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 15.5px; }
.lb-info dt { color: #9a9285; } .lb-info dd { margin: 0; }
.lb-info .desc { color: #c8c0b2; font-size: 16px; }
.lb-info .specs-line { margin: 14px 0 26px; font-size: 15.5px; line-height: 1.5; } .lb-info .specs-line .sep { white-space: pre; } /* viewer: "size, medium, year" in one line, no labels */
@media (max-width: 1024px) { .lb-info .specs-line { margin-block: 2px 18px; } } /* phone + tablet: details closer to the name (10px below it instead of 22px) */
.lb-info .sold { color: #e08f84; display: inline-flex; gap: 10px; align-items: center; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-block: 6px 22px; }
html[lang="he"] .lb-info .sold { letter-spacing: .04em; font-size: 15px; } .lb-info .sold::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #e08f84; }
.lb-info .acts { margin-block-start: auto; display: grid; gap: 10px; padding-block-start: 22px; }
.lb-info .btn { justify-content: center; color: #ece6da; border-color: #5b5549; } .lb-info .btn:hover { background: #ece6da; color: #151412; border-color: #ece6da; } .lb-info .btn.solid { background: #ece6da; color: #151412; border-color: #ece6da; } .lb-info .btn.solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lb-hint { color: #7b7468; font-size: 12.5px; margin-block-start: 6px; text-align: center; }
@media (max-width: 900px) {
  .lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { grid-column: 1; grid-row: 1; } .lb-info { grid-column: 1; grid-row: 2; max-height: 44vh; padding: 20px 20px 24px; border: 0; border-top: 1px solid #2a2722; }
  .lb-info h2 { font-size: 28px; } .lb-info dl { margin: 14px 0; } .lb-info .acts { grid-template-columns: 1fr 1fr; } .lb-info .acts .btn { padding: 13px 8px; font-size: 12px; }
  .lb-stage img { max-width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .lb-close { top: 10px; right: 10px; } .lb-prev, .lb-next { display: none; }
  .lb-zoom { left: 10px; top: 10px; bottom: auto; transform: none; }
  .lb-hint { grid-column: 1 / -1; }
  .lb-info .acts .btn.solid { grid-column: 1 / -1; }
}
.wall { position: absolute; inset: 0; z-index: 8; background: #0f0e0c; display: grid; grid-template-rows: auto 1fr auto; padding: 18px; gap: 14px; }
.wall-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-inline: 8px; }
.wall-top h3 { font-size: 28px; } .wall-top .sw { display: flex; gap: 8px; align-items: center; }
.sw button.c { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid rgba(255,255,255,.25); } .sw button.c[aria-pressed="true"] { border-color: #0f0e0c; outline: 2px solid #ece6da; }
.wall-stage { display: grid; place-items: center; min-height: 0; }
.scene { position: relative; width: min(100%, calc((100svh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: var(--wc, #e8e1d4); box-shadow: 0 30px 80px rgba(0,0,0,.5); container-type: inline-size; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.14), transparent 22%, transparent 78%, rgba(0,0,0,.12)), linear-gradient(180deg, rgba(255,255,255,.12), transparent 40%); pointer-events: none; }
.scene .floor { position: absolute; inset-inline: 0; bottom: 0; height: 6%; background: #8b7a66; box-shadow: 0 -2px 0 rgba(0,0,0,.12) inset; }
.scene .sofa { position: absolute; bottom: 5%; inset-inline-start: 25%; width: 50%; height: auto; }
.scene .art { position: absolute; background-size: cover; background-position: center; /* thin warm-brown wooden frame (about 2.5 cm at real scale), with a darker inner lip and outer edge */
  box-shadow: 0 0 0 .1cqw #3d2817, 0 0 0 .52cqw #7a5535, 0 0 0 .62cqw #4a301b, 0 .8cqw 2cqw rgba(0,0,0,.28); }
.scene .ppl { position: absolute; bottom: 5.4%; height: calc(170 / 225 * 100% * .94); width: auto; inset-inline-end: 8%; opacity: .55; }
.scene .dim { position: absolute; z-index: 3; font: 600 clamp(10px, 1.1cqw, 13px) var(--sans); letter-spacing: .08em; color: rgba(30,25,20,.85); white-space: nowrap; }
.wall-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #9a9285; font-size: 14px; padding-inline: 8px; align-items: center; }
.wall-foot label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; } .wall-foot button.btn { padding: 10px 18px; color: #ece6da; }
.toast { position: fixed; z-index: 90; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90vw; background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 15px; }

/* =====================================================================
   Look option "gallery" (html[data-look="g"]): quiet gallery look on cream, modelled on a classic painter's site —
   small centred menu with thin dividers, the name in spaced letters fixed at the side, small plain type,
   paintings without captions in two columns, a tiny centred footer. Try with ?look=gallery, back with ?look=current.
   ===================================================================== */
html[data-look="g"] { --bg: #f5f2ec; --bg2: #f5f2ec; --ink: #141414; --line: #cfc6b6; --g-on: #a0968a; /* cream background; --g-on = chosen menu item */ --hdr: 96px; --side: 240px;
  --serif: 'Helvetica Neue', Helvetica, Arial, sans-serif; --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif; --logo: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
html[data-look="g"][data-theme="dark"] { --bg: #262626; --bg2: #262626; --ink: #e8e8e8; --line: #5a5a5a; }
html[data-look="g"] body { font-weight: 400; font-size: 14px; }
/* menu bar: no background band, menu centred over the content area */
html[data-look="g"] .hdr { background: var(--bg); backdrop-filter: none; border: 0; justify-content: center; padding-inline: calc(var(--side) + var(--pad)) var(--pad); } /* same side margins as the page content, so the menu is centred above the paintings */
html[data-look="g"] .nav { margin-inline: auto; gap: 8px 0; flex-wrap: wrap; justify-content: center; }
html[data-look="g"] .nav a { font: 400 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; }
html[data-look="g"][lang="he"] .nav a { font-size: 13px; letter-spacing: .02em; }
html[data-look="g"] .nav a + a { border-inline-start: 1px solid var(--line); }
html[data-look="g"] .nav a::after { display: none; }
html[data-look="g"] .nav a[aria-current] { color: var(--g-on); }
html[data-look="g"][data-theme="dark"] { --g-on: #9a9a9a; }
html[data-look="g"] .nav a:hover { color: var(--g-on); }
html[data-look="g"] .tools { position: absolute; inset-inline-start: 34px; inset-inline-end: auto; /* language/theme buttons in the corner above the name, out of the menu's way */ top: 50%; transform: translateY(-50%); }
/* the name: spaced capitals, fixed at the side, middle of the screen; no tagline */
html[data-look="g"] .brand { position: fixed; inset-inline-start: 38px; top: 50%; transform: translateY(-50%); width: calc(var(--side) - 60px); }
html[data-look="g"] .brand-main { font: 400 19px/1.6 var(--logo); letter-spacing: .5em; text-transform: uppercase; white-space: normal; }
html[data-look="g"][lang="he"] .brand-main { font: 400 23px/1.5 var(--logo); letter-spacing: .38em; }
html[data-look="g"] .brand-main { width: min-content; } /* first name and surname on separate lines */
html[data-look="g"] .brand-sub { display: none; }
/* content area to the side of the name */
html[data-look="g"] main, html[data-look="g"] .ftr { padding-inline-start: var(--side); }
html[data-look="g"] .page { padding-block-start: calc(var(--hdr) + 24px); }
html[data-look="g"] .hero { height: 100svh; }
html[data-look="g"] #app .hero-cap, html[data-look="g"] #app .hero-cap a { font-size: 16px; letter-spacing: .04em; border: 0; } /* painting name under the slideshow */
/* slideshow: painting name and slide lines centred under the painting, on the same centre line as the menu */
html[data-look="g"] .hero-copy { justify-content: center; padding-block-start: 18px; }
html[data-look="g"] .hero-cap { text-align: center; } html[data-look="g"] .hero-dots { justify-content: center; margin-block-start: 0; } html[data-look="g"] .hero-dots button { height: 14px; } /* lines close under the name */
/* one small plain type size for all text; titles small capitals */
html[data-look="g"] #app, html[data-look="g"] #app * { font-size: 14px; line-height: 1.6; font-weight: 400; }
html[data-look="g"] #app :is(h1, h2, h3, h4) { font: 400 16px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-block-end: 18px; }
html[data-look="g"][lang="he"] #app :is(h1, h2, h3, h4) { font-size: 18px; letter-spacing: .04em; }
html[data-look="g"] #app .cv h3 { margin-block-end: 44px; } /* About: more room between "Exhibitions & awards" and "Solo exhibitions" */
/* About, exhibitions list: subtitles (solo / group / awards) a bit smaller than the titles, rows closer together */
html[data-look="g"] #app :is(.cv h4, .ws h3) { font-size: 14px; margin-block-end: 10px; } html[data-look="g"][lang="he"] #app :is(.cv h4, .ws h3) { font-size: 16px; } /* subtitles (About list, Studio workshops) */
html[data-look="g"] #app .cv li { padding-block: 6px; grid-template-columns: 84px 1fr; } html[data-look="g"] #app .cv li b { white-space: nowrap; } /* room for year ranges like 2007–2011 */ html[data-look="g"] #app .cv li, html[data-look="g"] #app .cv li * { line-height: 1.45; }
html[data-look="g"] #app .sec-head { margin-block-end: 24px; } html[data-look="g"] #app .sec-head h2 { margin-block-end: 0; } /* section titles close to what they introduce */
html[data-look="g"] #app .btn { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 22px; }
/* year buttons look like the menu: small capitals divided by thin lines, the chosen one lighter */
html[data-look="g"] .filters { gap: 0; border: 0; }
html[data-look="g"] #app .filters { display: none; } /* the year groups are in the menu in this look */
/* paintings pages: no title on screen (the menu shows where you are); still read by search engines and screen readers */
html[data-look="g"] #app[data-route="/works"] .page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
html[data-look="g"] #app .pill { border: 0; border-radius: 0; background: none; color: var(--ink); padding: 2px 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
html[data-look="g"][lang="he"] #app .pill { font-size: 13px; letter-spacing: .02em; }
html[data-look="g"] #app .pill:first-child { padding-inline-start: 0; }
html[data-look="g"] .pill + .pill { border-inline-start: 1px solid var(--line) !important; }
html[data-look="g"] #app .pill small { display: none; }
html[data-look="g"] .pill[aria-pressed="true"], html[data-look="g"] .pill:hover { color: var(--g-on) !important; }
html[data-look="g"] section { margin-block-end: clamp(56px, 8vw, 110px); }
/* paintings in two columns without captions, wide even gaps (details open in the viewer) */
html[data-look="g"] .selected { --sel-h: 450px; --sel-gap: clamp(28px, 6vw, 80px); --sel-cap: 0px; --sel-rgap: clamp(28px, 6vw, 80px); }
html[data-look="g"] .sel-row .card .cap, html[data-look="g"] .sel-row .card .specs { display: none; }
/* rows of one fixed width (same on every page): each pair fills the row exactly, left painting on the left edge, right painting
   on the right edge, the same small gap between the two and between rows. Rows of landscapes are lower, rows of portraits taller. */
html[data-look="g"] .selected { --sel-gap: 0px; --sel-rgap: 68px; --gW: min(788px, 100cqw); --gImg: calc(var(--gW) * 720 / 788); /* row 788 wide (68px gap across = gap down), the two paintings together 720 wide: the rest is the gap between them */ display: flex; flex-direction: column; align-items: center; gap: var(--sel-rgap); }
html[data-look="g"] .home .sel-row, html[data-look="g"] .works-rows .sel-row, html[data-look="g"] .sel-row { display: flex; justify-content: space-between; width: min(788px, 100%); gap: var(--sel-gap); } /* plain % (not cqw): older tablet browsers (iPadOS 15, old Android) do not support container units, and the pairs overlapped there */
html[data-look="g"] .sel-row.single { justify-content: center; }
html[data-look="g"] .sel-row .card { width: calc(100% * 720 / 788 * var(--r) / var(--rsum)); justify-self: auto; flex: none; } /* % of the row: the two paintings together = 720/788 of the row, the rest is the gap */
@media (max-width: 600px) { html[data-look="g"] .selected { --sel-rgap: 16px; } html[data-look="g"] .sel-row .card { width: calc((100% - 16px) * var(--r) / var(--rsum)); } }
html[data-look="g"] .card .ph { background: transparent; }
/* footer: one tiny centred line */
html[data-look="g"] .ftr { border: 0; justify-content: center; padding-block: 40px 28px; }
html[data-look="g"] .ftr .b, html[data-look="g"] .ftr nav { display: none; }
html[data-look="g"] .ftr span { font-size: 11px; letter-spacing: .04em; }
/* narrower screens: the name goes back to the top bar, no side column */
@media (max-width: 1000px) {
  html[data-look="g"] { --side: 0px; --hdr: 72px; }
  html[data-look="g"] .hdr { justify-content: space-between; padding-inline: var(--pad); }
  html[data-look="g"] .brand { position: static; transform: none; width: auto; }
  html[data-look="g"] .brand-main { letter-spacing: .3em; white-space: nowrap; width: auto; }
  html[data-look="g"] .nav { margin-inline: auto 0; }
  html[data-look="g"] .tools { position: static; transform: none; }
}
@media (max-width: 860px) {
  html[data-look="g"] .nav { background: var(--bg); gap: 0; }
  html[data-look="g"] .nav a, html[data-look="g"][lang="he"] .nav a { font-size: 15px; padding: 14px 0; }
  html[data-look="g"] .nav a + a { border: 0; }
  html[data-look="g"] .hdr.open { background: var(--bg); }
}
@media (max-width: 480px) { html[data-look="g"] .brand-main, html[data-look="g"][lang="he"] .brand-main { font-size: 13px; letter-spacing: .22em; } }

/* Contact form: required fields (name, email) marked with *, a short note under a field that is missing or wrong */
.f .req { font-weight: inherit; color: var(--sold); }
.f .err { font-size: 13px; color: var(--sold); min-height: 0; }
.f .err:empty { display: none; }
.f [aria-invalid="true"] { border-color: var(--sold); }
.f .req-note { margin: 0; font-size: 13px; }
html[data-look="g"] #app .f .err, html[data-look="g"] #app .f .req-note { font-size: 12px; }

/* Contact page: the form is laid out in rows that match the contact details beside it, row for row
   (Name ↔ WhatsApp, Email ↔ Email, Subject ↔ Instagram, Message ↔ Location): the same height and the same thin line above
   each row, the label at the start and the entry field beside it. */
.contact-page form.f { gap: 0; align-content: start; }
.contact-page .contact-list li { padding-block: 0; min-height: 58px; align-items: center; }
.contact-page .f label { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; column-gap: 16px; min-height: 58px; border-block-start: 1px solid var(--line); padding-block: 6px; }
.contact-page .f input, .contact-page .f textarea { border: 0; padding: 6px 0; background: transparent; }
html[lang="he"] .contact-page .f input { text-align: right; } /* Hebrew: typed name and email start at the right, like the labels */
.contact-page .f input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 100px var(--bg); -webkit-text-fill-color: var(--ink); transition: background-color 9999s; } /* no blue fill when the browser fills in name/email by itself */
.contact-page .f textarea { min-height: 96px; margin-block: 0 4px; padding-block-start: 11.8px; } /* first line of the message on the same line as "Location" beside it */
.contact-page .f label:has(textarea) { align-items: start; } .contact-page .f label:has(textarea) > span { padding-block-start: 11.8px; }
.contact-page .f .err { grid-column: 2; }
.contact-page .f [aria-invalid="true"] { box-shadow: inset 0 -1px 0 var(--sold); }
.contact-page .f .row { margin-block-start: 24px; }

/* Painting viewer (html[data-viewer="light"], always on, set in index.html): the viewer uses the site's own
   background and text colour instead of the dark gallery night. The wall view keeps its own scene. */
html[data-viewer="light"] .lb { background: var(--bg); color: var(--ink); }
html[data-viewer="light"] .lb-stage img { box-shadow: 0 14px 40px rgba(0, 0, 0, .16); }
html[data-viewer="light"] .lb-btn { background: color-mix(in srgb, var(--ink) 6%, transparent); } html[data-viewer="light"] .lb-btn:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
html[data-viewer="light"] .lb-zoom { background: color-mix(in srgb, var(--ink) 6%, transparent); } html[data-viewer="light"] .lb-zoom button:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
html[data-viewer="light"] .lb-info { background: var(--bg); border-color: var(--line); }
html[data-viewer="light"] .lb-info .cat-l, html[data-viewer="light"] .lb-info dt, html[data-viewer="light"] .lb-info .desc, html[data-viewer="light"] .lb-hint { color: var(--ink); }
html[data-viewer="light"] .lb-hint { opacity: .6; }
html[data-viewer="light"] .lb-info .btn { color: var(--ink); border-color: var(--ink); } html[data-viewer="light"] .lb-info .btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
html[data-viewer="light"] .lb-info .btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
html[data-viewer="light"] .lb-info .btn.solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* "View on a wall": the room around the wall is a soft light warm grey instead of near-black, with a gentler shadow */
html[data-viewer="light"] .wall { background: #d6cfc2; color: var(--ink); }
html[data-viewer="light"] .scene { box-shadow: 0 18px 50px rgba(60, 45, 30, .22); }
html[data-viewer="light"] .wall-foot { color: var(--ink); }
html[data-viewer="light"] .wall-foot button.btn { color: var(--ink); border-color: var(--ink); } html[data-viewer="light"] .wall-foot button.btn:hover { background: var(--ink); color: var(--bg); }
html[data-viewer="light"][data-theme="dark"] .wall { background: #2b2925; }
/* Painting viewer actions: "Inquire about this work" as a line of text, then WhatsApp / Email / View on a wall as equal
   outline buttons; the one last clicked is filled (.on), the others stay outlined */
.lb-info .acts-h { margin: 0; font-size: 15px; }
.lb-info .acts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.lb-info .acts-row .btn { padding: 13px 8px; text-transform: none; letter-spacing: .02em; font-size: 13px; font-weight: 400; white-space: nowrap; }
html[data-viewer="light"] .lb-info .acts-row .btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 900px) { .lb-info .acts { grid-template-columns: 1fr; } }
/* Fallback box when no mail app opens: Gmail / Outlook / copy the address */
.mailhelp { position: fixed; z-index: 95; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 440px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 18px 20px 14px; font: 400 14px/1.5 var(--sans); }
.mailhelp[hidden] { display: none; }
.mailhelp p { margin: 0 0 12px; padding-inline-end: 28px; }
.mailhelp .mh-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mailhelp .btn { padding: 10px 16px; font-size: 13px; text-transform: none; letter-spacing: .02em; font-weight: 400; color: var(--ink); border-color: var(--ink); }
.mailhelp .btn:hover { background: var(--ink); color: var(--bg); }
.mailhelp .mh-addr { margin: 10px 0 0; font-size: 13px; opacity: .75; text-align: start; }
.mailhelp .mh-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; font-size: 14px; }

/* ONE button style for the whole site (contact form, studio, painting viewer, wall view, email box):
   thin dark outline, small plain text; the button last clicked is filled dark (.on), the others in its row stay outlined.
   !important because older page-specific button rules above are more specific. */
html[data-look="g"] .btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; border-radius: 6px !important; /* slightly rounded corners */
  font: 400 13px/1 var(--sans) !important; letter-spacing: .02em !important; text-transform: none !important; padding: 13px 18px !important; white-space: nowrap;
  transition: background .25s, color .25s; }
html[data-look="g"][lang="he"] .btn { font-size: 14px !important; }
html[data-look="g"] .btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
html[data-look="g"] .btn.on { background: var(--ink) !important; color: var(--bg) !important; }
html[data-look="g"] .lb-info .acts-row .btn { padding: 13px 8px !important; }
/* "View on a wall": wall colours centred at the top of the room, "show a person" at the bottom right of the room */
.scene .sw-in { position: absolute; z-index: 4; bottom: 1.2%; left: 2%; display: flex; gap: 10px; } /* wall colours: bottom left corner of the room */
.scene .sw-in button.c { outline-color: rgba(0, 0, 0, .25); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.scene .sw-in button.c[aria-pressed="true"] { border-color: #fff; outline: 2px solid var(--ink); }
.scene .ppl-l { position: absolute; z-index: 4; bottom: .8%; right: 2%; display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
  font: 400 13px/1.2 var(--sans); color: var(--ink); background: color-mix(in srgb, #fff 55%, transparent); padding: 4px 10px; border-radius: 6px; direction: inherit; }
html[dir="rtl"] .scene .ppl-l { direction: rtl; }
@media (max-width: 600px) { .scene .sw-in { gap: 5px; bottom: 1%; } .scene .sw-in button.c { width: 15px; height: 15px; }
  .scene .ppl-l { font-size: 11px; padding: 3px 6px; gap: 5px; } .scene .ppl-l input { width: 12px; height: 12px; margin: 0; }
  .scene { overflow: visible; margin-block-end: 26px; } .scene .ppl-l { bottom: -24px; right: 0; background: none; padding-inline: 0; } } /* phones: the room is small, so the option sits just under its bottom right corner */
/* tablets too: "show a person" sits just under the room's bottom right corner, clear of the person and the sofa */
@media (max-width: 1000px) { .scene { overflow: visible; margin-block-end: 30px; } .scene .ppl-l { bottom: -28px; right: 0; background: none; padding-inline: 0; } }
