/* Let selected Elementor templates break out of Zibll widget card shells.
 * Usage: add CSS class "baize-fullbleed-template" to the outermost Elementor container.
 */

body.home .zib-widget.baize-elementor-widget-shell,
body.home .zib-widget:has(.baize-fullbleed-template) {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

body.home .content-layout > .zib-widget.baize-elementor-widget-shell,
body.home .content-layout > .zib-widget:has(.baize-fullbleed-template) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body.home .fluid-widget > .zib-widget.baize-elementor-widget-shell,
body.home .fluid-widget > .zib-widget:has(.baize-fullbleed-template) {
  width: 100% !important;
  max-width: none !important;
}

body.home .baize-fullbleed-template {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home .baize-fullbleed-template > .e-con-inner {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
}

body.home .baize-fullbleed-template.elementor-section .elementor-container {
  max-width: 1240px !important;
}

@media (max-width: 767px) {
  body.home .baize-fullbleed-template > .e-con-inner,
  body.home .baize-fullbleed-template.elementor-section .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
  }
}
