/* Shared outer frame follows the existing homepage, without fixing page height. */
:root{--mertgo-page-width:1480px;--mertgo-page-inset:36px}
@media(max-width:700px){:root{--mertgo-page-inset:20px}}
:is(.mgpage,.mgsp,.mgc-page,.mg-service-page,.mg-process,.mg-catalog,.mg-banner-catalog){box-sizing:border-box;width:min(var(--mertgo-page-width),calc(100% - var(--mertgo-page-inset)))!important;max-width:var(--mertgo-page-width)!important;margin-left:auto!important;margin-right:auto!important;min-width:0}
/* A template shell already owns its inset; nested full-page widgets must not repeat it. */
:is(.mgc-page,.mgpage,.mgsp,.mg-service-page,.mg-process,.mg-catalog,.mg-banner-catalog) :is(.mgpage,.mgsp,.mgc-page,.mg-service-page,.mg-process,.mg-catalog,.mg-banner-catalog){width:100%!important;max-width:none!important}
/* Remove Elementor's default boxed limit only around Mertgo sections. Column widths remain intact. */
.elementor-section.elementor-section-boxed:has(:is(.mg-header,.mg-hero,.mg-products,.mg-projects,.mg-benefits,.mg-used,.mg-brands,.mg-footer,.mgpage,.mgsp,.mgc,.mg-service-page,.mg-process,.mg-catalog,.mg-banner-catalog))>.elementor-container{max-width:none!important;width:100%}
.e-con.e-con-boxed:has(:is(.mg-header,.mg-hero,.mg-products,.mg-projects,.mg-benefits,.mg-used,.mg-brands,.mg-footer,.mgpage,.mgsp,.mgc,.mg-service-page,.mg-process,.mg-catalog,.mg-banner-catalog))>.e-con-inner{max-width:none!important;width:100%}
/* Align an Elementor archive document composed of individual catalog widgets. */
.elementor:not(.mgc-page .elementor)>.elementor-section:has(.mgc):not(:has(.mgc-page,.mgc-used-page))>.elementor-container,.elementor:not(.mgc-page .elementor)>.e-con:has(.mgc):not(:has(.mgc-page,.mgc-used-page))>.e-con-inner{width:min(var(--mertgo-page-width),calc(100% - var(--mertgo-page-inset)))!important;max-width:var(--mertgo-page-width)!important;margin-left:auto;margin-right:auto}
.mgc-page .elementor-section>.elementor-container,.mgc-page .e-con>.e-con-inner{width:100%!important;max-width:none!important}
