/* Extend only the modern Oiii section wrappers to the viewport. Avoid Avada's
   generic container pseudo-elements, which it uses for pattern and mask art. */
body #main .oiii-st-page,
body #main .oiii-drive-page,
body #main .oiii-modern-page-hero,
body #main .oiii-merchant-page,
body.home #main .oiii-home-container {
  isolation: isolate;
  position: relative;
}

/* These hero styles used overflow clipping for their decorative artwork. It
   also clipped the viewport-wide background layer, so allow that layer out. */
body #main .oiii-st-hero,
body #main .oiii-drive-hero,
body #main .oiii-drive-start-section,
body #main .oiii-merchant-hero,
body.home #main .oiii-home-container {
  overflow: visible !important;
}

body #main .oiii-st-page::before,
body #main .oiii-drive-page::before,
body #main .oiii-modern-page-hero::before,
body #main .oiii-merchant-page::before,
body.home #main .oiii-home-container::before {
  background: inherit;
  content: "";
  inset-block: 0;
  left: 50%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}
