/*
 * Constrain the section's content box as a whole, preserving flex/grid columns.
 * Do not add wrappers, constrain each column separately, or use 100vw breakouts.
 * Backgrounds, overlays and shape dividers remain on the full-width outer box.
 */
:is(
    .elementor[data-elementor-type="wp-page"] > .e-con,
    .elementor[data-elementor-type="wp-post"] > .e-con,
    .elementor[data-elementor-type="single-page"] > .e-con,
    .elementor[data-elementor-type="single-post"] > .e-con,
    .elementor[data-elementor-type="wp-page"] > .elementor-section,
    .elementor[data-elementor-type="wp-post"] > .elementor-section,
    .elementor[data-elementor-type="wp-page"] > .elementor-section-wrap > .elementor-section,
    .elementor[data-elementor-type="wp-post"] > .elementor-section-wrap > .elementor-section,
    :where(.bp-home-page .elementor.elementor-edit-area[data-elementor-type="wp-page"] > .elementor-section-wrap) > .e-con,
    .e-con.recw-section,
    .elementor-section.recw-section
):not(.recw-full-width, .elementor-absolute, .elementor-fixed) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding-inline: max(var(--recw-gutter, 24px), calc((100% - var(--recw-site-width, 1140px)) / 2)) !important;
}

/* A classic boxed inner wrapper must also follow the global width, not a stale local override. */
:is(
    .elementor[data-elementor-type="wp-page"] > .e-con,
    .elementor[data-elementor-type="wp-post"] > .e-con,
    .elementor[data-elementor-type="single-page"] > .e-con,
    .elementor[data-elementor-type="single-post"] > .e-con,
    .elementor[data-elementor-type="wp-page"] > .elementor-section,
    .elementor[data-elementor-type="wp-post"] > .elementor-section,
    .elementor[data-elementor-type="wp-page"] > .elementor-section-wrap > .elementor-section,
    .elementor[data-elementor-type="wp-post"] > .elementor-section-wrap > .elementor-section,
    :where(.bp-home-page .elementor.elementor-edit-area[data-elementor-type="wp-page"] > .elementor-section-wrap) > .e-con,
    .e-con.recw-section,
    .elementor-section.recw-section
):not(.recw-full-width, .elementor-absolute, .elementor-fixed) > :is(.e-con-inner, .elementor-container) {
    width: 100% !important;
    max-width: min(100%, var(--recw-site-width, 1140px)) !important;
    margin-inline: auto !important;
}
