/* Carnet: the detail model and its finish belong to the same gallery. */
.gallery-studio .section-head{grid-template-columns:1.3fr 1fr;gap:60px;align-items:end;margin-bottom:32px}
.gallery-studio .section-head h2{max-width:none}
.gallery-studio .section-head>p{max-width:43ch;font-size:15px;padding-bottom:4px}
.gallery-benefits{display:flex;flex-wrap:wrap;gap:12px 28px;list-style:none;padding:0;margin:24px 0 0;color:var(--soft);font-size:13px;line-height:1.6}
.gallery-benefits li:first-child{max-width:26ch}
.gallery-benefits strong{display:block;color:var(--ink);font-size:16px;font-weight:500}
.gallery-benefits li+li{border-left:1px solid var(--line);padding-left:28px}
.gallery-studio .gallery-essay-v2{height:610px}
.gallery-detail{scroll-margin-top:160px}
.gallery-model-stage{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;background:var(--deep)}
.gallery-live-label{position:absolute;top:12px;left:14px;font:11px var(--mono);color:var(--soft);z-index:1;pointer-events:none}
.gallery-detail .studio-viewport{height:auto;min-height:145px;flex:1;margin:0}
.gallery-detail .studio-controls{padding:0 8px;gap:6px;min-height:45px;border-top:1px solid var(--line)}
.gallery-detail #studio-state{margin-left:auto;font-size:11px;max-width:14ch}
.gallery-studio #gallery-quote{font-size:11px}
.gallery-shot.gallery-detail button{width:auto;height:auto;flex:none;min-height:44px;min-width:44px;padding:8px;background:transparent;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;overflow:visible;cursor:pointer;font:12px var(--sans)}
.gallery-detail .studio-motion{gap:0}
.gallery-shot.gallery-detail button.studio-zoom{position:static;padding:8px;border-left:1px solid var(--line)}
.gallery-detail .studio-zoom svg{width:15px;height:15px}
.gallery-detail .studio-zoom span{font-size:11px}
.gallery-detail figcaption{display:flex;align-items:center;margin-top:0;gap:8px;min-height:44px}
.gallery-shot.gallery-detail button.gallery-colour{padding:0 0 0 8px;gap:8px;min-height:44px;color:var(--ink);font:12px var(--sans)}
.gallery-colour-chip{display:block;width:20px;height:20px;background:#383e42;border:1px solid #0a090840}
.gallery-colour svg{width:12px;height:12px}
.gallery-shot.gallery-detail button:focus-visible{outline:3px solid var(--blue-deep);outline-offset:2px;z-index:2}
.gallery-detail .studio-fallback{padding:28px 12px 8px;gap:5px;background:var(--deep)}
.gallery-detail .studio-fallback img{position:static;inset:auto;height:55px;width:100%;padding:0}
.gallery-detail .studio-fallback p{font-size:11px;line-height:1.45;max-width:42ch}
.gallery-palette{position:fixed;inset:auto;margin:0;padding:22px;width:450px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);background:var(--paper);color:var(--ink);box-shadow:0 15px 55px #0a090826}
.gallery-palette:popover-open{display:block}
.gallery-palette::backdrop{background:transparent}
.gallery-palette-header{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:20px}
.gallery-palette-done svg{width:18px;height:18px}
.gallery-palette-header h3{font:29px/1.1 var(--serif);max-width:20ch;letter-spacing:-.015em}
.gallery-palette-header .icon-button{border:0;margin:-10px -10px 0 0}
.gallery-palette .studio-palette{padding:0;border:0}
.gallery-palette .studio-selection{grid-template-columns:38px 1fr;gap:12px;margin-bottom:18px;min-height:48px}
.gallery-palette .studio-selected-chip{width:38px;height:48px}
.gallery-palette .studio-selected-code{font-size:12px;margin-bottom:3px}
.gallery-palette .studio-selected-name{font-size:18px}
.gallery-palette .studio-selected-finish{font-size:11px;margin-top:3px}
.gallery-palette .studio-field-label{font-size:11px;margin-bottom:6px}
.gallery-palette .studio-filters{gap:10px}
.gallery-palette .studio-swatches{grid-template-columns:repeat(7,minmax(0,1fr));max-height:206px}
.gallery-palette .studio-keyboard{font-size:11px;line-height:1.5;margin-top:10px}
.gallery-palette .studio-bottom{display:block;padding-top:15px}
.gallery-palette .studio-note{font-size:11px;line-height:1.6;max-width:none}
.gallery-palette .studio-quote{margin-top:15px}
.gallery-palette .studio-quote p{font-size:11px}
.gallery-palette-done{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 0;margin-top:10px;background:none;border:0;border-top:1px solid var(--line);font:12px var(--sans);color:var(--ink);cursor:pointer}
.gallery-palette :is(button,input,select,a):focus-visible{outline:3px solid var(--blue-deep);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.gallery-shot.gallery-detail button:hover{background:var(--paper)}.gallery-colour:hover span:first-child{text-decoration:underline;text-underline-offset:4px}.gallery-palette-done:hover{color:var(--blue-deep)}}
@media(max-width:1100px) and (min-width:768px){.gallery-studio .section-head{gap:30px}.gallery-studio .gallery-essay-v2{grid-template-columns:1.35fr 1fr}.gallery-detail #studio-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.gallery-palette{width:410px}.gallery-palette .studio-swatches{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:767px){
 .gallery-studio .section-head{grid-template-columns:1fr;gap:23px;margin-bottom:27px}
 .gallery-studio .section-head>p{font-size:14px;max-width:40ch;padding:0}
 .gallery-benefits{gap:12px 19px;margin-top:22px;font-size:12px;flex-wrap:nowrap}
 .gallery-benefits li:first-child{max-width:25ch;flex:1}
 .gallery-benefits strong{font-size:15px}
 .gallery-benefits li+li{padding-left:19px;max-width:14ch}
 .gallery-studio .gallery-essay-v2{height:auto;grid-template-columns:1fr;grid-template-rows:auto;gap:24px}
 .gallery-studio .gallery-lead{grid-column:auto}
 .gallery-studio .gallery-shot:not(.gallery-lead):not(.gallery-detail)>button{height:230px}
 .gallery-detail .gallery-model-stage{flex:none;height:295px}
 .gallery-detail .studio-viewport{min-height:0}
 .gallery-detail #studio-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .gallery-detail .studio-controls{justify-content:space-between}
 .gallery-detail figcaption{display:flex;min-height:44px}
 .gallery-detail figcaption span:last-child{margin-top:0}
 .gallery-palette{inset:auto 0 0;width:100%;max-width:none;max-height:70dvh;padding:20px 20px max(16px,env(safe-area-inset-bottom));border-width:1px 0 0}
 .gallery-palette-header{margin-bottom:17px}
 .gallery-palette-header h3{font-size:27px}
 .gallery-palette .studio-swatches{grid-template-columns:repeat(6,minmax(0,1fr));max-height:160px}
 .gallery-palette .studio-selection{margin-bottom:16px}
 .gallery-palette .studio-quote .btn{min-height:48px}
 .gallery-palette .studio-filters :is(input,select){font-size:16px}
}
@media(prefers-reduced-motion:reduce){.gallery-palette{scroll-behavior:auto}}
