/* PRO.REMONT51 v3 — dimensional door assemblies, reversible optical camera.
   Local materials and CSS 3-D keep the site fast, offline and static-host compatible. */
.chapter{--portal-w:min(70vw,35svh,356px);--portal-h:calc(var(--portal-w)*2.28);}
.chapter-sticky{overflow:hidden;contain:layout style;}
.stage-body{position:absolute;inset:0;height:100%;width:100%;padding:0;margin:0;display:block;min-height:0;pointer-events:none;}
.door-stage{height:100%;width:100%;max-height:none;min-height:0;perspective:none;isolation:auto;overflow:visible;pointer-events:none;}
.door-dolly{position:absolute;left:50%;top:50%;width:var(--portal-w);height:var(--portal-h);transform:translate(-50%,-50%) translate3d(var(--camera-x,0px),var(--camera-y,0px),0) scale(var(--camera-scale,1));transform-origin:center 48%;perspective:1700px;transform-style:preserve-3d;will-change:transform;pointer-events:none;filter:drop-shadow(2px 13px 19px #090e0e79);}
.door-stage:after{content:"";position:absolute;width:calc(var(--portal-w)*2.1);height:38px;top:calc(50% + var(--portal-h)/2 - 2px);left:50%;transform:translateX(-50%) scaleX(calc(.92 + var(--door-shadow-progress,0)*.3));background:radial-gradient(ellipse at center,#0008 0%,#080c0c27 48%,transparent 73%);pointer-events:none;opacity:.65;}
.door-frame{width:100%;height:100%;border:0!important;outline:0!important;box-shadow:none!important;background:#201e1b;overflow:visible;perspective:1800px;transform-style:preserve-3d;isolation:auto;pointer-events:none;}
.door-frame:before,.door-frame:after{display:none!important;}
.physical-trim{position:absolute;inset:-19px;z-index:9;pointer-events:none;transform:translateZ(13px);filter:drop-shadow(2px 7px 4px #0003);}
.trim{position:absolute;display:block;background:linear-gradient(90deg,#645b52 0%,#d6c9b7 11%,#fbf8ee 38%,#d0c2af 74%,#958572 96%,#51493d 100%);border:1px solid #ffffff3f;box-shadow:inset -3px 0 5px #56473553,inset 2px 0 3px #fff8,3px 6px 7px #0004;}
.trim-left{left:0;top:0;width:19px;height:100%;}
.trim-right{right:0;top:0;width:19px;height:100%;background:linear-gradient(90deg,#6f655a 0%,#d7c9b9 15%,#fcf7ed 43%,#b8a995 83%,#62584d 100%);}
.trim-top{left:0;right:0;top:0;height:19px;background:linear-gradient(#faf7ee,#dbceba 35%,#b6a691 75%,#615244);}
.trim-joint{position:absolute;top:0;width:22px;height:21px;z-index:2;background:linear-gradient(140deg,#faf7f0 0%,#cfbfab 52%,#8b7c6a 100%);clip-path:polygon(0 0,100% 0,0 100%)}
.joint-left{left:0}.joint-right{right:0;transform:scaleX(-1)}
.chapter--bath .trim{background:linear-gradient(90deg,#24292d,#6b7375 19%,#c0c5c3 47%,#666f71 80%,#343a3e);border-color:#a2aab03b}
.chapter--bath .trim-top{background:linear-gradient(#c5cac8,#697174,#2c3437)}
.chapter--bath .trim-joint{background:linear-gradient(135deg,#c0c6c3,#323a3e)}
.chapter--country .trim{background:linear-gradient(90deg,#513c2f,#c3a27d 18%,#e2c39d 48%,#a07856 83%,#493428);border-color:#eed7b453}
.chapter--country .trim-top{background:linear-gradient(#e2c7a5,#b48b68,#553b2d)}
.chapter--country .trim-joint{background:linear-gradient(135deg,#f2d9b2,#614530)}
.door-aperture{inset:5px!important;overflow:hidden;background:#1b252a;position:absolute;z-index:1;box-shadow:inset 0 1px 10px #000c,inset -8px 0 10px #090c0c70;}
.jamb-depth{position:absolute;z-index:3;pointer-events:none;display:block;}
.jamb-depth-left{top:0;bottom:0;left:0;width:11px;background:linear-gradient(90deg,#161413,#61594e 60%,#988e80);box-shadow:2px 0 6px #0009}
.jamb-depth-right{top:0;bottom:0;right:0;width:11px;background:linear-gradient(90deg,#8d8376,#514941 45%,#1a1918);box-shadow:-2px 0 6px #0009}
.jamb-depth-top{left:0;right:0;top:0;height:13px;background:linear-gradient(#131313,#6f675e 60%,#978a79);box-shadow:0 3px 6px #000a}
.chapter--bath .jamb-depth{filter:grayscale(1)}
.chapter--country .jamb-depth{filter:sepia(.45)}
.door-aperture .photo-zoom{opacity:1!important;pointer-events:none;background:#172124;}
.chapter.is-entered .door-aperture .photo-zoom{pointer-events:auto;}
.photos-layer,.photo-zoom,.scene-photo{width:100%;height:100%;}
.scene-photo{opacity:0;transition:none!important;object-fit:cover;object-position:center;filter:saturate(.98) contrast(1.015);transform:scale(1.016);backface-visibility:hidden;}
.scene-photo.current{opacity:1;}
.photo-shading{background:linear-gradient(to top,#0e19283d,transparent 27%);}
.photo-caption,.zoom-hint{display:none!important;}
.door-leaf{position:absolute;inset:7px;z-index:5;transform-origin:0 50%;transform:rotateY(var(--angle,0deg));transform-style:preserve-3d;will-change:transform;filter:none;backface-visibility:visible;pointer-events:none;}
.door-leaf-face,.door-leaf-back{position:absolute;inset:0;border:2px solid #c7b7a0;box-shadow:inset 0 0 0 6px #d5c8b6,inset 0 0 0 8px #ac9b83,3px 5px 12px #0005;overflow:visible;backface-visibility:hidden;transform-style:preserve-3d;}
.door-leaf-face{transform:translateZ(11px);background:linear-gradient(90deg,#0e11111b,transparent 20%,#fff7 42%,transparent 70%,#17140e44),url('assets/veneer-kids.webp') center/100% 100%;}
.door-leaf-back{transform:rotateY(180deg) translateZ(11px);background:linear-gradient(90deg,#10101533,transparent 40%,#ffffff33 70%,#090b0b45),url('assets/veneer-kids.webp') center/100% 100%;border:2px solid #b7a692;box-shadow:inset 0 0 0 6px #dfd2c0,inset 0 0 0 8px #ac9d8b,0 3px 13px #0005;}
.chapter--bath .door-leaf-face,.chapter--bath .door-leaf-back{background-image:linear-gradient(90deg,#090d1180,transparent 28%,#c9d3d022 55%,#10151677),url('assets/veneer-bath.webp');border-color:#454c50;box-shadow:inset 0 0 0 6px #586166,inset 0 0 0 8px #30383a,5px 5px 13px #0009;}
.chapter--country .door-leaf-face,.chapter--country .door-leaf-back{background-image:linear-gradient(90deg,#20110658,transparent 32%,#ffe3a52e 54%,#2414066f),url('assets/veneer-country.webp');border-color:#8a6649;box-shadow:inset 0 0 0 6px #b4916f,inset 0 0 0 8px #60442e,4px 6px 12px #0007;}
.door-leaf-edge{position:absolute;top:0;right:0;width:23px;height:100%;background:linear-gradient(90deg,#897a66,#d1c0a4,#6a5b4b);transform:rotateY(90deg) translateZ(11px);transform-origin:right center;box-shadow:inset 2px 0 4px #0006;}
.chapter--bath .door-leaf-edge{background:linear-gradient(90deg,#232d31,#7e8889,#282d2f)}
.chapter--country .door-leaf-edge{background:linear-gradient(90deg,#5d402c,#b58e6b,#463120)}
.leaf-seal{position:absolute;right:-5px;top:8px;bottom:8px;background:#171b1ccc;width:3px;transform:translateZ(1px);box-shadow:0 0 3px #0009}
.door-latch{position:absolute;right:-12px;top:51%;width:23px;height:41px;transform:translateY(-50%) rotateY(90deg);transform-origin:right;background:linear-gradient(90deg,#c4c7c7,#6b7172);border-radius:2px;box-shadow:0 1px 2px #0009;}
.door-latch:before{content:"";position:absolute;top:11px;left:7px;width:9px;height:12px;background:linear-gradient(#7a7d7c,#f2f2e7);border-radius:2px;}
.door-panel{position:absolute;left:10%;right:10%;border:1px solid #86796281;box-shadow:inset 0 3px 7px #0003,inset 3px 0 4px #0003,0 -2px 2px #fff6,0 2px 4px #fff3;}
.panel-upper{top:8%;height:36%;}
.panel-lower{bottom:8%;height:36%;}
.door-panel:before{content:"";position:absolute;inset:8px;border:2px ridge #cfc1ac6e;box-shadow:inset 1px 2px 5px #0002,0 0 2px #fff8;}
.chapter--bath .door-panel{border-color:#a2a9a943;box-shadow:inset 0 2px 4px #0009,inset 2px 0 4px #0005,0 2px 1px #8f98982f;}
.chapter--bath .door-panel:before{border-color:#8f949431;}
.chapter--country .door-panel{border-color:#412f20b5;box-shadow:inset 0 4px 7px #0007,0 -2px 3px #e7c49546;}
.chapter--country .door-panel:before{border-color:#d2ae8159;}
.hardware-rose{position:absolute;right:11%;top:52%;width:29px;height:29px;transform:translate(50%,-50%) translateZ(2px);border-radius:50%;background:radial-gradient(circle at 32% 27%,#fff4da,#b9ad94 37%,#6b6156 74%,#e8dfc5 91%);box-shadow:1px 3px 6px #0007,inset 0 0 0 2px #a49a84,inset -1px -2px 2px #514b41;}
.hardware-rose:before{content:"";position:absolute;inset:7px;border-radius:50%;background:radial-gradient(circle at 37% 35%,#f7ead0,#6f665a 80%);box-shadow:0 0 3px #0008;}
.hardware-spindle{position:absolute;left:50%;top:50%;width:1px;height:1px;transform:rotate(var(--handle-deg,0deg));transform-origin:center center;}
.hardware-lever{position:absolute;right:0;top:-5px;width:66px;height:11px;border-radius:7px 3px 3px 7px;background:linear-gradient(#fff9e1 0%,#c0b49b 30%,#756c5d 74%,#d5c5ab 100%);box-shadow:1px 4px 3px #0008,inset -2px 0 3px #fff8;}
.hardware-tip{position:absolute;left:-66px;top:-5px;width:6px;height:11px;border-radius:4px;background:linear-gradient(#eae1cd,#776957)}
.door-keyhole{position:absolute;right:11%;top:calc(52% + 48px);width:12px;height:20px;transform:translateX(50%) translateZ(2px);background:linear-gradient(90deg,#6c6357,#d3c6b0,#5b5449);border-radius:4px;box-shadow:0 2px 3px #0007}
.door-keyhole:before{content:"";position:absolute;top:5px;left:4px;width:4px;height:6px;background:#1c1d1c;border-radius:50%;box-shadow:0 3px 0 #1c1d1c}
.hardware-rose--inside{right:11%}
.chapter--bath .hardware-rose{background:radial-gradient(circle at 30% 25%,#f6f7f3,#9ba5a7 42%,#30383c 81%,#a0aaad);box-shadow:1px 3px 5px #0008,inset 0 0 0 2px #5b6266;}
.chapter--bath .hardware-rose:before{background:radial-gradient(circle at 37% 32%,#d2d9d8,#333a3e 85%)}
.chapter--bath .hardware-lever{background:linear-gradient(#f1f2f0,#a0a8ab 26%,#20292d 78%,#878e91);}
.chapter--country .hardware-rose{background:radial-gradient(circle at 32% 22%,#f7e6c5,#c39b68 40%,#65482e 76%,#e6bd87);}
.chapter--country .hardware-rose:before{background:radial-gradient(circle at 30% 20%,#e9cd9c,#6a4a2f 85%)}
.chapter--country .hardware-lever{background:linear-gradient(#f6ddb1,#c79c62 26%,#624429 78%,#bf9568)}
.door-hinge-assembly{position:absolute;top:var(--hinge-y);left:-9px;height:38px;width:17px;transform:translate(-45%,-50%) translateZ(15px);z-index:9;filter:drop-shadow(1px 1px 3px #0008);}
.hinge-pin{position:absolute;left:2px;top:0;height:100%;width:8px;border-radius:5px;background:linear-gradient(90deg,#353637,#dcd8c8 35%,#b0a790 64%,#454746);box-shadow:inset 1px 0 2px #fff6;}
.hinge-plate{position:absolute;left:8px;top:5px;width:9px;height:27px;border-radius:1px;background:linear-gradient(90deg,#c8bb9d,#877b67);}
.hinge-screw{position:absolute;left:12px;width:2px;height:2px;border-radius:50%;background:#4a433a;z-index:1}
.hinge-screw-top{top:10px}.hinge-screw-bottom{bottom:10px}
.chapter--bath .hinge-pin,.chapter--bath .hinge-plate{filter:grayscale(1) brightness(.78)}
.chapter--country .hinge-pin,.chapter--country .hinge-plate{filter:sepia(.4)}
/* Add local physically motivated illumination rather than graphic ornaments on the slab. */
.chapter-wall{z-index:-2;}
.chapter--kids .chapter-wall{background:radial-gradient(ellipse at 51% 23%,#f6f0e8 0%,#d8cbbc 43%,#aea093 100%);}
.chapter--kids .wall-pattern{opacity:.12;background-size:74px 74px;background-image:radial-gradient(#917f71 4px,transparent 5px)}
.chapter--bath .chapter-wall{background:linear-gradient(105deg,#414b50,#748083 43%,#3d454b);}
.chapter--bath .wall-pattern{opacity:.11;background-size:160px 90px;}
.chapter--country .chapter-wall{background:linear-gradient(112deg,#3c4b4b,#54646b 45%,#283a42);}
.chapter--country .wall-pattern{opacity:.08}
.wall-light{background:radial-gradient(ellipse at 54% 22%,#fff2d884,transparent 55%)!important;}
.chapter--bath .wall-light{background:radial-gradient(ellipse at 50% 18%,#eff7f953,transparent 56%)!important;}
/* Project typography sits beside the architectural scene, never on the leaf or image. */
.project-ident{position:absolute;z-index:8;top:35%;left:clamp(34px,6vw,110px);max-width:min(270px,23vw);display:flex;flex-direction:column;gap:12px;color:#f9f5ec;pointer-events:none;text-shadow:0 2px 10px #0006;transition:opacity .2s;}
.project-ident-kicker{font-size:.65rem;color:#e9cd9f;letter-spacing:.2em;}
.project-ident strong{font:400 clamp(2.2rem,4vw,4.4rem)/.98 var(--serif);letter-spacing:-.025em;}
.project-ident-caption{font-size:.84rem;opacity:.86;line-height:1.5;}
.chapter--kids .project-ident{color:#352f2a;text-shadow:none;}
.chapter--kids .project-ident-kicker{color:#796146;}
.chapter-meta{display:none!important;}
.chapter-bottom{display:none!important;}
.chapter-prompt{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;z-index:6;pointer-events:none;display:flex;align-items:center;justify-content:center;}
.chapter-gallery-hud{left:clamp(22px,6vw,100px);bottom:25px;min-width:210px;max-width:300px;padding:12px 18px;transition:opacity .18s ease,transform .18s ease;pointer-events:none;}
.chapter-gallery-hud .hud-caption{font-size:.83rem;}
.chapter.is-entered .chapter-gallery-hud{opacity:1;}
.chapter.is-entered .chapter-prompt{opacity:0;}
.compare-chip{top:auto;right:-40px;bottom:18px;transform:translateX(100%);font-size:.76rem;padding:10px 12px;white-space:nowrap;z-index:10;}
.chapter.is-entered .compare-chip{opacity:1;visibility:visible;pointer-events:auto;}
/* Sticky layout on narrow phones keeps all controls outside the photograph. */
@media(max-width:1100px){.project-ident{top:26%;max-width:24vw}.project-ident strong{font-size:clamp(1.65rem,3.5vw,3rem)}.project-ident-caption{font-size:.74rem}}
@media(max-width:800px){
.chapter{--portal-w:min(65vw,25svh,330px);}
.project-ident{left:18px;top:77px;max-width:none;width:calc(100% - 38px);gap:3px;align-items:center;text-align:center;}
.project-ident strong{font-size:clamp(1.4rem,4vw,1.8rem);}
.project-ident-kicker{font-size:.55rem;}
.project-ident-caption{display:none;}
.door-dolly{top:47%;}
.compare-chip{top:auto;right:4px;bottom:-48px;transform:none;}
.chapter-gallery-hud{left:50%;transform:translate(-50%,12px);bottom:37px;max-width:min(380px,calc(100vw - 32px));width:fit-content;min-width:210px;text-align:center;align-items:center;padding:9px 14px;background:#132028de;}
.chapter.is-entered .chapter-gallery-hud{transform:translateX(-50%);}
.chapter-gallery-hud .hud-caption{font-size:.75rem;}
.chapter-prompt{bottom:43px;padding:7px 12px;font-size:.64rem;}
.chapter.in-viewport .floating-contacts{display:none}
body.is-door-scene .floating-contacts{opacity:0;pointer-events:none;transform:translateY(12px);}
}
@media(max-width:540px){
.chapter{--portal-w:min(62vw,25svh,270px);}
.door-dolly{top:46.5%;}
.project-ident{top:75px;}
.project-ident strong{font-size:1.42rem;}
.door-panel:before{inset:5px;}
.physical-trim{inset:-13px;}
.trim-left,.trim-right{width:13px;}.trim-top{height:13px;}.trim-joint{width:14px;height:15px;}
.door-aperture{inset:4px!important;}
.hardware-lever{width:44px;}.hardware-tip{left:-44px;}
.hardware-rose{width:23px;height:23px;}
.door-hinge-assembly{height:27px;left:-6px;}
.hinge-plate{height:18px;top:5px;}.hinge-screw-top{top:7px}.hinge-screw-bottom{bottom:7px}
.chapter-gallery-hud{bottom:41px;min-width:220px;max-width:calc(100vw - 56px);}
.chapter-gallery-hud .hud-caption{font-size:.68rem;}
.chapter-gallery-hud .hud-word,.chapter-gallery-hud .hud-fraction{font-size:.52rem;}
.compare-chip{bottom:-42px;right:0;max-height:34px;}
}
@media(prefers-reduced-motion:reduce){.door-dolly,.door-leaf,.hardware-spindle,.scene-photo{will-change:auto!important}.project-ident{transition:none!important}}

/* Last-pass collision and physical-material refinements. */
.door-leaf-back:before,.door-leaf-back:after{content:none!important;display:none!important;}
.chapter.is-entered .chapter-prompt{opacity:0!important;visibility:hidden;}
.chapter--country .compare-chip{position:absolute;z-index:12;top:auto;left:auto;right:clamp(22px,5vw,90px);bottom:26px;transform:none;}
@media(max-width:800px){.chapter--country .compare-chip{left:50%;right:auto;bottom:8px;transform:translateX(-50%);max-height:36px;}.chapter-gallery-hud{bottom:58px;}}
/* Both handles share the same latch axis on opposite sides of a 40 mm leaf. */
.hardware-rose--inside{right:auto!important;left:11%;transform:translate(-50%,-50%) translateZ(2px)}
.hardware-rose--inside .hardware-lever{right:auto;left:0;}

/* ================== PRO.REMONT51 v4 : inward opening / camera ================== */
/* Genuine uniform 3-D transformation; never scale X/Y independently. */
.door-dolly{
  transform-origin:50% 50%;
  transform:translate(-50%,-50%) translate3d(var(--camera-x,0px),var(--camera-y,0px),0) scale(var(--camera-scale,1));
  perspective:1800px;
  filter:drop-shadow(3px 9px 13px #0b0e1160);
}
.door-frame{perspective:1800px;transform-style:preserve-3d;}
.door-leaf{transform-origin:0 50%;transform:rotateY(var(--angle,0deg));}
/* Side surfaces remain truly attached to the same pivoting leaf. */
.door-leaf-face,.door-leaf-back{backface-visibility:hidden;}
.door-leaf-face{transform:translateZ(11px);}
.door-leaf-back{transform:rotateY(180deg) translateZ(11px);}
.door-leaf-edge{transform-origin:right center;}
.door-aperture{background:#182029;}
.door-aperture .photo-zoom{overflow:hidden;}
/* Projection plane is cropped by the original physical jamb at all times. */
.door-aperture .photos-layer{
  position:absolute;left:0;top:0;right:0;bottom:auto;
  width:100%;height:100%;overflow:hidden;
  transform:translateZ(-2px);
}
.door-aperture .scene-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 44%;}
.door-aperture .scene-photo:first-child{opacity:1;}
/* A continuous shadow at the hinge / frame keeps the leaf grounded as it turns. */
.door-leaf-face{box-shadow:inset 0 0 0 6px #d5c8b6,inset 0 0 0 8px #ac9b83,2px 5px 12px #080d1350;}
.door-hinge-assembly{transform:translate(-45%,-50%) translateZ(15px);}
/* The text and comparison controls are outside the near-field image frame. */
.chapter-gallery-hud{
  position:absolute;z-index:12;bottom:clamp(17px,3.0vh,30px);left:clamp(16px,3.6vw,62px);
  max-width:min(370px,39vw);min-width:160px;padding:9px 13px;
  background:#102029ea;box-shadow:0 6px 25px #0006;
}
.chapter--country .compare-chip{bottom:clamp(20px,3vh,33px);right:clamp(18px,4vw,72px);}
.chapter-prompt{position:absolute;bottom:21px;}
/* The later gallery remains in exactly the same opening; shadows and leaf are stationary. */
@media(max-width:800px){
  .chapter-gallery-hud{left:16px;bottom:69px;max-width:calc(100vw - 32px);width:fit-content;min-width:170px;transform:translateY(12px);}
  .chapter.is-entered .chapter-gallery-hud{transform:none;}
  .chapter--country .compare-chip{right:14px;left:auto;bottom:15px;transform:none;}
  .door-dolly{top:46.5%;}
  .chapter-prompt{bottom:16px;}
}
@media(max-width:540px){
  .chapter-gallery-hud{left:12px;bottom:70px;max-width:min(280px,calc(100vw - 24px));padding:7px 10px;}
  .chapter--country .compare-chip{right:12px;bottom:16px;left:auto;transform:none;}
}
/* Composite the near photographic plane behind the physical 3-D leaf. Without
   this flattened parent stacking layer, Chromium depth-sorts a door opened
   inwards behind the flat photo, making the slab incorrectly disappear. */
.door-frame{transform-style:flat;}

/* Film-grade exit gallery rail: text belongs outside the photograph on phones. */
@media(max-width:800px){
 .chapter.is-entered .chapter-sticky:after{content:"";position:absolute;inset:auto 0 0;height:92px;background:#14232b;box-shadow:0 -1px 0 #dfc99e4d;z-index:10;pointer-events:none;}
 .chapter-gallery-hud,.chapter.is-entered .chapter-gallery-hud{bottom:13px;left:12px;max-width:min(275px,calc(100vw - 25px));min-width:170px;transform:none;}
 .chapter--country .chapter-gallery-hud{max-width:min(188px,49vw);min-width:144px;}
 .chapter--country .compare-chip{bottom:19px;right:10px;z-index:13;}
 .chapter-gallery-hud{box-shadow:none;padding:5px 9px;border-left-width:2px;background:transparent;backdrop-filter:none;}
 .chapter-gallery-hud .hud-caption{font-size:.72rem;line-height:1.23;}
 .chapter-gallery-hud .hud-word{font-size:.45rem;}
 .chapter-gallery-hud .hud-fraction{font-size:.49rem;}
}
/* Fast accessibility route for users requesting minimal animation. */
.reduced-gallery{display:none;}
@media(prefers-reduced-motion:reduce){
 .chapter--reduced{height:auto!important;min-height:0!important;}
 .chapter--reduced .chapter-sticky{height:auto!important;position:relative!important;min-height:0;padding:105px 18px 50px;display:block;}
 .chapter--reduced .stage-body,.chapter--reduced .chapter-prompt,.chapter--reduced .chapter-gallery-hud{display:none!important;}
 .chapter--reduced .project-ident{position:relative!important;left:auto!important;top:auto!important;margin:0 0 22px;opacity:1!important;max-width:none;width:auto;text-align:left;align-items:flex-start;}
 .chapter--reduced .project-ident-caption{display:block;}
 .chapter--reduced .reduced-gallery{position:relative;z-index:3;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:14px;max-width:1100px;margin:0 auto;}
 .reduced-gallery-item{display:flex;flex-direction:column;overflow:hidden;border:1px solid #c6ad8660;border-radius:8px;text-align:left;padding:0;background:#15242acc;color:#fff;cursor:zoom-in;}
 .reduced-gallery-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;}
 .reduced-gallery-item span{padding:11px 13px;font-size:.85rem;}
 .chapter--reduced .chapter--country .compare-chip{position:relative;}
 .chapter--country.chapter--reduced .compare-chip{opacity:1!important;visibility:visible!important;position:relative;left:18px;right:auto;bottom:auto;transform:none;margin-bottom:25px;pointer-events:auto;}
}

/* Preserve the photo unobstructed; contacts remain available in top nav/footer. */
body.is-door-scene .floating-contacts{opacity:0;pointer-events:none;transform:translateY(12px);}
.reduced-gallery-title{display:none;}
@media(prefers-reduced-motion:reduce){
  .chapter--reduced .reduced-gallery-title{display:block;position:relative;z-index:4;margin:0 auto 21px;max-width:1100px;color:#f3dfb9;font:400 clamp(1.9rem,5vw,3rem)/1.12 var(--serif);}
  .chapter--kids.chapter--reduced .reduced-gallery-title{color:#40352d;}
}
