/* Gallery "Mostra", second build: the living wall. Scoped to the gallery view; everything hangs on section.eg-sec.gm-on,
   a class the script sets only while its own build is in place. Without the script the old wall shows unchanged. */

/* while the script is present the old wall never paints or loads its thumbs (the script removes .gm-pre if its build fails) */
html.gm-pre body[data-view="gallery"] .eg-sec .eg img,html.gm-pre body[data-view="gallery"] .eg-sec .eg video{display:none}
html.gm-pre body[data-view="gallery"] .eg-sec:not(.gm-on)>.wrap{visibility:hidden}
body[data-view="gallery"] .eg-sec.gm-on{padding:0;position:relative;background:#151C14;overflow:visible}
body[data-view="gallery"] .eg-sec.gm-on>.wrap{position:absolute;inset:0;max-width:none;padding:0;margin:0;pointer-events:none}
body[data-view="gallery"] .eg-sec.gm-on .eg-lead{display:none}
/* the original tiles stay in the DOM as 1 px anchors for the full screen view */
body[data-view="gallery"] .eg-sec.gm-on .eg{position:absolute;left:0;top:0;width:100%;height:100%;columns:auto;margin:0;visibility:hidden;opacity:0;pointer-events:none}
body[data-view="gallery"] .eg-sec.gm-on .eg>*{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;border-radius:0}
body[data-view="gallery"] .eg-sec.gm-on .eg>*::after{display:none}

.gm{
  --gm-ground:#151C14;--gm-paper:#ECE6D6;--gm-gold:#D7B358;--gm-green:#A9BE3F;--gm-leaf:#1F2E17;
  --gm-serif:Fraunces,Georgia,serif;--gm-mono:"IBM Plex Mono",ui-monospace,monospace;
  --gm-g:8px;--gm-row:120px;--gm-m:3vw;
  position:relative;color:var(--gm-paper);background:var(--gm-ground);isolation:isolate;overflow-x:clip;
}
.gm *{box-sizing:border-box}
.gm-cap{font-family:var(--gm-serif);font-style:italic;font-weight:300;font-size:clamp(17px,1.15vw,22px);line-height:1.25;letter-spacing:0;font-optical-sizing:auto}
.gm[data-script="other"] .gm-cap,.gm[data-script="other"] .gm-line em,.gm[data-script="other"] .gm-name{font-style:normal}

/* ---------- a picture: a real button ---------- */
.gm-c{appearance:none;-webkit-appearance:none;border:0;padding:0;margin:0;background:#1a2317;color:inherit;display:block;border-radius:0;overflow:hidden;position:relative;cursor:zoom-in;-webkit-tap-highlight-color:transparent;outline:none;text-align:start;font:inherit;min-width:0;min-height:0}
.gm-i{display:block;max-width:none;object-fit:cover;opacity:0;transition:opacity .6s cubic-bezier(.2,.7,.2,1);user-select:none;-webkit-user-drag:none;pointer-events:none;backface-visibility:hidden}
.gm-i.is-in{opacity:1}
.gm-c:focus-visible{outline:2px solid var(--gm-gold);outline-offset:-5px;z-index:8}
.gm-c:focus-visible::before{content:"";position:absolute;inset:0;z-index:2;box-shadow:inset 0 0 0 2px var(--gm-gold),inset 0 0 0 5px rgba(21,28,20,.55);pointer-events:none}
.gm-away{visibility:hidden!important}
.gm-play{position:absolute;inset-inline-end:12px;top:12px;z-index:2;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(21,28,20,.6);box-shadow:inset 0 0 0 1px rgba(215,179,88,.6);pointer-events:none}
.gm-play::before{content:"";width:0;height:0;border-style:solid;border-width:4px 0 4px 7px;border-color:transparent transparent transparent var(--gm-gold);margin-inline-start:2px}
[dir="rtl"] .gm-play::before{transform:scaleX(-1)}
/* the tiny caption: appears with the pointer or the focus */
.gm-k{position:absolute;inset-inline:14px;bottom:11px;z-index:3;font-family:var(--gm-serif);font-style:italic;font-weight:300;font-size:15px;line-height:1.2;color:var(--gm-paper);opacity:0;transform:translateY(6px);transition:opacity .3s,transform .5s cubic-bezier(.2,.7,.2,1);pointer-events:none;text-shadow:0 1px 10px rgba(0,0,0,.55)}
.gm[data-script="other"] .gm-k{font-style:normal}
.gm-c::after{content:"";position:absolute;inset:auto 0 0 0;height:46%;z-index:1;background:linear-gradient(180deg,rgba(12,16,10,0),rgba(12,16,10,.66));opacity:0;transition:opacity .35s;pointer-events:none}
.gm-s .gm-k,.gm-s::after{display:none}
@media(hover:hover){
  .gm-w:hover .gm-k,.gm-d:hover .gm-k{opacity:1;transform:none}
  .gm-w:hover::after,.gm-d:hover::after{opacity:1}
  .gm-w .gm-i,.gm-d .gm-i{transition:opacity .6s cubic-bezier(.2,.7,.2,1),scale 1.1s cubic-bezier(.2,.7,.2,1)}
  .gm--live .gm-w:hover .gm-i,.gm--live .gm-d:hover .gm-i{scale:1.035}
}
.gm-w:focus-visible .gm-k,.gm-d:focus-visible .gm-k{opacity:1;transform:none}
.gm-w:focus-visible::after,.gm-d:focus-visible::after{opacity:1}

/* ---------- the wall: bands on the strict grid, edge to edge ---------- */
.gm-wall{position:relative;display:grid;gap:var(--gm-g);padding:var(--gm-g) 0;background:var(--gm-ground)}
.gm-band{display:grid;grid-template-columns:repeat(var(--gm-cols),minmax(0,1fr));grid-auto-rows:var(--gm-row);gap:var(--gm-g)}
.gm-w .gm-i{position:absolute;left:0;top:-9%;width:100%;height:118%}
.gm--calm .gm-w .gm-i,.gm--still .gm-w .gm-i{top:0;height:100%}
.gm-measuring .gm-w{transform:none!important}

/* ---------- scenes ---------- */
.gm-scene{position:relative}
.gm-stage{position:sticky;top:0;height:100vh;height:100svh;width:100%;overflow:hidden;overflow:clip;contain:layout paint}
.gm-ground{position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(180deg,#151C14 0,#1a2416 52%,#222E18 100%)}
.gm-passage{position:absolute;left:0;right:0;top:0;height:74%;background:url(/assets/img/gallery-look/passage.webp) 50% 0/cover no-repeat;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,.9) 16%,rgba(0,0,0,.75) 46%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,.9) 16%,rgba(0,0,0,.75) 46%,rgba(0,0,0,0) 100%)}
.gm-pool{position:absolute;inset:0;background:
  radial-gradient(60vw 70vh at 24% 40%,rgba(236,230,214,.10),rgba(236,230,214,0) 70%),
  radial-gradient(90vw 50vh at 60% 108%,rgba(169,190,63,.10),rgba(169,190,63,0) 70%)}
[dir="rtl"] .gm-pool{transform:scaleX(-1)}
.gm-grain{position:absolute;inset:0;background:url(/assets/img/gallery-look/grain.png) 0 0/128px 128px;opacity:.09;pointer-events:none}
.gm-s{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;backface-visibility:hidden}
.gm-s .gm-i{position:absolute;left:50%;top:50%;will-change:transform}
.gm-lab{position:absolute;z-index:6;inset-inline-start:var(--gm-m);bottom:6%;opacity:0;pointer-events:none;color:var(--gm-paper);text-shadow:0 1px 16px rgba(0,0,0,.6)}
.gm-lab i,.gm-end i,.gm-calmend i{display:block;width:56px;height:1px;background:var(--gm-gold);margin-bottom:12px}

/* the door: the section's own line set large, pictures in front of it */
.gm-open{position:absolute;z-index:1;inset:0;pointer-events:none;will-change:transform,opacity}
.gm-line{position:absolute;inset-inline-start:var(--gm-m);top:12%;margin:0;font-family:var(--gm-serif);font-weight:300;font-size:13.5vw;line-height:.86;letter-spacing:-.04em;font-variation-settings:"opsz" 144;color:var(--gm-paper);white-space:nowrap}
.gm-line em{display:block;font-style:italic;font-weight:300;color:var(--gm-paper);padding-inline-start:.06em}
.gm[data-script="other"] .gm-line{letter-spacing:0;line-height:1.05}
.gm-lead{position:absolute;inset-inline-start:var(--gm-m);bottom:9%;margin:0;max-width:19ch;font-family:var(--gm-serif);font-weight:300;font-size:clamp(20px,1.5vw,29px);line-height:1.22;color:rgba(236,230,214,.9);text-wrap:balance}
.gm-lead::before{content:"";display:block;width:56px;height:1px;background:var(--gm-gold);margin-bottom:16px}

/* the word in depth: behind the oil and the harvester, in front of the rest */
.gm-dim{position:absolute;inset:0;z-index:2;background:rgba(13,18,11,.46);pointer-events:none}
.gm-word{position:absolute;top:50%;left:0;z-index:3;white-space:nowrap;font-family:var(--gm-serif);font-style:italic;font-weight:300;font-size:31vw;line-height:1.1;letter-spacing:-.04em;font-variation-settings:"opsz" 144;color:var(--gm-paper);pointer-events:none;will-change:transform}
.gm-word span{display:inline-block;padding:0 .08em}
.gm-front{box-shadow:0 40px 90px -10px rgba(4,7,3,.85)}
/* (mobile fix 2026-11-16, look-05) on phones, iPads and narrow windows the front pictures covered most of the word (only
   fragments like "sa", "cla" showed): there it passes in front of every picture, with a soft shadow to read over them.
   Desktop with a mouse keeps the word in depth. */
@media (pointer:coarse),(max-width:820px){
  .gm-word{z-index:5;text-shadow:0 2px 34px rgba(8,12,6,.5)}
}

/* the rising row on paper: the caption of the middle picture is the big line, the pictures stand in front of it */
.gm-paper{position:absolute;inset:0;z-index:0;pointer-events:none;background:
  url(/assets/img/gallery-look/grain.png) 0 0/128px 128px,
  radial-gradient(70vw 60vh at 22% 18%,rgba(255,249,225,.9),rgba(255,249,225,0) 70%),
  linear-gradient(180deg,#ECE6D6,#DCD2B6);background-blend-mode:multiply,normal,normal}
.gm-name{position:absolute;z-index:1;inset-inline:var(--gm-m);top:5%;font-family:var(--gm-serif);font-style:italic;font-weight:300;font-size:9.4vw;line-height:.88;letter-spacing:-.04em;font-variation-settings:"opsz" 144;color:var(--gm-leaf);pointer-events:none;will-change:transform,opacity}
.gm-name span{display:block;max-width:8.2ch;text-wrap:balance}
.gm-scene--rise .gm-s{box-shadow:0 30px 60px -28px rgba(31,46,23,.55)}

/* the drift: two rows of large pictures, moving against each other */
.gm-row{position:absolute;inset-inline-start:0;display:flex;gap:var(--gm-g);will-change:transform}
.gm-row--a{top:0}.gm-row--b{bottom:0}
.gm-d{flex:none;height:100%}
.gm-d .gm-i{position:absolute;inset:0;width:100%;height:100%}

/* the closer */
.gm-shade{position:absolute;inset:0;z-index:4;background:linear-gradient(180deg,rgba(12,10,8,0) 38%,rgba(12,10,8,.66) 100%);opacity:0;pointer-events:none}
.gm-end{position:absolute;z-index:5;inset-inline-start:var(--gm-m);bottom:8%;max-width:80vw;opacity:0;pointer-events:none;will-change:transform,opacity}
.gm-endline{margin:0 0 .28em;font-family:var(--gm-serif);font-weight:300;font-size:5.4vw;line-height:.96;letter-spacing:-.03em;font-variation-settings:"opsz" 144;max-width:17ch;text-wrap:balance;color:var(--gm-paper)}
.gm[data-script="other"] .gm-endline{letter-spacing:0;line-height:1.15}

/* ---------- the full screen view, when opened from this wall: larger, and the picture flies ---------- */
.lightbox.gm-lb[data-media-kind="image"] .lb-stage,.lightbox.gm-lb[data-media-kind="video"] .lb-stage{width:var(--gmw,min(86vw,1100px));height:var(--gmh,min(68vh,700px));top:47%}
.lightbox.gm-lb .lb-cap{text-shadow:0 1px 14px rgba(0,0,0,.8)}
.lightbox.gm-lb-hold .lb-img{opacity:0!important;transition:none!important}
.gm-fly{position:fixed;z-index:260;left:0;top:0;overflow:hidden;pointer-events:none;transform-origin:0 0;will-change:transform,clip-path}
.gm-fly img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.gm-veil{position:fixed;inset:0;z-index:255;background:rgba(10,13,9,.93);pointer-events:none}

/* ---------- phone ---------- */
@media(max-width:820px){
  .gm{--gm-m:5vw}
  .gm-line{top:8%;font-size:20vw}
  .gm-lead{bottom:auto;top:calc(8% + 40vw);font-size:19px;max-width:24ch}
  .gm-lead::before{margin-bottom:12px;width:40px}
  .gm-word{font-size:60vw}
  .gm-name{font-size:17vw;top:7%}
  .gm-endline{font-size:10.5vw;max-width:12ch}
  .gm-end{bottom:10%}
  .gm-k{display:none}.gm-c::after{display:none}
  /* (owner round 2026-11-16 night) a tighter shadow under the front pictures: less to draw on every frame of the word scene */
  .gm-front{box-shadow:0 22px 44px -14px rgba(4,7,3,.8)}
  .gm-play{width:22px;height:22px;inset-inline-end:8px;top:8px}
  .lightbox.gm-lb[data-media-kind="image"] .lb-stage,.lightbox.gm-lb[data-media-kind="video"] .lb-stage{top:45%}
}

/* ---------- the calm collage (reduced motion): no pinned scenes, no drift, the same wall ---------- */
.gm-calmhead{position:relative;min-height:62vh;overflow:hidden}
.gm-calmhead .gm-open{position:relative;inset:auto;padding:16vh var(--gm-m) 9vh}
.gm-calmhead .gm-line,.gm-calmhead .gm-lead{position:relative;inset:auto;top:auto;bottom:auto}
.gm-calmhead .gm-line{white-space:normal}
.gm-calmhead .gm-lead{margin-top:5vh}
.gm-calmword{position:relative;overflow:hidden;text-align:center;white-space:nowrap;font-family:var(--gm-serif);font-style:italic;font-weight:300;font-size:13.4vw;line-height:1;letter-spacing:-.04em;font-variation-settings:"opsz" 144;padding:5vh 0 6vh;background:linear-gradient(180deg,#151C14,#222E18)}
.gm-calmword span{position:relative}
.gm-calmend{position:relative;padding:14vh var(--gm-m) 12vh;background:linear-gradient(180deg,#151C14,#222E18)}
.gm-calmend .gm-endline{position:relative}
.gm-calmend i{position:relative}
@media(prefers-reduced-motion:reduce){.gm-i,.gm-k,.gm-c::after{transition:none}}

/* the estate's own film of the first flow is graded warm; the oil is shown green everywhere on this site */
.gm-c[data-id="gallery-pour"] .gm-i,.lightbox.gm-lb[data-gm-id="gallery-pour"] .lb-vid,.lightbox.gm-lb[data-gm-id="gallery-pour"] .lb-img,.lightbox .lb-thumb__img[src*="gallery-pour"]{filter:hue-rotate(15deg) saturate(1.04)}
.gm[data-script="other"] .gm-name{font-size:6vw;line-height:1.12;letter-spacing:0}
.gm[data-script="other"] .gm-name span{max-width:12em}
@media(max-width:820px){.gm[data-script="other"] .gm-name{font-size:11vw}}

/* Owner round 2026-11-15g: the hero shows only the photograph and its title. The corner labels (eyebrow, breadcrumb,
   the line at the right) and the four gold corner ticks are not shown; the text stays in the DOM for the wall's script. */
body[data-view="gallery"] #app .ea-hero .eyebrow,
body[data-view="gallery"] #app .ea-hero .crumbs,
body[data-view="gallery"] #app .ea-hero .ea-hero__sub,
body[data-view="gallery"] #app .ea-hero .hi-frame{display:none!important}
/* Checklist round 2026-11-17 (L21, L26): no hard edge where the hero meets the wall. The hero ends in its own dark,
   and that dark runs on over the top of the wall and thins out, so the first scene comes up out of it. Taps pass through. */
body[data-view="gallery"] .eg-sec.gm-on::before{content:"";position:absolute;left:0;right:0;top:0;height:clamp(110px,18vh,240px);z-index:9;pointer-events:none;background:linear-gradient(180deg,rgb(13,18,12) 0,rgba(13,18,12,.82) 22%,rgba(13,18,12,.45) 55%,rgba(13,18,12,.14) 82%,rgba(13,18,12,0) 100%)}
/* phones: the first scene's title sits close under the seam, so the run of dark is shorter and never lies over the words */
@media(max-width:820px){body[data-view="gallery"] .eg-sec.gm-on::before{height:56px}}

/* The touch gallery reads in document order, including while Safari's toolbar changes height. */
:where(html.touch-layout) .gm-calmhead { min-height:0; }
:where(html.touch-layout) .gm-calmhead .gm-open { padding:64px var(--gm-m) 30px; }
:where(html.touch-layout) .gm-calmhead .gm-line { max-width:100%; overflow-wrap:anywhere; }
:where(html.touch-layout) .gm-calmhead .gm-lead { margin:24px 0 0; }
