/* Site width is controlled by LENSEST settings; nested columns remain editable. */
@media(min-width:1024px){
 body.lensest-shell{--wp--style--global--content-size:var(--ls-desktop-width,1600px);--wp--style--global--wide-size:var(--ls-desktop-width,1600px)}
 body.lensest-shell .wp-site-blocks>main.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)),
 body.lensest-shell .wp-site-blocks>main .wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:var(--ls-desktop-width,1600px)!important}
 body.lensest-shell .wp-site-blocks>main{box-sizing:border-box;width:100%;padding-left:clamp(24px,3vw,56px)!important;padding-right:clamp(24px,3vw,56px)!important}
 body.lensest-designed .lensest-finder,body.lensest-designed .lensest-intro{max-width:var(--ls-desktop-width,1600px)}
 body.lensest-shell .lensest-guide-panel>p{max-width:72ch}
}
/* Automatic layout follows the available container width, without a desktop cap. */
body.lensest-shell.lensest-auto-layout{--wp--style--global--content-size:100%;--wp--style--global--wide-size:100%}
body.lensest-shell.lensest-auto-layout .wp-site-blocks>main{width:100%;box-sizing:border-box;padding-left:clamp(16px,3vw,56px)!important;padding-right:clamp(16px,3vw,56px)!important}
body.lensest-shell.lensest-auto-layout .wp-site-blocks>main.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.lensest-shell.lensest-auto-layout .wp-site-blocks>main .wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:100%!important}
body.lensest-designed.lensest-auto-layout .lensest-finder,body.lensest-designed.lensest-auto-layout .lensest-intro{max-width:100%}
body.lensest-auto-layout .lensest-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important}
body.lensest-auto-layout .lensest-results-rows .lensest-grid{grid-template-columns:1fr!important}
body.lensest-auto-layout .lensest-mount-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))!important}
body.lensest-auto-layout .lensest-adapter-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
body.lensest-auto-layout .wp-block-column,body.lensest-auto-layout .lensest-filter>*{min-width:0}
body.lensest-auto-layout .wp-block-table{max-width:100%;overflow-x:auto}
body.lensest-auto-layout .lensest-guide-panel>p{max-width:72ch}
body.lensest-auto-layout .lensest-filter input,body.lensest-auto-layout .lensest-filter select{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:1000px){
 body.lensest-shell.lensest-auto-layout .wp-site-blocks>main>.wp-block-columns{flex-wrap:wrap!important}
 body.lensest-shell.lensest-auto-layout .wp-site-blocks>main>.wp-block-columns>.wp-block-column{flex-basis:100%!important}
}
@media(max-width:540px){
 body.lensest-auto-layout .lensest-module{padding:18px}
 body.lensest-auto-layout .lensest-stage-content>.lensest-module--heading{max-width:100%}
 body.lensest-auto-layout .lensest-results-rows .lens-card>a{flex-direction:column;align-items:stretch}
 body.lensest-auto-layout .lensest-results-rows .lens-card img{width:100%}
}
