/* One album — mockup A «المرسم» on a white room (24 Nov 2026). Text, side card and stacks come from w-single /
   w-evsingle / w-gallist; here: the room (wall, oak floor, easel, brass picture light, velvet curtain on the canvas,
   round table with the pile of prints), the museum label, the sheet of all photos, newer / older, the viewer.
   Everything in the room is measured in parts of the scene's width (cqw), so it scales as one picture. The canvas
   takes the shape of the photo: --ra (width / height) is written by the page and by w-album.js; the size follows. */

/* the section: white wall to the sides of the scene on very wide screens, the floor carried on */
.mab-stage{
  --sw:min(100vw, 1800px, max(980px, calc((100svh - 92px) * 2)));
  position:relative;overflow:hidden;padding-top:calc(84px + env(safe-area-inset-top,0px));
  background:linear-gradient(0deg,var(--mct-oak-d),var(--mct-oak) calc(var(--sw) * .08),var(--mct-wall-2) calc(var(--sw) * .08 + 1px),var(--mct-wall) 70%)}
body.admin-bar .mab-stage{padding-top:calc(116px + env(safe-area-inset-top,0px))}
.mab-scene{position:relative;container:mab / inline-size;width:var(--sw);max-width:100%;margin-inline:auto}

/* ===== the room ===== */
.mab-room{
  --fl:8;--lb:19;--mw:36;--mh:24;--ra:1.5;
  --cw:min(calc(var(--mw) * 1cqw), calc(var(--mh) * var(--ra) * 1cqw));
  --ch:calc(var(--cw) / var(--ra));
  position:relative;aspect-ratio:2/1;overflow:hidden;user-select:none;-webkit-user-select:none}
.mab-wall{position:absolute;inset:0;background:linear-gradient(180deg,var(--mct-wall),var(--mct-wall-2))}
.mab-pan{position:absolute;inset:3cqw 2cqw auto;height:calc(100% - 3cqw - var(--fl) * 1cqw - 15cqw);display:flex;gap:1.6cqw}
.mab-pan.is-lo{inset:auto 2cqw calc(var(--fl) * 1cqw + 1.6cqw);height:10cqw}
.mab-pan i{flex:1;border-radius:.3cqw;box-shadow:inset 0 0 0 .22cqw rgb(var(--mct-ink-rgb) / .07),inset .3cqw .3cqw 0 .22cqw rgb(255 255 255 / .7),inset 0 0 2.4cqw rgb(var(--mct-ink-rgb) / .045)}
.mab-rail{position:absolute;inset-inline:0;bottom:calc(var(--fl) * 1cqw + 12.6cqw);height:.9cqw;background:linear-gradient(180deg,#fff,rgb(var(--mct-ink-rgb) / .1));box-shadow:0 .3cqw .5cqw -.2cqw rgb(var(--mct-ink-rgb) / .15)}
.mab-floor{position:absolute;inset:auto 0 0;height:calc(var(--fl) * 1cqw);background:repeating-linear-gradient(90deg,transparent 0 11cqw,rgb(var(--mct-ink-rgb) / .14) 11cqw 11.12cqw),linear-gradient(180deg,var(--mct-oak),var(--mct-oak-d))}
.mab-floor::before{content:"";position:absolute;inset:0 0 auto;height:.8cqw;background:linear-gradient(180deg,rgb(var(--mct-ink-rgb) / .28),transparent)}
/* the lamp's warm light on the wall and the floor, the canvas' soft shadow */
.mab-glow{position:absolute;inset:0;pointer-events:none;animation:mab-fade 1.4s .4s both;
  background:radial-gradient(ellipse 30cqw 24cqw at var(--gx,50%) calc(100% - var(--lb) * 1cqw - var(--ch) * .6),rgb(var(--mct-lamp-rgb) / .3),transparent 70%),
             radial-gradient(ellipse 22cqw 2.6cqw at 50% calc(100% - var(--fl) * 1cqw + 1cqw),rgb(var(--mct-ink-rgb) / .2),transparent 70%)}
.mab-shade{position:absolute;left:50%;bottom:calc(var(--lb) * 1cqw - 1.4cqw);width:calc(var(--cw) + 3cqw);height:calc(var(--ch) + 1cqw);translate:-48% 0;background:rgb(var(--mct-ink-rgb) / .22);filter:blur(1.8cqw);transition:width .6s cubic-bezier(.6,.05,.3,1),height .6s cubic-bezier(.6,.05,.3,1)}
@keyframes mab-fade{from{opacity:0}to{opacity:1}}

/* easel: matte beech, wood only. Two front legs lean in toward a meeting point hidden behind the canvas (--fx foot offset, --lv meeting height,
   both in cqw), a darker back leg, a crossbar at --cy, the centre post standing on it. Grain = noise in a mask, no colour in it. */
.mab-room{--fx:8.6;--lv:40;--cy:3.6;
  --mab-gv:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='600' preserveAspectRatio='none'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55 0.008' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 0 0 0 -0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --mab-gh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='80' preserveAspectRatio='none'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.55' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 0 0 0 -0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E")}
.mab-wd{position:absolute;background:linear-gradient(90deg,var(--mct-wood-l) 0 12%,var(--mct-wood) 32% 70%,var(--mct-wood-d))}
.mab-wd::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:var(--mct-wood-d);opacity:.45;-webkit-mask:var(--g,var(--mab-gv)) 0 0/100% 100%;mask:var(--g,var(--mab-gv)) 0 0/100% 100%}
.mab-mast{left:50%;bottom:calc((var(--fl) + var(--cy)) * 1cqw);width:1.9cqw;translate:-50% 0;height:calc((var(--lb) - var(--fl) - var(--cy)) * 1cqw + var(--ch) + 5cqw);border-radius:.15cqw .15cqw 0 0;transition:height .6s cubic-bezier(.6,.05,.3,1)}
.mab-leg{bottom:calc(var(--fl) * 1cqw - .15cqw);width:1.75cqw;height:calc((var(--lb) - var(--fl) + 10) * 1.02cqw);transform-origin:50% 100%;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);
  background:linear-gradient(180deg,transparent 55%,rgb(var(--mct-ink-rgb) / .22)),linear-gradient(90deg,var(--mct-wood-l) 0 14%,var(--mct-wood) 34% 70%,var(--mct-wood-d))}
.mab-leg.is-a{left:calc(50% - var(--fx) * 1cqw - .875cqw);rotate:atan2(var(--fx),var(--lv))}
.mab-leg.is-b{left:calc(50% + var(--fx) * 1cqw - .875cqw);rotate:calc(-1 * atan2(var(--fx),var(--lv)))}
.mab-leg.is-c{left:calc(50% + .9cqw);bottom:calc(var(--fl) * 1cqw + .4cqw);width:1.4cqw;height:calc((var(--lb) - var(--fl) + 4) * 1cqw);rotate:-5deg;clip-path:none;filter:brightness(.62)}
.mab-cross{left:50%;translate:-50% 0;bottom:calc((var(--fl) + var(--cy)) * 1cqw);width:calc((var(--fx) * (1 - var(--cy) / var(--lv)) * 2 + 1.6) * 1cqw);height:1.15cqw;--g:var(--mab-gh);
  background:linear-gradient(180deg,var(--mct-wood-l),var(--mct-wood) 35%,var(--mct-wood-d));box-shadow:0 .35cqw .5cqw -.15cqw rgb(var(--mct-ink-rgb) / .35)}
/* where the three feet touch the floor */
.mab-feet{position:absolute;left:50%;translate:-50% 0;bottom:calc(var(--fl) * 1cqw - 1.1cqw);width:calc((var(--fx) * 2 + 5) * 1cqw);height:2cqw;filter:blur(.15cqw);pointer-events:none;
  background:radial-gradient(closest-side,rgb(var(--mct-ink-rgb) / .42),rgb(var(--mct-ink-rgb) / .12) 60%,transparent) 0 0/5cqw 100% no-repeat,
             radial-gradient(closest-side,rgb(var(--mct-ink-rgb) / .42),rgb(var(--mct-ink-rgb) / .12) 60%,transparent) 100% 0/5cqw 100% no-repeat,
             radial-gradient(closest-side,rgb(var(--mct-ink-rgb) / .3),transparent) calc(50% + 1.6cqw) 0/3.6cqw 1.3cqw no-repeat}
.mab-ledge{left:50%;translate:-50% 0;z-index:3;bottom:calc(var(--lb) * 1cqw - 2.7cqw);width:max(22cqw,calc(var(--cw) * .62));height:2.7cqw;border-radius:.25cqw;--g:var(--mab-gh);
  background:linear-gradient(180deg,var(--mct-wood-top) 0 18%,var(--mct-wood-d) 18% 22%,var(--mct-wood) 24%,var(--mct-wood-d));box-shadow:0 .6cqw .8cqw -.2cqw rgb(var(--mct-ink-rgb) / .4);transition:width .6s cubic-bezier(.6,.05,.3,1)}

/* the canvas and its curtain: falls (.is-down), the photo changes behind it, rises */
.mab-cvw{position:absolute;left:50%;bottom:calc(var(--lb) * 1cqw);z-index:2;width:var(--cw);height:var(--ch);translate:-50% 0;cursor:zoom-in;touch-action:pan-y;outline:0;
  transition:width .6s cubic-bezier(.6,.05,.3,1),height .6s cubic-bezier(.6,.05,.3,1)}
.mab-cvw:focus-visible .mab-cv{box-shadow:0 0 0 .32cqw var(--mct-table-d),0 0 0 calc(.32cqw + 3px) var(--mct-orange)}
.mab-cv{position:absolute;inset:0;overflow:hidden;background:var(--mct-stage);box-shadow:0 0 0 .32cqw var(--mct-table-d),0 1.4cqw 2.6cqw rgb(var(--mct-ink-rgb) / .45)}
.mab-cv img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
.mab-cv::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgb(var(--mct-lamp-rgb) / .2),transparent 45%,rgb(0 0 0 / .14));mix-blend-mode:soft-light}
.mab-cvw.is-empty{cursor:default}
.mab-cvw.is-empty .mab-cv{display:grid;place-items:center;padding:2cqw;text-align:center;color:var(--mct-on-dark-mute);font-size:max(13px,1.2cqw);font-weight:700}
.mab-ct{position:absolute;inset:0 0 auto;z-index:2;height:0;transition:height .9s cubic-bezier(.55,.05,.3,1);animation:mab-rise 1.3s cubic-bezier(.55,.05,.3,1) 1.1s backwards;
  background:linear-gradient(180deg,rgb(0 0 0 / .35),transparent 25%),repeating-linear-gradient(90deg,var(--mct-velvet-d) 0,var(--mct-velvet-b) 1.5cqw,var(--mct-velvet-c) 2.3cqw,var(--mct-velvet-b) 3.1cqw,var(--mct-velvet-d) 4.4cqw)}
.mab-ct::after{content:"";position:absolute;inset-inline:0;bottom:-1cqw;height:1.2cqw;background:radial-gradient(ellipse at 50% 0,var(--mct-velvet-b) 55%,transparent 60%) 0 0/2.2cqw 100% repeat-x}
.mab-room.is-down .mab-ct{height:calc(100% + 1.4cqw);transition-duration:.42s;transition-timing-function:cubic-bezier(.5,0,.75,0)}
@keyframes mab-rise{from{height:calc(100% + 1.4cqw)}to{height:0}}

/* brass picture light: switches on with a flicker */
.mab-lamp{position:absolute;left:50%;translate:-50% 0;z-index:4;bottom:calc(var(--lb) * 1cqw + var(--ch) + 1.7cqw);width:clamp(9cqw,calc(var(--cw) * .44),20cqw);height:1.6cqw;border-radius:.8cqw;
  background:linear-gradient(180deg,var(--mct-brass-lt),var(--mct-brass) 30%,var(--mct-gold-deep) 70%,var(--mct-brass-d));box-shadow:0 .3cqw .6cqw rgb(var(--mct-ink-rgb) / .35);
  transition:bottom .6s cubic-bezier(.6,.05,.3,1),width .6s cubic-bezier(.6,.05,.3,1)}
.mab-lamp::before{content:"";position:absolute;inset-inline:6%;bottom:-.15cqw;height:.35cqw;border-radius:1cqw;background:rgb(var(--mct-lamp-rgb));box-shadow:0 0 1.2cqw .3cqw rgb(var(--mct-lamp-rgb) / .9);animation:mab-flick 1s steps(1) .3s both}
.mab-lamp::after{content:"";position:absolute;top:100%;left:-35%;right:-35%;height:calc(var(--ch) * .9);pointer-events:none;background:linear-gradient(180deg,rgb(var(--mct-lamp-rgb) / .3),transparent 85%);clip-path:polygon(28% 0,72% 0,100% 100%,0 100%);animation:mab-flick 1s steps(1) .3s both;transition:height .6s}
.mab-lamp i{position:absolute;bottom:100%;left:50%;width:.45cqw;height:2.6cqw;background:linear-gradient(90deg,var(--mct-brass-d),var(--mct-brass),var(--mct-brass-d));rotate:-28deg;transform-origin:50% 100%}
@keyframes mab-flick{0%{opacity:0}10%{opacity:1}18%{opacity:.2}30%{opacity:1}38%{opacity:.4}46%,100%{opacity:1}}

/* arrows beside the canvas; slideshow + full screen in the corner */
.mab-nv{position:absolute;z-index:5;bottom:calc(var(--lb) * 1cqw + var(--ch) / 2 - 24px);display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--mct-brass-ink);
  background:radial-gradient(circle at 35% 30%,var(--mct-brass-lt),var(--mct-brass) 45%,var(--mct-brass-d));box-shadow:0 6px 14px -4px rgb(var(--mct-ink-rgb) / .5);transition:scale .25s,filter .25s,bottom .6s cubic-bezier(.6,.05,.3,1),left .6s cubic-bezier(.6,.05,.3,1),right .6s cubic-bezier(.6,.05,.3,1)}
:where(.mab) .mab-nv:is(:hover,:focus,:focus-visible){color:var(--mct-brass-ink);background:radial-gradient(circle at 35% 30%,var(--mct-brass-lt),var(--mct-brass) 45%,var(--mct-brass-d))}
.mab-nv:hover,.mab-nv:focus-visible{scale:1.1;filter:brightness(1.08)}
.mab-nv:focus-visible{outline:2px solid var(--mct-orange);outline-offset:3px}
.mab-nv .mct-i{width:22px;height:22px}
.mab-nv.is-prev{left:calc(50% + var(--cw) / 2 + 2.4cqw)}
.mab-nv.is-next{right:calc(50% + var(--cw) / 2 + 2.4cqw)}
[dir="ltr"] .mab-nv.is-prev{left:auto;right:calc(50% + var(--cw) / 2 + 2.4cqw)}
[dir="ltr"] .mab-nv.is-next{right:auto;left:calc(50% + var(--cw) / 2 + 2.4cqw)}
/* the chevron points left: «next» in Arabic, «previous» in French / English */
.mab-nv.is-prev .mct-i,.mab-lb .is-prev .mct-i,[dir="ltr"] .mab-nv.is-next .mct-i,[dir="ltr"] .mab-lb .is-next .mct-i{transform:scaleX(-1)}
[dir="ltr"] .mab-nv.is-prev .mct-i,[dir="ltr"] .mab-lb .is-prev .mct-i{transform:none}
.mab-ctl{position:absolute;z-index:5;inset-inline-start:2cqw;bottom:calc(var(--fl) * 1cqw / 2 - 20px);display:flex;gap:8px}
.mab-btn{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:rgb(var(--mct-ink-rgb) / .55);color:#fff;transition:background .25s,color .25s}
:where(.mab) .mab-btn:is(:hover,:focus){background:rgb(var(--mct-ink-rgb) / .55);color:#fff}
:where(.mab) .mab-btn:is(:hover,:focus-visible),.mab-btn[aria-pressed="true"]{background:var(--mct-orange);color:var(--mct-on-orange)}
.mab-btn .mct-i{width:18px;height:18px}
.mab-play .is-pause,.mab-play[aria-pressed="true"] .is-play{display:none}
.mab-play[aria-pressed="true"] .is-pause{display:block}

/* the round table and its pile of prints (opens the sheet) */
.mab-tbl{position:absolute;z-index:3;inset-inline-end:8cqw;bottom:calc(var(--fl) * 1cqw - .4cqw);width:14cqw;height:11cqw}
.mab-tbl__tp{position:absolute;inset:0 0 auto;height:2.6cqw;border-radius:50%;background:radial-gradient(ellipse at 45% 35%,var(--mct-wood-l),var(--mct-table) 60%,var(--mct-table-d));box-shadow:0 .6cqw 0 var(--mct-table-d),0 1.4cqw 1.6cqw rgb(var(--mct-ink-rgb) / .3)}
.mab-tbl__lg{position:absolute;top:2cqw;width:1cqw;height:9cqw;border-radius:0 0 .3cqw .3cqw;background:linear-gradient(90deg,var(--mct-table-d),var(--mct-table),var(--mct-table-d))}
.mab-tbl__lg:nth-child(1){left:2cqw}.mab-tbl__lg:nth-child(2){right:2cqw}.mab-tbl__lg:nth-child(3){left:6.5cqw;height:8cqw;opacity:.75}
.mab-pile{position:absolute;left:50%;bottom:calc(100% - 1.4cqw);translate:-50% 0;width:7cqw;height:7cqw;color:var(--mct-ink);text-decoration:none}
.mab-pile span{position:absolute;inset:0;padding:.35cqw;background:var(--mct-card);box-shadow:0 .5cqw 1cqw rgb(var(--mct-ink-rgb) / .35);transition:rotate .4s cubic-bezier(.2,.8,.2,1),translate .4s cubic-bezier(.2,.8,.2,1)}
.mab-pile span img{width:100%;height:100%;object-fit:cover;display:block}
.mab-pile span:nth-child(1){rotate:-14deg;translate:-1.2cqw .3cqw}.mab-pile span:nth-child(2){rotate:9deg;translate:1cqw 0}.mab-pile span:nth-child(3){rotate:-2deg}
.mab-pile:is(:hover,:focus-visible) span:nth-child(1){rotate:-24deg;translate:-3cqw .2cqw}
.mab-pile:is(:hover,:focus-visible) span:nth-child(2){rotate:18deg;translate:3cqw 0}
.mab-pile:is(:hover,:focus-visible) span:last-of-type{translate:0 -1cqw}
.mab-pile b{position:absolute;top:-1.4cqw;inset-inline-end:-1.6cqw;z-index:2;display:grid;place-items:center;min-width:max(24px,2.6cqw);height:max(24px,2.6cqw);padding:0 .5cqw;border-radius:2cqw;background:var(--mct-orange);color:var(--mct-on-orange);font-size:max(11.5px,1.1cqw);font-weight:900}
.mab-pile em{position:absolute;top:calc(100% + 1.8cqw);left:50%;translate:-50% 0;white-space:nowrap;padding:.2cqw .9cqw;border-radius:2cqw;background:rgb(var(--mct-ink-rgb) / .7);color:#fff;font-style:normal;font-size:max(11px,.95cqw);font-weight:800;opacity:0;transition:opacity .3s}
.mab-pile:is(:hover,:focus-visible) em{opacity:1}
.mab-pile:focus-visible{outline:2px solid var(--mct-orange);outline-offset:6px}

/* ===== the museum label on the wall ===== */
.mab-label{position:absolute;z-index:6;inset-inline-start:3cqw;top:7cqw;width:21cqw;padding:1.6cqw 1.8cqw;background:var(--mct-card);color:var(--mct-ink);border-radius:.25cqw;
  box-shadow:0 1.6cqw 2.6cqw -1cqw rgb(var(--mct-ink-rgb) / .35),0 0 0 1px rgb(var(--mct-ink-rgb) / .06)}
.mab-label::before{content:"";position:absolute;inset:.6cqw;border:1px solid var(--mct-line);pointer-events:none}
.mab-label > *{position:relative}
.mab-label .mph-crumbs ol{font-size:max(11.5px,.9cqw);color:var(--mct-mute)}
.mab-label .mph-crumbs a:hover,.mab-label .mph-crumbs a:focus-visible{color:var(--mct-orange-txt)}
.mab-chip{margin-top:1cqw;padding:2px 12px;background:var(--mct-velvet-b);color:#fff;font-size:max(11.5px,.92cqw)}
.mab-chip:hover,.mab-chip:focus-visible{background:var(--mct-velvet-c);color:#fff}
.mab-title{margin:.9cqw 0 .8cqw;font-size:max(19px,1.95cqw);line-height:1.4;color:var(--mct-ink)}
.mab-label .msa-meta{gap:4px 14px;font-size:max(12px,.95cqw);color:var(--mct-text)}
.mab-label .msa-meta .mct-i{width:max(14px,1.15cqw);height:max(14px,1.15cqw);color:var(--mct-gold-deep)}
.mab-short{margin:1cqw 0 0;font-size:max(13px,1.02cqw);line-height:1.9;color:var(--mct-text)}

/* ===== the sheet of every photo (from the pile) ===== */
.mab-sheet{position:fixed;inset:0;z-index:150;display:none;place-items:center;padding:calc(20px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:rgb(var(--mct-stage-rgb) / .62)}
.mab-sheet:target,.mab-sheet.is-open{display:grid}
.mab-sheet__in{width:min(820px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;padding:22px;border-radius:20px;background:var(--mct-paper);color:var(--mct-ink);box-shadow:0 30px 70px -20px rgb(0 0 0 / .7);animation:mab-up .4s cubic-bezier(.2,.8,.2,1)}
@keyframes mab-up{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
.mab-sheet__top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.mab-sheet__top h2{flex:1;margin:0;font-size:20px;font-weight:900}
.mab-sheet__top small{margin-inline-start:10px;font-size:14px;font-weight:700;color:var(--mct-mute)}
.mab-sheet__x{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--mct-line);background:var(--mct-card);color:var(--mct-ink);transition:background .25s,color .25s}
.mab-sheet__x:hover,.mab-sheet__x:focus-visible{background:var(--mct-ink);color:#fff}
.mab-sheet__x .mct-i{width:18px;height:18px}
.mab-sq{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.mab-fr{position:relative;display:block;aspect-ratio:1;padding:4px;background:var(--mct-card);box-shadow:0 6px 14px -8px rgb(var(--mct-ink-rgb) / .6);transition:translate .25s,box-shadow .25s}
.mab-fr:hover,.mab-fr:focus-visible{translate:0 -3px}
.mab-fr img{width:100%;height:100%;object-fit:cover;display:block}
.mab-fr small{position:absolute;bottom:8px;inset-inline-start:8px;padding:0 6px;border-radius:6px;background:rgb(var(--mct-stage-rgb) / .72);color:#fff;font-size:11.5px;font-weight:800}
.mab-fr[aria-current="true"]{box-shadow:0 0 0 3px var(--mct-orange)}

/* other albums */
.mab-rel{margin-top:0;overflow-x:clip} /* right under the floor; clip: the tilted prints of a one-column list */
.mab-rel .mgl-grid{padding-top:30px}

/* ===== full-screen viewer ===== */
.mab-lb{position:fixed;inset:0;z-index:200;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:var(--mct-stage);color:var(--mct-on-dark);padding-block:env(safe-area-inset-top,0px) env(safe-area-inset-bottom,0px);opacity:0;transition:opacity .3s}
.mab-lb[hidden]{display:none}
.mab-lb.is-on{opacity:1}
.mab-lb__top{display:flex;align-items:center;gap:14px;padding:14px max(18px,env(safe-area-inset-right,0px)) 14px max(18px,env(safe-area-inset-left,0px))}
.mab-lb__top b{flex:none;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--mct-gold-lt)}
.mab-lb__top span{flex:1;min-width:0;font-size:14px;font-weight:700;color:var(--mct-on-dark-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mab-lb .mab-btn{width:44px;height:44px;background:rgb(var(--mct-on-dark-rgb) / .1);color:var(--mct-on-dark)}
.mab-lb .mab-btn:is(:hover,:focus-visible),.mab-lb .mab-btn[aria-pressed="true"]{background:var(--mct-orange);color:var(--mct-on-orange)}
.mab-lb .mab-btn:focus:not(:focus-visible):not([aria-pressed="true"]){background:rgb(var(--mct-on-dark-rgb) / .1);color:var(--mct-on-dark)}
.mab-mid{position:relative;min-height:0;overflow:hidden;touch-action:pan-y}
.mab-mid img{position:absolute;inset:0;margin:auto;max-width:calc(100% - 168px);max-height:100%;width:auto;height:auto;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
.mab-mid img.is-in{animation:mab-in .45s cubic-bezier(.2,.8,.2,1)}
@keyframes mab-in{from{opacity:0;scale:.97}to{opacity:1;scale:1}}
.mab-mid .mab-ar{position:absolute;top:50%;z-index:2;translate:0 -50%;width:52px;height:52px}
.mab-mid .mab-ar.is-prev{inset-inline-start:16px}
.mab-mid .mab-ar.is-next{inset-inline-end:16px}
.mab-prog{position:absolute;inset:auto 0 0;z-index:3;height:3px;background:var(--mct-orange);transform-origin:right;scale:0 1;pointer-events:none}
[dir="ltr"] .mab-prog{transform-origin:left}
.is-playing .mab-prog{animation:mab-prog var(--mab-step,4.5s) linear}
@keyframes mab-prog{to{scale:1 1}}
.mab-lb__cap{min-height:30px;margin:0;padding:10px 20px 2px;text-align:center;font-size:15px;font-weight:700}
.mab-lb__strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:12px max(18px,env(safe-area-inset-right,0px)) 16px max(18px,env(safe-area-inset-left,0px));justify-content:safe center}
.mab-lb__strip::-webkit-scrollbar{display:none}
.mab-lb__strip button{flex:none;width:64px;height:46px;padding:0;border-radius:8px;overflow:hidden;opacity:.45;outline:2px solid transparent;outline-offset:2px;transition:opacity .25s,outline-color .25s}
.mab-lb__strip button[aria-current="true"]{opacity:1;outline-color:var(--mct-orange)}
.mab-lb__strip img{width:100%;height:100%;object-fit:cover;display:block}

/* ===== narrower scenes: the room gets taller, the label goes under it ===== */
@container mab (max-width:979px){
  .mab-room{aspect-ratio:4/3;--fl:10;--lb:25;--mw:60;--mh:38;--fx:10.6;--lv:46;--cy:4.6}
  .mab-label{position:static;width:auto;padding:26px var(--mct-gutter) 8px;border-radius:0;background:var(--mct-paper);box-shadow:none}
  .mab-label::before{display:none}
  .mab-title{margin:10px 0 10px;font-size:clamp(26px,4.4cqw,36px)}
  .mab-chip{margin-top:12px}
  .mab-label .mph-crumbs ol{font-size:13.5px}
  .mab-label .msa-meta{font-size:14px}
  .mab-short{margin-top:12px;font-size:16px;max-width:68ch}
  .mab-tbl{inset-inline-end:5cqw;width:18cqw;height:14cqw}
  .mab-tbl__tp{height:3.4cqw}.mab-tbl__lg{top:2.6cqw;height:11.4cqw;width:1.3cqw}.mab-tbl__lg:nth-child(3){left:8.4cqw;height:10cqw}
  .mab-pile{width:9cqw;height:9cqw;bottom:calc(100% - 1.8cqw)}
  .mab-ledge{height:3.6cqw;bottom:calc(var(--lb) * 1cqw - 3.6cqw)}
  .mab-lamp{height:2.2cqw}
}
@container mab (max-width:599px){
  .mab-room{aspect-ratio:10/11;--fl:12;--lb:32;--mw:84;--mh:60;--fx:11.6;--lv:52;--cy:5.6}
  .mab-nv{width:40px;height:40px;bottom:calc(var(--lb) * 1cqw + var(--ch) / 2 - 20px);background:rgb(var(--mct-stage-rgb) / .5);color:#fff;box-shadow:none}
  :where(.mab) .mab-nv:is(:hover,:focus,:focus-visible){background:rgb(var(--mct-stage-rgb) / .5);color:#fff}
  .mab-nv.is-prev{left:calc(50% + var(--cw) / 2 - 46px)}
  .mab-nv.is-next{right:calc(50% + var(--cw) / 2 - 46px)}
  [dir="ltr"] .mab-nv.is-prev{left:auto;right:calc(50% + var(--cw) / 2 - 46px)}
  [dir="ltr"] .mab-nv.is-next{right:auto;left:calc(50% + var(--cw) / 2 - 46px)}
  .mab-tbl{inset-inline-end:3cqw;width:22cqw;height:17cqw}
  .mab-tbl__tp{height:4cqw}.mab-tbl__lg{top:3cqw;height:14cqw;width:1.6cqw}.mab-tbl__lg:nth-child(3){left:10cqw;height:12cqw}
  .mab-pile{width:12cqw;height:12cqw;bottom:calc(100% - 2.4cqw)}
  .mab-pile em{display:none}
  .mab-leg.is-a,.mab-leg.is-b{width:2.2cqw;margin-left:-.225cqw}.mab-mast{width:2.4cqw}
  .mab-ledge{height:5cqw;bottom:calc(var(--lb) * 1cqw - 5cqw);width:36cqw}
  .mab-lamp{height:2.8cqw}
  .mab-ctl{bottom:calc(var(--fl) * 1cqw / 2 - 18px);inset-inline-start:3cqw}
  .mab-btn{width:36px;height:36px}
}
@media (max-width:820px){
  .mab-stage{padding-top:calc(72px + env(safe-area-inset-top,0px))}
  .mab-mid img{max-width:100%}
  .mab-mid .mab-ar{display:none}
  .mab-lb__strip button{width:52px;height:40px}
}
@media (prefers-reduced-motion:reduce){
  .mab-ct,.mab-glow,.mab-lamp::before,.mab-lamp::after,.mab-mid img.is-in,.mab-sheet__in{animation:none}
  .mab-cvw,.mab-ct,.mab-lamp,.mab-mast,.mab-ledge,.mab-shade,.mab-nv,.mab-pile span,.mab-lb{transition:none}
}
