/* One outer text boundary, shared with the header. Internal column spacing,
   centered display statements and edge-to-edge image rows remain independent. */
body.g-preview{--text-gutter:32px;--gutter:var(--text-gutter)!important;--image-copy-gutter:var(--text-gutter)}
body.g-preview .g-header{padding-inline:var(--text-gutter)!important}
body.g-preview .project-contextbar{padding-inline:var(--text-gutter)!important}
body.g-preview :is(.quote-shell,.cv-privacy-page){padding-inline:var(--text-gutter)}
body.g-preview.g-quote-page .quote-shell{padding-inline:var(--text-gutter)}
body.g-preview .cv-privacy-page{max-width:none;margin-inline:0}
body.g-preview .cv-privacy-page>section{max-width:80ch}
body.g-preview .g-opening-copy{padding-inline:var(--text-gutter)}
body.g-preview .g-category-editorial>.g-category-copy{padding-inline:var(--text-gutter)}
body.g-preview.g-home #showroom :is(.ce-steps,.cv-services-pair){max-width:none}
body.g-preview.pd-product :is(.credit,.nc-gallery-caption,.vp-image-meta,.vp-image-code,.pa-material-caption,.pa-option-row,.pa-media-actions){padding-inline:var(--text-gutter)}
@media(min-width:761px){body.g-preview.pd-product .ensemble-panel>.product-summary{padding-inline:0}}
/* Image-bearing sections keep zero outer padding; only captions receive it. */
body.g-preview :is(.mc-projects,.vp-related,.pa-project-preview,.altro-projects):has(img){padding-inline:0}
body.g-preview :is(.mc-projects,.vp-related,.pa-project-preview,.altro-projects)>:is(header,h2,p,.ap-heading,.ap-filters){padding-inline:var(--text-gutter)}
body.g-preview .pb-content>.pb-count{max-width:none;width:100%;box-sizing:border-box}
@media(max-width:760px){
 body.g-preview{--text-gutter:20px}
 body.g-preview :is(.g-section:not(.ce-entry-directions),.quote-shell,footer,.ce-brand-summary,.ce-hero-mobile-text){padding-inline:var(--text-gutter)}
 body.g-preview :is(.ce-hero-copy,.cv-opening-signature){left:var(--text-gutter);right:var(--text-gutter)}
 body.g-preview .ce-entry-directions{padding-inline:0}
 body.g-preview :is(.product-grid,.collection-grid)>:is(.product-card,.collection-card)>:not(.product-image):not(.collection-image):not(figure):not(img){padding-inline:var(--text-gutter)}
}

/* Native catalogues share the inspiration pages' outer reading axis. Keep the
   original controls, their order and the full-width photographic grid. */
body.g-preview .g-commercial-navigation{margin-inline:var(--text-gutter)}
body.g-preview .g-commercial-navigation>.pb-commercial-nav{margin-inline:0}
body.g-preview .catalogue-layout:has(>.catalogue-results){grid-template-columns:minmax(0,1fr);column-gap:0}
body.g-preview .catalogue-layout:has(>.catalogue-results)>.catalogue-sidebar{grid-column:1;grid-row:auto;padding-inline:var(--text-gutter);min-width:0}
body.g-preview .catalogue-layout>.catalogue-results>*{grid-column:1;margin-inline:var(--text-gutter)}
body.g-preview .catalogue-layout>.catalogue-results>:is(.product-grid,.collection-grid,.category-banners){margin-inline:0;padding-inline:0}
body.g-preview .catalogue-sidebar .project-primary-list{flex-flow:row wrap;gap:12px 24px}
body.g-preview .catalogue-sidebar .project-primary-list>a{max-width:100%;overflow-wrap:break-word}
/* Nested wrap blocks must not add a second page gutter. */
body.g-preview .g-commercial-navigation .wrap{padding-inline:0;max-width:none}

/* Facets are controls, not category navigation. Keep their column separate
   from results so a shared full-width gallery rule cannot stack them above it. */
@media(min-width:761px){
 body.g-preview .catalogue-layout:has(>.catalogue-sidebar :is(.material-checkbox,.sidebar-filter-group)){
  grid-template-columns:calc(220px + var(--text-gutter)) minmax(0,1fr);
  column-gap:var(--text-gutter);
  align-items:start;
 }
 body.g-preview .catalogue-layout:has(>.catalogue-sidebar :is(.material-checkbox,.sidebar-filter-group))>.catalogue-sidebar{
  grid-column:1;grid-row:1;padding-left:var(--text-gutter);padding-right:0;
 }
 body.g-preview .catalogue-layout:has(>.catalogue-sidebar :is(.material-checkbox,.sidebar-filter-group))>.catalogue-results{
  display:block;grid-column:2;grid-row:1;min-width:0;
 }
 body.g-preview .catalogue-layout:has(>.catalogue-sidebar :is(.material-checkbox,.sidebar-filter-group))>.catalogue-results>*{
  margin-left:0;margin-right:var(--text-gutter);
 }
 body.g-preview .catalogue-layout:has(>.catalogue-sidebar :is(.material-checkbox,.sidebar-filter-group))>.catalogue-results>:is(.product-grid,.collection-grid,.category-banners){
  margin-inline:0;
 }
}

body.g-preview .mc-projects>.mc-section-heading{padding-inline:var(--text-gutter);box-sizing:border-box}
body.g-preview :is(.cv-card-overlay,.pb-project-overlay){padding-inline:var(--text-gutter)!important}
