/* ==========================================================================
   LIGHTBOX LOOK: the site's own #lightbox (app.js) dressed in the house look.
   Everything is scoped to #lightbox.lx (the class is set by lightbox-look.js),
   so without the script nothing here applies. No new lightbox, no page layout change.
   House: Fraunces, IBM Plex Mono small caps, cream #ECE6D6, gold #D7B358, soft gold #E7CB78,
   deep olive ground with grain, prints on a cream paper edge, ease cubic-bezier(.16,1,.3,1).
   ========================================================================== */
#lightbox.lx{
  --lx-ease:cubic-bezier(.16,1,.3,1);
  --lx-gold:#D7B358;--lx-gold2:#E7CB78;--lx-cream:#ECE6D6;
  --lx-edge:0px;
  --lx-side:clamp(20px,3.4vw,56px);
  --lx-top:clamp(56px,7vh,76px);
  --lx-bot:clamp(124px,12vh,140px);
  --lxw:min(80vw,1100px);--lxh:min(64vh,700px);
  font-synthesis:none;
}


/* ---- the ground: deep olive near black, a soft light pool behind the picture, grain ---- */
#lightbox.lx .lb-backdrop{
  background:#0b0f0a;
  background-image:radial-gradient(60% 58% at 50% var(--lx-pool-y,44%),rgba(74,86,52,.55) 0%,rgba(36,44,28,.42) 38%,rgba(11,15,10,0) 72%),
                   radial-gradient(120% 90% at 50% 120%,rgba(0,0,0,.55),rgba(0,0,0,0) 60%);
  opacity:0;transition:opacity .62s var(--lx-ease);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
#lightbox.lx .lb-backdrop::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:url(/assets/img/shop-look/grain.png) 0 0/220px 220px repeat;opacity:.13;mix-blend-mode:overlay}
#lightbox.lx.open .lb-backdrop{opacity:1;background-color:rgba(11,15,10,.9);-webkit-backdrop-filter:none;backdrop-filter:none}
#lightbox.lx.open.lb-polished .lb-backdrop{-webkit-backdrop-filter:blur(16px) saturate(.7);backdrop-filter:blur(16px) saturate(.7)}
#lightbox.lx.lx-closing .lb-backdrop{opacity:0;transition:opacity .48s cubic-bezier(.4,0,.2,1)}

/* ---- the picture: large, contain, on a cream paper edge with a soft real shadow ---- */
#lightbox.lx .lb-stage{
  top:calc(var(--lx-top) + (100% - var(--lx-top) - var(--lx-bot)) / 2);
  filter:none;overflow:hidden;background:#151b12;
  box-shadow:0 38px 70px -18px rgba(0,0,0,.62),0 90px 140px -50px rgba(0,0,0,.55);
  transition:box-shadow .5s var(--lx-ease);
  will-change:transform;
}
#lightbox.lx:not(.gm-lb)[data-media-kind="image"] .lb-stage,
#lightbox.lx:not(.gm-lb)[data-media-kind="video"] .lb-stage{width:var(--lxw);height:var(--lxh)}
#lightbox.lx.lb-sliding .lb-stage,#lightbox.lx.open.lb-polished .lb-stage{transition:width .76s cubic-bezier(.45,0,.2,1),height .76s cubic-bezier(.45,0,.2,1),box-shadow .5s var(--lx-ease)}
/* while the frame changes shape between two photos, both fill it (no cream bars); at rest the frame has the photo's ratio, so cover equals contain */
#lightbox.lx.lb-sliding[data-media-kind="image"] .lb-img,#lightbox.lx.lb-sliding .lb-slide-out:not(video){background-size:cover}
/* between two photos the frame dims for a beat (a slide change), it never shows two compositions half and half */
#lightbox.lx.lb-sliding[data-media-kind="image"] .lb-stage{background:#151b12}
#lightbox.lx.lb-sliding[data-media-kind="image"] .lb-img,#lightbox.lx.lb-sliding .lb-slide-out:not(video){background-color:transparent}
#lightbox.lx.rv2-certzoom.lb-polished .lb-stage{transition:width .32s cubic-bezier(.4,0,.2,1),height .32s cubic-bezier(.4,0,.2,1),top .32s cubic-bezier(.4,0,.2,1)}
#lightbox.lx[data-media-kind="video"] .lb-stage{background:#0a0d09;box-shadow:0 38px 70px -18px rgba(0,0,0,.62),0 90px 140px -50px rgba(0,0,0,.55)}
#lightbox.lx.gm-lb .lx-prog{display:none}
#lightbox.lx.gm-lb.gm-lb-hold .lb-stage{box-shadow:none;background:transparent;transition:none}
#lightbox.lx.lx-flying .lb-stage{box-shadow:0 0 0 0 rgba(236,230,214,0),0 0 0 0 rgba(0,0,0,0),0 0 0 0 rgba(0,0,0,0),0 0 0 0 rgba(0,0,0,0);transition:none}
#lightbox.lx .lb-img,#lightbox.lx .lb-slide-out{background-color:#151b12}
#lightbox.lx .lb-vid,#lightbox.lx[data-media-kind="video"] .lb-slide-out{background-color:#0a0d09;border-radius:0}

#lightbox.lx .lb-img,#lightbox.lx .lb-vid{transform:none;transition:opacity .2s ease}
#lightbox.lx.open .lb-img,#lightbox.lx.open .lb-vid{opacity:1;transform:none}
#lightbox.lx.lx-filt .lb-img,#lightbox.lx.lx-filt .lb-vid{filter:var(--lx-filter)}
#lightbox.lx.rv2-certzoom .lb-img{transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .12s ease}
#lightbox.lx.lx-drag .lb-stage{cursor:grabbing}
/* zoom into the photo (owner 2026-11-22, lightbox-look.js): only the picture scales inside its frame, the frame stays.
   Fingers own the photo (pinch, double tap, move), so the browser never pans or zooms the page under it. */
#lightbox.lx .lb-img{transform-origin:50% 50%}
#lightbox.lx .lb-img.lx-zt{transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .2s ease}
#lightbox.lx.open[data-media-kind="image"] .lb-stage,#lightbox.lx.open[data-media-kind="image"] .lb-img{touch-action:none}
@media (hover:hover) and (pointer:fine){
  #lightbox.lx.open[data-media-kind="image"]:not(.rv2-certzoom) .lb-img{cursor:zoom-in}
  #lightbox.lx.open.lx-zoomed:not(.rv2-certzoom) .lb-img{cursor:grab}
  #lightbox.lx.open.lx-zoomed.lx-panning .lb-img{cursor:grabbing}
}

/* ---- controls: no grey discs. Thin gold line work, 44 px hit areas ---- */
#lightbox.lx button{border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--lx-gold)}
#lightbox.lx .lb-prev::before,#lightbox.lx .lb-next::before,#lightbox.lx .lb-close::before{content:none!important;display:none!important}
#lightbox.lx button:hover{background:transparent;border-color:transparent;color:var(--lx-gold2)}
#lightbox.lx button:focus-visible{outline:1px solid var(--lx-gold);outline-offset:4px}
/* close and the arrows show keyboard focus the house way: the gold hairline and soft gold, never a boxed outline */
#lightbox.lx .lb-close:focus-visible,#lightbox.lx .lb-prev:focus-visible,#lightbox.lx .lb-next:focus-visible{outline:none}
#lightbox.lx .lb-close::after{content:"";position:absolute;left:12px;right:10px;bottom:6px;height:1px;background:var(--lx-gold2);transform:scaleX(0);transform-origin:100% 50%;transition:transform .6s var(--lx-ease)}
#lightbox.lx .lb-close:focus-visible::after{transform:scaleX(1)}
#lightbox.lx .lb-close:focus-visible,#lightbox.lx .lb-close:focus-visible .lx-close-l{color:var(--lx-gold2)}
#lightbox.lx .lb-cap,#lightbox.lx .lb-strip,#lightbox.lx .lb-close,#lightbox.lx .lb-prev,#lightbox.lx .lb-next,#lightbox.lx .lx-prog{
  opacity:0;transition:opacity .5s var(--lx-ease),color .25s ease,transform .5s var(--lx-ease)}
#lightbox.lx.open .lb-cap,#lightbox.lx.open .lb-strip,#lightbox.lx.open .lb-close,#lightbox.lx.open .lb-prev,#lightbox.lx.open .lb-next,#lightbox.lx.open .lx-prog{opacity:1}
#lightbox.lx.open.lx-opening .lb-cap,#lightbox.lx.open.lx-opening .lb-strip,#lightbox.lx.open.lx-opening .lb-close,#lightbox.lx.open.lx-opening .lb-prev,#lightbox.lx.open.lx-opening .lb-next,#lightbox.lx.open.lx-opening .lx-prog,
#lightbox.lx.lx-closing .lb-cap,#lightbox.lx.lx-closing .lb-strip,#lightbox.lx.lx-closing .lb-close,#lightbox.lx.lx-closing .lb-prev,#lightbox.lx.lx-closing .lb-next,#lightbox.lx.lx-closing .lx-prog{opacity:0;transition:opacity .18s ease}
#lightbox.lx:not(.open) *{transition:none}

/* close: a thin gold X with a small mono label, top right inside the safe area */
#lightbox.lx .lb-close{
  top:max(clamp(10px,2.2vh,22px),env(safe-area-inset-top));right:max(calc(var(--lx-side) - 12px),env(safe-area-inset-right));left:auto;
  width:auto;min-width:44px;height:44px;padding:0 10px 0 12px;display:flex;align-items:center;gap:12px;flex-direction:row}
#lightbox.lx .lb-close svg{width:18px;height:18px;margin:0;stroke-width:1.15;stroke-linecap:butt;order:2}
#lightbox.lx .lx-close-l{order:1;font:500 11px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.22em;text-transform:uppercase;color:rgba(236,230,214,.72);transition:color .25s ease;white-space:nowrap}
@media (hover:hover){#lightbox.lx .lb-close:hover .lx-close-l{color:var(--lx-gold2)}
#lightbox.lx .lb-close:hover svg{transform:rotate(90deg)}}
#lightbox.lx .lb-close svg{transition:transform .6s var(--lx-ease)}
html[lang="ja"] #lightbox.lx .lx-close-l,html[lang="zh"] #lightbox.lx .lx-close-l,html[lang="hi"] #lightbox.lx .lx-close-l,html[lang="ar"] #lightbox.lx .lx-close-l{letter-spacing:.06em;font-size:12px}
html[dir="rtl"] #lightbox.lx .lb-close{right:auto;left:max(calc(var(--lx-side) - 12px),env(safe-area-inset-left))}

/* prev / next: thin gold line arrows on the picture's sides */
#lightbox.lx .lb-prev,#lightbox.lx .lb-next{
  top:calc(var(--lx-top) + (100% - var(--lx-top) - var(--lx-bot)) / 2);transform:translateY(-50%);
  width:56px;height:56px;z-index:6;color:var(--lx-gold);
  transition:opacity .5s var(--lx-ease),color .25s ease,left .76s cubic-bezier(.45,0,.2,1),right .76s cubic-bezier(.45,0,.2,1)}
#lightbox.lx .lb-prev{left:max(12px,calc(50% - var(--lxw) / 2 - var(--lx-edge) - 76px));right:auto}
#lightbox.lx .lb-next{right:max(12px,calc(50% - var(--lxw) / 2 - var(--lx-edge) - 76px));left:auto}
#lightbox.lx.gm-lb .lb-prev{left:max(12px,calc(50% - var(--gmw,80vw) / 2 - 76px))}
#lightbox.lx.gm-lb .lb-next{right:max(12px,calc(50% - var(--gmw,80vw) / 2 - 76px))}


#lightbox.lx .lb-prev svg,#lightbox.lx .lb-next svg{width:34px;height:14px;stroke-width:1.1;stroke-linecap:butt;stroke-linejoin:miter;overflow:visible;transition:transform .55s var(--lx-ease)}
#lightbox.lx .lb-prev::after,#lightbox.lx .lb-next::after{content:"";position:absolute;left:11px;right:11px;bottom:12px;height:1px;background:rgba(215,179,88,.26);transform:scaleX(.35);transition:transform .6s var(--lx-ease),background .25s ease}
#lightbox.lx .lb-prev:focus-visible::after,#lightbox.lx .lb-next:focus-visible::after{transform:scaleX(1);background:rgba(231,203,120,.6)}
/* Mobile fix 2026-11-16: hover moves only where a real pointer hovers; a tap on iPhone or iPad leaves no arrow shifted */
@media (hover:hover){#lightbox.lx .lb-prev:hover::after,#lightbox.lx .lb-next:hover::after{transform:scaleX(1);background:rgba(231,203,120,.6)}
#lightbox.lx .lb-prev:hover svg{transform:translateX(-4px)}
#lightbox.lx .lb-next:hover svg{transform:translateX(4px)}}
#lightbox.lx .lb-prev:focus-visible,#lightbox.lx .lb-next:focus-visible{color:var(--lx-gold2)}
/* right to left pages: previous on the right pointing right, next on the left pointing left */
html[dir="rtl"] #lightbox.lx .lb-prev{left:auto;right:max(12px,calc(50% - var(--lxw) / 2 - var(--lx-edge) - 76px))}
html[dir="rtl"] #lightbox.lx .lb-next{right:auto;left:max(12px,calc(50% - var(--lxw) / 2 - var(--lx-edge) - 76px))}
html[dir="rtl"] #lightbox.lx .lb-prev svg,html[dir="rtl"] #lightbox.lx .lb-next svg{scale:-1 1}
html[dir="rtl"] #lightbox.lx.gm-lb .lb-prev{left:auto;right:max(12px,calc(50% - var(--gmw,80vw) / 2 - 76px))}
html[dir="rtl"] #lightbox.lx.gm-lb .lb-next{right:auto;left:max(12px,calc(50% - var(--gmw,80vw) / 2 - 76px))}
#lightbox.lx.open.lb-loading .lb-prev,#lightbox.lx.open.lb-loading .lb-next{opacity:.4}

/* ---- the band under the picture: caption left (Fraunces italic, cream), thumbnails centre, counter right (Plex Mono, gold),
        and above them a gold hairline that fills with the position ---- */
#lightbox.lx .lb-cap{
  left:var(--lx-side);right:var(--lx-side);bottom:clamp(18px,2.4vh,26px);top:auto;max-width:none;
  display:grid;grid-template-columns:minmax(0,1fr) min(40vw,560px) minmax(0,1fr);grid-auto-rows:auto;column-gap:clamp(16px,2.4vw,40px);row-gap:5px;
  align-items:end;justify-items:start;pointer-events:none;text-shadow:0 1px 18px rgba(0,0,0,.5)}
#lightbox.lx .lb-cap>*{grid-column:1}
#lightbox.lx .lb-cap__ch{font:500 10.5px/1.2 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.24em;text-transform:uppercase;color:var(--lx-gold)}
#lightbox.lx .lb-cap__t{font-family:"Fraunces",Georgia,"Times New Roman",serif;font-style:italic;font-weight:300;font-size:clamp(17px,1.28vw,23px);line-height:1.26;letter-spacing:0;color:var(--lx-cream);
  max-width:100%;font-variation-settings:"opsz" 48,"SOFT" 50;text-transform:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  box-sizing:border-box;padding-inline-end:.2em}/* RT-08: room for the italic overhang of the last letter inside the clamp */
#lightbox.lx .lb-cap__t:empty{display:none}
#lightbox.lx .lb-cap__d{font-size:12.5px;line-height:1.45;color:rgba(236,230,214,.6);max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
#lightbox.lx .lb-cap__i{grid-column:3;grid-row:1 / span 4;align-self:end;justify-self:end;
  font:500 11px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.24em;color:var(--lx-gold);white-space:nowrap;direction:ltr;padding-bottom:5px}
#lightbox.lx.lb-single .lb-cap__i{display:none}
html[lang="ja"] #lightbox.lx .lb-cap__t,html[lang="zh"] #lightbox.lx .lb-cap__t,html[lang="hi"] #lightbox.lx .lb-cap__t,html[lang="ar"] #lightbox.lx .lb-cap__t{font-style:normal;font-size:clamp(15px,1.1vw,19px)}

#lightbox.lx .lx-prog{position:absolute;z-index:4;left:var(--lx-side);right:var(--lx-side);bottom:calc(var(--lx-bot) - 28px);height:1px;background:rgba(215,179,88,.17);pointer-events:none;overflow:hidden}
#lightbox.lx .lx-prog i{position:absolute;inset:0;background:linear-gradient(90deg,rgba(215,179,88,.5),var(--lx-gold));transform-origin:0 50%;transform:scaleX(var(--lx-p,0));transition:transform .8s var(--lx-ease)}
html[dir="rtl"] #lightbox.lx .lx-prog i{transform-origin:100% 50%;background:linear-gradient(270deg,rgba(215,179,88,.5),var(--lx-gold))}
#lightbox.lx.lb-single .lx-prog{display:none}

/* ---- thumbnails: small prints, a gold rule under the one shown ---- */
#lightbox.lx .lb-strip{left:50%;right:auto;width:min(40vw,560px);transform:translateX(-50%);bottom:clamp(18px,2.4vh,26px);gap:8px;padding:2px 2px 8px;align-items:flex-end;justify-content:safe center}
#lightbox.lx .lb-thumb{position:relative;flex:0 0 auto;padding:0;width:54px;height:38px;border-radius:0;background-color:#141a12;opacity:.42;box-shadow:none;overflow:visible;transition:opacity .45s var(--lx-ease),transform .45s var(--lx-ease)}
#lightbox.lx .lb-thumb__img{position:relative;z-index:0}
#lightbox.lx .lb-thumb::after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:1px;background:var(--lx-gold);transform:scaleX(0);transition:transform .6s var(--lx-ease)}
@media (hover:hover){#lightbox.lx .lb-thumb:hover{opacity:.78}}
#lightbox.lx .lb-thumb.on{opacity:1;box-shadow:none;transform:translateY(-2px)}
#lightbox.lx .lb-thumb.on::after{transform:scaleX(1)}
#lightbox.lx .lb-thumb:focus-visible{outline:1px solid var(--lx-gold);outline-offset:3px}
#lightbox.lx .lb-thumb--vid::before{content:"\25B6";position:absolute;inset:0;z-index:1;display:grid;place-items:center;font-size:.6rem;color:rgba(236,230,214,.9);pointer-events:none}
#lightbox.lx .lb-thumb--vid::after{content:"";font-size:0;inset:auto 0 -7px 0;display:block}

/* ---- phones: no arrows (swipe), the picture nearly full width, the band stacked ---- */
@media (max-width:820px){
  #lightbox.lx{--lx-side:16px;--lx-top:62px;--lx-bot:150px;--lx-edge:0px}
  #lightbox.lx.lb-single{--lx-bot:100px}
  #lightbox.lx .lb-prev,#lightbox.lx .lb-next{display:none!important}
  #lightbox.lx .lb-cap{grid-template-columns:minmax(0,1fr) auto;bottom:76px}
  /* a wide photo on a phone: the caption sits right under the print instead of far below it */
  #lightbox.lx.open[data-media-kind="image"]:not(.gm-lb) .lb-cap{bottom:auto;top:min(calc(var(--lx-top) + (100% - var(--lx-top) - var(--lx-bot)) / 2 + var(--lxh) / 2 + var(--lx-edge) + 18px),calc(100% - 76px - 3.4em));transition:opacity .5s var(--lx-ease),top .76s cubic-bezier(.45,0,.2,1)}
  #lightbox.lx.lb-single .lb-cap{bottom:24px}
  #lightbox.lx .lb-cap__i{grid-column:2}
  #lightbox.lx .lb-cap__t{font-size:17px}
  #lightbox.lx .lx-prog{bottom:62px}
  #lightbox.lx .lb-strip{left:16px;right:16px;width:auto;transform:none;bottom:14px;justify-content:flex-start}
  #lightbox.lx .lb-thumb{width:46px;height:34px}
  #lightbox.lx .lb-close{top:max(10px,env(safe-area-inset-top));right:max(6px,env(safe-area-inset-right))}
  #lightbox.lx.open .lb-img{touch-action:pan-y}
}
@media (min-width:821px){
  :where(.touch-layout) #lightbox.lx .lb-prev,:where(.touch-layout) #lightbox.lx .lb-next{width:56px;height:64px;background:transparent;border:0}
}
@media (prefers-reduced-motion:reduce){
  #lightbox.lx .lb-stage,#lightbox.lx.lb-sliding .lb-stage,#lightbox.lx.open.lb-polished .lb-stage{transition:none}
  #lightbox.lx .lx-prog i,#lightbox.lx .lb-thumb,#lightbox.lx .lb-prev,#lightbox.lx .lb-next{transition:opacity .2s ease}
  #lightbox.lx .lb-img.lx-zt{transition:opacity .2s ease}
}

/* ==========================================================================
   On the pages: every content photo opens. Pointer cursor and a small gold zoom cue.
   ========================================================================== */
#app .zoomable,#app .lx-zoom{cursor:pointer}
#app .lx-zoom{pointer-events:auto}
#app .zoomable:focus-visible,#app .lx-zoom:focus-visible{outline:1px solid #D7B358;outline-offset:4px}
.lx-cue{position:fixed;z-index:60;left:0;top:0;width:34px;height:34px;pointer-events:none;opacity:0;
  transform:translate3d(var(--x,0),var(--y,0),0) scale(.7);transition:opacity .35s cubic-bezier(.16,1,.3,1),transform .55s cubic-bezier(.16,1,.3,1);
  color:#E7CB78;display:grid;place-items:center;background:rgba(11,15,10,.46);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lx-cue.on{opacity:1;transform:translate3d(var(--x,0),var(--y,0),0) scale(1)}
.lx-cue svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:butt;stroke-linejoin:miter;transition:transform .55s cubic-bezier(.16,1,.3,1);transform:scale(.8)}
.lx-cue.on svg{transform:scale(1)}
.lx-hot,.lx-hot canvas{cursor:pointer!important}
/* an empty layer of the page over a photograph: the pointer says the photo under it opens */
#app .lx-pt{cursor:pointer}
@media (hover:none){.lx-cue{display:none}}
@media (prefers-reduced-motion:reduce){.lx-cue{transition:opacity .2s ease}}
/* the family room card opens the frame's photograph */
.rr-card .rr-card__h.lx-zoom{cursor:pointer}
.rr-card .rr-card__h.lx-zoom:hover .rr-card__title{color:#E7CB78}
/* film watch pages (/videos/..., debug fix 2026-11-16): the player takes the film's own shape (--lx-wr, width / height
   of the film, set by lightbox-look.js), so a portrait film sits in no wide dark mat; the back arrow points back on
   right to left pages */
.watch-player{width:min(100%,calc(min(75vh,820px) * var(--lx-wr,99)));margin-inline:auto}
/* the film shapes in use, read from the video's size attributes, so the player has its width at first paint (no shift) */
.watch-player:has(>video[width="720"][height="1280"]),.watch-player:has(>video[width="2160"][height="3840"]){--lx-wr:.5625}
.watch-player:has(>video[width="1280"][height="2276"]){--lx-wr:.5624}
.watch-player:has(>video[width="1280"][height="720"]),.watch-player:has(>video[width="1920"][height="1080"]),.watch-player:has(>video[width="3840"][height="2160"]){--lx-wr:1.7778}
.watch-player:has(>video[width="1180"][height="664"]){--lx-wr:1.7771}
.watch-player video{height:auto}
html[dir="rtl"] .watch-head .back span{display:inline-block;transform:scaleX(-1)}

/* Mobile fix 2026-11-16 (lightbox on every route)
   1. thumbnails on touch screens: the print keeps its size (46x34 phone, 54x38 iPad), a transparent band above and below it
      makes the tap target 44 px tall. The band is taken from the strip's own bottom padding, so no print moves. */
:where(html.touch-layout){
  #lightbox.lx .lb-thumb{--lxt-pad:3px;height:44px;padding:var(--lxt-pad) 0;box-sizing:border-box;background-clip:content-box}
  #lightbox.lx .lb-strip{padding-bottom:calc(8px - var(--lxt-pad,3px))}
  #lightbox.lx .lb-thumb::after{bottom:calc(var(--lxt-pad) - 7px)}
  #lightbox.lx .lb-thumb--vid::before{inset:var(--lxt-pad) 0}
}
@media (max-width:820px) and (pointer:coarse){
  #lightbox.lx .lb-thumb{--lxt-pad:5px;height:44px}
  #lightbox.lx .lb-strip{padding-bottom:3px}
}
/* 2. phones: the small mono words of the lightbox (Close, the chapter line, the counter) at 12 px */
@media (max-width:767px),(max-height:500px) and (pointer:coarse){
  #lightbox.lx .lx-close-l{font-size:12px;letter-spacing:.16em}
  #lightbox.lx .lb-cap__ch{font-size:12px;letter-spacing:.16em}
  #lightbox.lx .lb-cap__i{font-size:12px;letter-spacing:.16em}
}

/* WebKit mobile 2026-11-16 (LB-LOCK). Touch screens: no 16 px blur behind the lightbox (a full screen backdrop filter is
   the costliest thing Safari draws while a picture flies in); the ground is a touch darker instead. The page behind stays
   still (lightbox-look.js fixes the body while it is open), and a pull on the ground never scrolls the page. */
:where(html.touch-layout){
  #lightbox.lx.open.lb-polished .lb-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:rgba(11,15,10,.95)}
  #lightbox.lx.open{overscroll-behavior:contain}
  #lightbox.lx.open .lb-backdrop{touch-action:none}
}

/* The lightbox positions the page while it returns focus to the last source. */
html.lx-scroll-held,html.lx-scroll-held body{overflow-anchor:none}
