/* Evolution Stereo 1.4 — full-width layout for internal pages.
 * Scoped away from the custom homepage so its approved composition is unchanged.
 */
body:not(.home):not(.front-page) .dt-container-md,
body:not(.home):not(.front-page) .dt-container,
body:not(.home):not(.front-page) .container,
body:not(.home):not(.front-page) .site-content > .container {
  width: 100% !important;
  max-width: 100% !important;
}

body:not(.home):not(.front-page) .dt-container-md {
  padding-left: clamp(14px, 2.4vw, 38px) !important;
  padding-right: clamp(14px, 2.4vw, 38px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Use the full content row instead of the theme's default content/sidebar split. */
body:not(.home):not(.front-page) #dt-main,
body:not(.home):not(.front-page) #dt-content,
body:not(.home):not(.front-page) .content-area,
body:not(.home):not(.front-page) main.site-main,
body:not(.home):not(.front-page) .site-main,
body:not(.home):not(.front-page) .woocommerce-page .content-area,
body:not(.home):not(.front-page) .woocommerce-page #dt-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body:not(.home):not(.front-page) #dt-sidebar,
body:not(.home):not(.front-page) #secondary,
body:not(.home):not(.front-page) .dt-sidebar {
  display: none !important;
}

/* Elementor pages: let boxed sections use the full available page width. */
body:not(.home):not(.front-page) .elementor-section.elementor-section-boxed > .elementor-container,
body:not(.home):not(.front-page) .e-con.e-con-boxed {
  width: 100% !important;
  max-width: 100% !important;
}

body:not(.home):not(.front-page) .elementor-section > .elementor-container {
  padding-left: clamp(12px, 2vw, 30px);
  padding-right: clamp(12px, 2vw, 30px);
}

/* Avoid accidental horizontal overflow in wide tables, galleries and product grids. */
body:not(.home):not(.front-page) #content,
body:not(.home):not(.front-page) .site-content,
body:not(.home):not(.front-page) .woocommerce,
body:not(.home):not(.front-page) .elementor {
  min-width: 0;
  max-width: 100%;
}

body:not(.home):not(.front-page) .entry-content,
body:not(.home):not(.front-page) .page-content {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body:not(.home):not(.front-page) .dt-container-md {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body:not(.home):not(.front-page) .elementor-section > .elementor-container {
    padding-left: 0;
    padding-right: 0;
  }
}
