.format-gallery { --gallery-border:#dfe2e5; --gallery-muted:#606772; max-width:1680px; margin:auto; padding:124px 36px 48px; overflow:visible; }
.gallery-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:30px; }
.gallery-heading h1 { margin:0; font-size:clamp(30px,3.3vw,48px); line-height:1.12; letter-spacing:-.055em; font-weight:760; }
.gallery-heading h1 > span { color:var(--brand); }
.gallery-intro { margin:13px 0 0; font-size:16px; line-height:1.6; color:#59616d; }
.gallery-contact { display:flex; align-items:center; gap:20px; text-decoration:none; padding:13px 0 13px 18px; font-size:14px; font-weight:650; flex-shrink:0; }
.gallery-contact:hover { color:var(--brand-dark); }
.gallery-icon { width:21px; height:21px; flex:none; vertical-align:middle; }
.gallery-workbench { border:1px solid var(--gallery-border); border-radius:15px; background:#fff; box-shadow:0 14px 45px #17222f08; overflow:hidden; }
.gallery-toolbar { min-height:65px; display:flex; align-items:center; gap:20px; padding:11px 18px; border-bottom:1px solid var(--gallery-border); background:#fff; }
.gallery-devices { display:flex; align-items:center; gap:4px; }
.gallery-device,.gallery-tool { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; min-width:40px; color:#666c75; background:transparent; border:0; border-radius:6px; cursor:pointer; font:inherit; font-size:14px; }
.gallery-device { padding:9px 11px; }
.gallery-device[aria-pressed=true] { color:var(--brand-dark); background:#fbefee; font-weight:650; }
.gallery-device:hover,.gallery-tool:hover { background:#f0f1f3; color:#20242b; }
.gallery-sizing { display:flex; align-items:center; border-left:1px solid var(--gallery-border); padding-left:16px; gap:8px; font-size:14px; color:var(--gallery-muted); }
.gallery-width-label { margin-right:5px; }
#gallery-width { width:64px; padding:7px 4px; border:1px solid #d6dbe0; border-radius:5px; background:#fff; text-align:center; color:#252b33; font-size:14px; font-variant-numeric:tabular-nums; appearance:textfield; }
#gallery-width::-webkit-inner-spin-button,#gallery-width::-webkit-outer-spin-button { appearance:none; margin:0; }
.gallery-unit { color:#747b84; font-size:12px; }
.gallery-toolbar-actions { display:flex; gap:3px; margin-left:auto; }
.gallery-body { display:grid; grid-template-columns:258px minmax(0,1fr); position:relative; }
.gallery-controls { display:flex; flex-direction:column; padding:24px 16px 20px; border-right:1px solid var(--gallery-border); background:#fff; min-width:0; }
.gallery-controls-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; padding:0 8px; }
.gallery-controls h2 { margin:0; font-size:14px; letter-spacing:.01em; font-weight:700; }
.gallery-formats { display:grid; gap:6px; }
.gallery-format { display:flex; align-items:center; gap:12px; width:100%; min-height:76px; padding:10px; border:1px solid transparent; border-radius:9px; background:transparent; text-align:left; cursor:pointer; color:#353b43; font-size:14px; line-height:1.3; font-weight:650; }
.gallery-format:hover { background:#f7f7f8; }
.gallery-format[aria-pressed=true] { border-color:#e7b6b4; background:#fcf3f2; color:#a92b29; }
.gallery-format small { display:block; font-size:12px; line-height:1.5; margin-top:5px; color:#737984; font-weight:400; }
.gallery-format-check { display:none; margin-left:auto; }
.gallery-format-check .gallery-icon { width:15px; height:15px; }
.gallery-format[aria-pressed=true] .gallery-format-check { display:block; }
.format-drawing { position:relative; width:38px; height:44px; border:1px solid #cdd2d8; border-radius:3px; flex-shrink:0; overflow:hidden; background:#fff; color:#d3413f; }
.format-drawing::before { content:""; position:absolute; top:5px; left:5px; right:5px; height:3px; background:#c5cbd1; }
.format-drawing i { display:block; position:absolute; left:5px; height:2px; width:26px; background:#dce0e4; }
.format-drawing i:nth-child(1) { top:12px; }.format-drawing i:nth-child(2) { top:17px; width:17px; }.format-drawing i:nth-child(3) { bottom:5px; }
.format-drawing b { display:block; position:absolute; left:5px; right:5px; top:23px; height:9px; border:1px solid currentColor; background:#fbe9e8; }
.format-drawing--anchor b { top:0; left:0; right:0; height:7px; }.format-drawing--anchor::before { top:10px; }.format-drawing--anchor i:nth-child(1) { top:18px; }.format-drawing--anchor i:nth-child(2) { top:24px; }
.format-drawing--skin { border-color:currentColor; border-width:5px; }.format-drawing--skin b { display:none; }
.format-drawing--siderail-left b,.format-drawing--siderail-right b { top:12px; bottom:5px; height:auto; width:7px; }
.format-drawing--siderail-left b { left:0; right:auto; }.format-drawing--siderail-right b { right:0; left:auto; }
.format-drawing--siderail-left i { left:11px; width:21px; }.format-drawing--siderail-right i { width:21px; }
.format-drawing--preroll b { top:14px; height:17px; }.format-drawing--preroll b::after { content:""; position:absolute; left:9px; top:4px; border-left:6px solid currentColor; border-top:4px solid transparent; border-bottom:4px solid transparent; }
.format-drawing--carousel b { height:14px; top:17px; width:13px; box-shadow:17px 0 0 -1px #fbe9e8,17px 0 0 0 currentColor; }
.gallery-selection { border-top:1px solid var(--gallery-border); margin:22px 8px 0; padding-top:17px; }
.gallery-selection-description { margin:0 0 17px; color:#606773; font-size:14px; line-height:1.65; min-height:68px; }
.gallery-view-placement { display:flex; align-items:center; justify-content:center; gap:8px; min-height:43px; width:100%; border:1px solid #e0b6b3; border-radius:6px; background:white; color:#aa302c; font-weight:650; font-size:13px; cursor:pointer; }
.gallery-view-placement:hover { background:#fcf1f0; }
.gallery-view-placement .gallery-icon { width:17px; height:17px; }
.gallery-options { display:grid; gap:16px; padding:22px 8px 0; margin-top:auto; }
.gallery-switch { display:flex; align-items:center; gap:9px; position:relative; font-size:12px; line-height:1.5; cursor:pointer; color:#555e6a; min-height:32px; }
.gallery-switch input { width:32px; height:32px; position:absolute; left:0; margin:0; opacity:0; }
.gallery-switch > span { display:block; flex:none; width:30px; height:18px; border-radius:10px; background:#bec5cc; padding:3px; transition:background .15s; }
.gallery-switch > span::after { content:""; display:block; width:12px; height:12px; border-radius:50%; background:white; box-shadow:0 1px 2px #0002; transition:transform .15s; }
.gallery-switch input:checked + span { background:#b93532; }.gallery-switch input:checked + span::after { transform:translateX(12px); }
.gallery-switch input:focus-visible + span { outline:3px solid #db938f; outline-offset:4px; }
.gallery-share { display:flex; align-items:center; gap:9px; min-height:34px; background:none; padding:0; border:0; cursor:pointer; font-size:13px; color:#555e6a; text-align:left; }
.gallery-share .gallery-icon { width:17px; height:17px; }.gallery-share:hover { color:var(--brand-dark); }
.gallery-preview-note { margin:18px 8px 0; padding-top:16px; border-top:1px solid var(--gallery-border); font-size:12px; line-height:1.65; color:#737b85; }
.gallery-stage { display:flex; flex-direction:column; min-width:0; min-height:0; background:#eef0f2; padding:0 12px; }
.gallery-stage-caption { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; height:46px; font-size:12px; color:#6c747f; }
.gallery-dimensions { font-variant-numeric:tabular-nums; font-size:12px; color:#67717c; }
.gallery-canvas { flex:1 0 auto; height:740px; height:clamp(570px,72vh,920px); position:relative; overflow:hidden; }
.gallery-frame-shell { position:relative; margin:0 auto; overflow:hidden; box-shadow:0 5px 28px #1d29321a; border:1px solid #d4d8dd; border-radius:3px; background:white; }
.gallery-frame { display:block; border:0; background:#fff; transform-origin:top left; width:100%; height:100%; }
.gallery-load-state { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; background:#eef0f2; font-size:14px; color:#68707d; }
.gallery-load-state button { padding:10px 20px; background:white; border:1px solid #ccd0d6; border-radius:6px; font:inherit; cursor:pointer; }
.gallery-load-state[hidden] { display:none; }
.gallery-stage-footer { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:15px; min-height:45px; font-size:12px; line-height:1.4; color:#707783; }
.gallery-stage-footer button { min-height:40px; border:0; background:none; color:#515a65; text-decoration:underline; font:inherit; cursor:pointer; }
.gallery-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.gallery-panel-toggle,.gallery-panel-close,.gallery-panel-backdrop { display:none; }
.gallery-workbench:is(:fullscreen,.is-expanded) { display:flex; flex-direction:column; border:0; border-radius:0; width:100%; height:100%; background:white; overflow:auto; }
.gallery-workbench.is-expanded { position:fixed; inset:0; z-index:80; }
html:has(.gallery-workbench.is-expanded) { overflow:hidden; }
.gallery-workbench:is(:fullscreen,.is-expanded) .gallery-toolbar { flex-shrink:0; }
.gallery-workbench:is(:fullscreen,.is-expanded) .gallery-body { flex:1; min-height:0; grid-template-rows:minmax(0,1fr); }
.gallery-workbench:is(:fullscreen,.is-expanded) .gallery-controls { min-height:0; overflow-y:auto; }
.gallery-workbench:is(:fullscreen,.is-expanded) .gallery-stage { height:100%; }
.gallery-workbench:is(:fullscreen,.is-expanded) .gallery-canvas { flex:1 1 0; height:auto; min-height:0; }
.format-gallery button:focus-visible,.format-gallery a:focus-visible,.format-gallery input:focus-visible { outline:3px solid #bd4e49; outline-offset:3px; }
.format-gallery + .site-footer { margin-top:0; }
body:has(.format-gallery) .site-header .header-inner { max-width:1608px; width:calc(100% - 72px); }
@media(min-width:981px) and (max-width:1200px) {
  body:has(.format-gallery) .header-inner { gap:18px; }
  body:has(.format-gallery) .header-account { display:none; }
}
@media(max-width:1100px) {
  .format-gallery { padding-inline:24px; }.gallery-body { grid-template-columns:230px minmax(0,1fr); }
  .gallery-controls { padding-inline:10px; }.gallery-format { gap:9px; }.gallery-format small { font-size:11px; }
  .gallery-stage { padding-inline:12px; }.gallery-device span { display:none; }.gallery-toolbar { gap:14px; }
}
@media(max-width:760px) {
  .format-gallery { padding:109px 14px 25px; }.gallery-heading { margin-bottom:22px; }.gallery-heading h1 { font-size:32px; }
  .gallery-contact { display:none; }.gallery-intro { font-size:14px; margin-top:10px; max-width:30ch; }
  .gallery-toolbar { min-height:60px; padding:9px; gap:8px; flex-wrap:wrap; }
  .gallery-panel-toggle { display:flex; padding-inline:9px; font-size:13px; border:1px solid #dcdfe3; color:#373f49; }
  .gallery-devices { gap:0; }.gallery-device { min-width:37px; padding:8px; }.gallery-device .gallery-icon { width:19px; }
  .gallery-sizing { padding-left:9px; gap:4px; margin-left:auto; }.gallery-width-label { display:none; }
  #gallery-width { width:51px; font-size:13px; }.gallery-sizing .gallery-tool { display:none; }
  .gallery-toolbar-actions { border-top:1px solid #eceef0; padding-top:6px; justify-content:flex-end; width:100%; }
  .gallery-toolbar-actions .gallery-tool { min-height:30px; }
  .gallery-body { display:block; }.gallery-stage { padding-inline:10px; }
  .gallery-stage-caption { height:38px; font-size:11px; }.gallery-stage-footer { font-size:11px; min-height:47px; }
  .gallery-canvas { height:620px; height:72svh; min-height:420px; }
  .gallery-controls { display:none; position:fixed; inset:auto 12px 12px; width:auto; max-height:calc(100dvh - 92px); z-index:62; border:1px solid #dfe2e5; border-radius:14px; box-shadow:0 15px 70px #10182044; overflow-y:auto; padding:18px 14px; }
  .gallery-workbench[data-panel-open=true] .gallery-controls { display:flex; }
  .gallery-panel-close { display:flex; min-height:32px; min-width:32px; }
  .gallery-panel-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:61; border:0; background:#15202a80; }
  html:has(.gallery-workbench[data-panel-open=true]) { overflow:hidden; }
  .gallery-format small { font-size:12px; }.gallery-selection { margin-top:16px; }.gallery-selection-description { min-height:auto; }
  .gallery-options { margin-top:15px; }.gallery-preview-note { font-size:11px; }
  body:has(.format-gallery) .site-header .header-inner { width:calc(100% - 28px); }
}
@media(max-width:374px) { .gallery-panel-toggle > span { display:none; } }
@media(prefers-reduced-motion:reduce) { .format-gallery *, .format-gallery *::after { transition:none!important; scroll-behavior:auto!important; } }
