/* Layout: a quiet gallery built from Maiko's own materials. Warm gesso walls,
   ultramarine "night" bands where the paintings glow, and her circle-and-dot
   ornament drawn in thin gold as the only decoration. */
:root {
  /* gesso (page) */
  --wall: #f5efe3;
  --wall-2: #ece3d2;
  --ink: #1e1b26;
  --ink-2: #6b6355;
  --rule: #ddd0ba;
  --accent: #2a4a9b;        /* cobalt, from the Blue Bull */
  --accent-ink: #ffffff;
  --gold: #b07f2a;          /* ochre gold, her outlines */
  --sold: #c2381f;          /* vermilion "sold" dot */
  --shadow: 0 1px 2px rgba(30, 20, 10, .14), 0 16px 34px -14px rgba(30, 20, 10, .45);

  /* ultramarine night bands */
  --n-bg: #141a33;
  --n-bg2: #1c2445;
  --n-ink: #f3ebdd;
  --n-ink2: #b4ac9c;
  --n-rule: #2e3760;
  --n-accent: #9db4f2;
  --n-gold: #d6a44e;

  --f-display: "Prata", "Noto Serif Georgian", "Times New Roman", serif;
  --f-title: "Forum", "Noto Serif Georgian", "Times New Roman", serif;
  --f-body: "Manrope", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23b07f2a' stroke-opacity='.17'%3E%3Ccircle cx='22' cy='24' r='15'/%3E%3Ccircle cx='22' cy='24' r='6'/%3E%3Ccircle cx='76' cy='16' r='9'/%3E%3Ccircle cx='128' cy='34' r='20'/%3E%3Ccircle cx='128' cy='34' r='9'/%3E%3Ccircle cx='54' cy='76' r='22'/%3E%3Ccircle cx='54' cy='76' r='10'/%3E%3Ccircle cx='54' cy='76' r='2' fill='%23b07f2a' fill-opacity='.22'/%3E%3Ccircle cx='108' cy='92' r='12'/%3E%3Ccircle cx='148' cy='108' r='6'/%3E%3Ccircle cx='18' cy='126' r='13'/%3E%3Ccircle cx='74' cy='134' r='16'/%3E%3Ccircle cx='74' cy='134' r='6'/%3E%3Ccircle cx='132' cy='146' r='10'/%3E%3C/svg%3E");
  --pattern-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23d6a44e' stroke-opacity='.10'%3E%3Ccircle cx='22' cy='24' r='15'/%3E%3Ccircle cx='22' cy='24' r='6'/%3E%3Ccircle cx='76' cy='16' r='9'/%3E%3Ccircle cx='128' cy='34' r='20'/%3E%3Ccircle cx='128' cy='34' r='9'/%3E%3Ccircle cx='54' cy='76' r='22'/%3E%3Ccircle cx='54' cy='76' r='10'/%3E%3Ccircle cx='54' cy='76' r='2' fill='%23d6a44e' fill-opacity='.2'/%3E%3Ccircle cx='108' cy='92' r='12'/%3E%3Ccircle cx='148' cy='108' r='6'/%3E%3Ccircle cx='18' cy='126' r='13'/%3E%3Ccircle cx='74' cy='134' r='16'/%3E%3Ccircle cx='74' cy='134' r='6'/%3E%3Ccircle cx='132' cy='146' r='10'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #12162a; --wall-2: #1a1f38; --ink: #efe7d8; --ink-2: #a8a090; --rule: #2b3152;
    --accent: #9db4f2; --accent-ink: #0e1226; --gold: #d6a44e; --sold: #f0644a;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 34px -14px rgba(0,0,0,.8);
    --n-bg: #0b0e1d; --n-bg2: #121731; --n-rule: #262c4a; --n-accent: #b9cbf7;
    --pattern-gold: var(--pattern-night);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #12162a; --wall-2: #1a1f38; --ink: #efe7d8; --ink-2: #a8a090; --rule: #2b3152;
  --accent: #9db4f2; --accent-ink: #0e1226; --gold: #d6a44e; --sold: #f0644a;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 16px 34px -14px rgba(0,0,0,.8);
  --n-bg: #0b0e1d; --n-bg2: #121731; --n-rule: #262c4a; --n-accent: #b9cbf7;
  --pattern-gold: var(--pattern-night);
  color-scheme: dark;
}

/* A night band re-maps the tokens, so every component inside just works. */
.band-night {
  --wall: var(--n-bg); --wall-2: var(--n-bg2); --ink: var(--n-ink); --ink-2: var(--n-ink2);
  --rule: var(--n-rule); --accent: var(--n-accent); --accent-ink: #0e1226; --gold: var(--n-gold);
  background: var(--wall); color: var(--ink);
  color-scheme: dark;
}
.pattern { background-image: var(--pattern-gold); background-size: 160px 160px; }
.band-night.pattern { background-image: var(--pattern-night); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.005em; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
html[lang="ka"] .eyebrow { text-transform: none; letter-spacing: .04em; }

/* Ornament: her circle-and-dot border motif, drawn in gold */
.orn { display: block; width: 120px; height: 15px; color: var(--gold); margin: 0 0 18px; overflow: visible; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--wall) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-size: 22px; text-decoration: none; margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 4px; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px; transition: background-size .3s, color .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 1px; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.lang button {
  font: 500 12px/1 var(--f-body); letter-spacing: .06em; padding: 8px 11px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
@media (max-width: 640px) {
  .header-row { gap: 8px 16px; padding-block: 10px; }
  .nav { order: 3; width: 100%; gap: 6px 18px; }
}

/* Light / dark switch */
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: transparent;
  color: var(--gold); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .25s;
}
.theme-btn:hover { border-color: var(--gold); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; grid-area: 1 / 1; transition: opacity .3s, transform .4s; }
.theme-btn .i-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-btn[data-mode="dark"] .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
.theme-btn[data-mode="dark"] .i-sun { opacity: 1; transform: none; }
html.theme-anim, html.theme-anim body, html.theme-anim .band-night, html.theme-anim .site-header { transition: background-color .4s ease, color .4s ease; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--f-body); letter-spacing: .02em; padding: 15px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--ink); color: var(--wall); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .5; cursor: default; }
.text-link { color: var(--accent); text-underline-offset: 3px; }

/* Hero: ultramarine night, paintings cross-fading */
.hero { padding-block: clamp(48px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-name { font-size: clamp(64px, 10.5vw, 140px); line-height: .92; margin-top: 22px; letter-spacing: -.015em; }
.orn-hero { width: 170px; height: 21px; margin: 28px 0 0; }
.hero-native { font-family: "Noto Serif Georgian", serif; font-size: 18px; color: var(--gold); margin: 14px 0 0; }
.hero-lede { font-size: 17px; max-width: 36ch; margin: 26px 0 0; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { margin: 0; display: grid; gap: 18px; }
.hero-stage {
  position: relative; width: 100%; aspect-ratio: 5 / 4; max-width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in;
}
.hero-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.015); transition: opacity 1.2s ease, transform 6s ease-out;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.55));
}
.hero-stage img.on { opacity: 1; transform: scale(1); }
.hero-cap { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; transition: background .3s;
}
.hero-dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* Wall label */
.frame {
  display: block; width: 100%; padding: 0; border: 0; background: var(--wall-2);
  box-shadow: var(--shadow); cursor: zoom-in; position: relative;
  outline: 1px solid transparent; outline-offset: 8px; transition: transform .35s ease, outline-color .35s;
}
.frame img, .frame canvas { width: 100%; height: auto; display: block; }
.label { font-size: 13px; line-height: 1.5; }
.label .t { font-family: var(--f-title); font-size: 21px; line-height: 1.25; color: var(--ink); }
.label .t em { font-style: normal; color: var(--ink-2); }
.label .m { color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sold); }
.status.available .dot { background: transparent; border: 1px solid var(--gold); box-shadow: inset 0 0 0 2px var(--wall), inset 0 0 0 5px var(--gold); }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section + .section:not(.band-night) { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.filters button {
  font: 500 14px/1 var(--f-body); background: none; border: 0; padding: 8px 0 8px 16px; color: var(--ink-2);
  cursor: pointer; position: relative;
}
.filters button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; border: 1px solid var(--rule); transition: background .25s, border-color .25s;
}
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::before { background: var(--gold); border-color: var(--gold); }
.filters .count { font-variant-numeric: tabular-nums; font-size: 11px; margin-left: 5px; color: var(--ink-2); }
.sample-note { font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--gold); padding: 4px 0 4px 12px; margin: -16px 0 32px; }

/* Gallery: columns keep each painting's true proportions */
.gallery { columns: 3 280px; column-gap: clamp(28px, 4vw, 60px); }
.work { break-inside: avoid; margin: 0 0 clamp(44px, 5vw, 68px); display: grid; gap: 16px; }
.work .frame:hover { transform: translateY(-4px); outline-color: var(--gold); }

/* Studio: her story on a faint field of her circles */
.studio { background-color: var(--wall-2); padding-block: clamp(72px, 9vw, 128px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-year { display: grid; gap: 8px; }
.year-big {
  font-family: var(--f-display); font-size: clamp(110px, 18vw, 240px); line-height: .85;
  color: var(--gold); letter-spacing: -.02em;
}
.studio-text { max-width: 60ch; }
.studio-text h2 { margin: 14px 0 22px; }
.studio-text p { font-size: 17px; margin: 0; }
.pull {
  margin: 32px 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold);
  font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.25; text-wrap: balance;
}
.medals-wrap { margin-top: clamp(48px, 6vw, 80px); }
.medals-label { margin-bottom: 18px; }
.medals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 3vw, 36px); }
.medal {
  aspect-ratio: 1; max-width: 100%; border-radius: 50%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 0; background: var(--wall); box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--wall-2), 0 0 0 8px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow);
  transition: transform .4s ease;
}
.medal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.medal:hover { transform: translateY(-4px); }
.medal:hover img { transform: scale(1.12); }
@media (max-width: 760px) {
  .studio-grid { grid-template-columns: 1fr; }
  .medals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .medal:nth-child(n+4) { display: none; }
}
.studio-media { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.studio-media video, .studio-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; max-width: 100%; background: var(--wall); }
.studio-media .is-video { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; box-shadow: var(--shadow); border-radius: 999px 999px 0 0; }
.portrait::after {
  content: ""; position: absolute; inset: -10px -10px 48px -10px;
  border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.portrait-empty { aspect-ratio: 4 / 5; max-width: 100%; display: grid; place-items: center; border: 1px dashed var(--rule); color: var(--ink-2); font-size: 13px; }
.about-text { max-width: 62ch; }
.about-text h2 { margin-bottom: 28px; }
.about-text p { margin: 0 0 18px; font-size: 17px; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--rule); }
.facts div { padding: 16px 16px 0 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt, .contact-list dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ka"] .facts dt, html[lang="ka"] .contact-list dt { text-transform: none; letter-spacing: .02em; font-size: 12px; }
.facts dd { margin: 4px 0 0; font-family: var(--f-title); font-size: 21px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 340px; margin-inline: 10px; } }

/* Exhibitions */
.exhibitions { margin-top: clamp(56px, 7vw, 96px); }
.exhibitions h3 { font-size: clamp(26px, 3vw, 34px); padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.exh-list { list-style: none; margin: 0; padding: 0; }
.exh-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.exh-year { font-family: var(--f-display); font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.exh-title { font-family: var(--f-title); font-size: 25px; line-height: 1.25; }
.exh-meta { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.exh-side { display: grid; gap: 6px; justify-items: end; text-align: right; font-size: 13px; }
.exh-type { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ka"] .exh-type { text-transform: none; letter-spacing: .02em; font-size: 12px; }
@media (max-width: 640px) {
  .exh-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .exh-side { grid-column: 2; justify-items: start; text-align: left; }
}

/* For collectors (night band) */
.collect-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.collect-head p { font-size: 17px; margin: 20px 0 28px; max-width: 36ch; color: var(--ink-2); }
.collect-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.collect-list { margin: 0; border-top: 1px solid var(--gold); }
.collect-list div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.collect-list dt { font-family: var(--f-title); font-size: 22px; line-height: 1.3; }
.collect-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .collect-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .collect-list div { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.contact-intro { font-size: 17px; max-width: 42ch; margin: 24px 0 32px; }
.contact-list { margin: 0; display: grid; gap: 22px; }
.contact-list dd { margin: 4px 0 0; font-size: 16px; }
.contact-list .selectable { font-size: 22px; font-family: var(--f-title); text-decoration: none; user-select: all; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.inquiry {
  display: grid; gap: 18px; align-content: start; background: var(--wall-2); padding: clamp(22px, 4vw, 44px);
  border-top: 2px solid var(--gold);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--f-body); color: var(--ink); background: var(--wall);
  border: 1px solid var(--rule); border-radius: 0; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field.invalid input, .field.invalid textarea { border-color: var(--sold); }
.artwork-chip { display: flex; }
.artwork-chip input { font-family: var(--f-title); font-size: 19px; }
.chip-x { border: 1px solid var(--rule); border-left: 0; background: var(--wall); color: var(--ink-2); width: 48px; font-size: 20px; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.inquiry .btn { justify-self: start; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: var(--sold); }

/* Footer (night band) */
.site-footer { padding-block: 48px 32px; font-size: 13px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
.footer-name { font-family: var(--f-display); font-size: 30px; }
.footer-top .orn { margin: 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--rule); padding-top: 20px; color: var(--ink-2); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--wall); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lightbox::backdrop { background: rgba(10, 13, 28, .88); }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; position: relative; max-height: calc(100vh - 32px); }
.lb-stage { background: var(--n-bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.lb-image { display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); padding-top: 8px; min-height: 0; overflow: hidden; }
.lb-image img, .lb-image canvas { max-height: calc(100vh - 150px); width: auto; max-width: 100%; height: auto; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.lb-views { justify-self: center; display: flex; border: 1px solid var(--n-rule); margin-top: 16px; border-radius: 999px; overflow: hidden; }
.lb-views button { font: 500 13px/1 var(--f-body); padding: 9px 16px; border: 0; background: transparent; color: var(--n-ink2); cursor: pointer; }
.lb-views button[aria-pressed="true"] { background: var(--n-ink); color: var(--n-bg); }
.lb-wallnote { margin: 0 0 16px; text-align: center; font-size: 12px; color: var(--n-ink2); }
.room { width: 100%; max-width: 900px; height: auto; max-height: calc(100vh - 200px); display: block; }
.lb-label { padding: 56px 28px 28px; display: grid; gap: 10px; align-content: start; overflow-y: auto; }
.lb-label h3 { font-family: var(--f-title); font-size: 32px; }
.lb-meta { margin: 0; color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.lb-status { margin: 0; }
.lb-price { margin: 12px 0 8px; font-family: var(--f-title); font-size: 21px; color: var(--gold); }
.lb-nav { display: flex; gap: 8px; margin-top: 16px; }
.lb-nav .btn { flex: 1; padding: 11px; }
.lb-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; font-size: 26px; line-height: 1;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
@media (max-width: 760px) {
  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-image img, .lb-image canvas { max-height: 60vh; }
  .room { max-height: 55vh; }
  .lb-label { padding: 20px; }
  .lb-close { color: var(--n-ink); }
}

/* ---------- Painting page ---------- */
.wp-hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.wp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.wp-stage { display: grid; justify-items: center; gap: 18px; min-width: 0; }
.wp-stage .lb-views { margin-top: 0; }
.wp-art { position: relative; display: inline-block; max-width: 100%; }
.wp-art img {
  display: block; max-width: 100%; max-height: min(78vh, 900px); width: auto; height: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); cursor: zoom-in;
}
.loupe {
  position: absolute; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background-repeat: no-repeat; background-color: var(--n-bg2);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(11, 14, 29, .55), 0 0 0 8px var(--gold), 0 18px 40px rgba(0,0,0,.6);
}
.wp-room { width: 100%; display: grid; justify-items: center; }
.wp-label { display: grid; gap: 10px; align-content: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.wp-back { font-size: 13px; color: var(--ink-2); text-decoration: none; margin-bottom: 18px; }
.wp-back:hover { color: var(--gold); }
.wp-label h1 { font-family: var(--f-title); font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.wp-native { font-family: "Noto Serif Georgian", serif; color: var(--gold); margin: 0; font-size: 17px; }
.wp-native:empty { display: none; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wp-hint { font-size: 12px; color: var(--ink-2); margin: 4px 0 0; }
.wp-copy { justify-self: start; background: none; border: 0; padding: 0; font: 500 13px/1.4 var(--f-body); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wp-url { font: 13px var(--f-body); padding: 8px 10px; border: 1px solid var(--rule); background: var(--wall-2); color: var(--ink); width: 100%; }
.wp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; }
.wp-pn a { color: var(--ink-2); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-pn a:last-child { text-align: right; }
.wp-pn a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .wp-grid { grid-template-columns: 1fr; }
  .wp-label { position: static; }
  .wp-art img { max-height: 70vh; }
}
.similar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 32px; align-items: start; }
.similar .work { margin: 0; }
.similar .frame:hover { transform: translateY(-4px); outline-color: var(--gold); }
@media (max-width: 860px) { .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Full-screen zoom */
.zoom-view {
  position: fixed; inset: 0; z-index: 50; overflow: auto; background: #07091a; cursor: grab;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.zoom-view.dragging { cursor: grabbing; }
.zoom-view img { display: block; max-width: none; width: auto; height: auto; margin: 0; user-select: none; -webkit-user-drag: none; }
.zoom-close {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #d6a44e; background: rgba(7, 9, 26, .75); color: #f3ebdd; font-size: 26px; line-height: 1; cursor: pointer;
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
