/* Final composition corrections after live visual QA. */
html body #main .post-content > .fusion-fullwidth.dgh > .fusion-builder-row {
  width: 100% !important;
  max-width: 1230px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body #main .post-content > .fusion-fullwidth.dgh-split > .fusion-builder-row {
  align-items: center !important;
}

html body #main .post-content > .fusion-fullwidth.dgh-hero > .fusion-builder-row {
  align-items: center;
}

html body #main .dgh-hero .fusion-text {
  max-width: 860px;
}

html body #main .dgh-new-explainer {
  width: min(100%, 820px);
  box-sizing: border-box;
  margin-top: 30px !important;
  margin-bottom: 44px !important;
}

html body #main .dgh-new-explainer--article {
  width: min(100%, 780px);
}

html body #main .dgh-new-explainer img {
  width: 100%;
  max-width: 100%;
}

html body #main .dgh-new-explainer--detail {
  width: min(100%, 760px);
}

html body #main .dgh-explainer-section {
  min-height: 0 !important;
}

html body #main .dgh-explainer-section > .fusion-builder-row {
  min-height: 0 !important;
  align-items: center !important;
}

html body #main .dgh-explainer-section .fusion-builder-column,
html body #main .dgh-explainer-section .fusion-column-wrapper {
  min-height: 0 !important;
}

html body #main .dgh-new-explainer + h2,
html body #main .dgh-new-explainer + h3 {
  margin-top: 58px !important;
}

/* Keep editorial split sections visually balanced on desktop. Images remain
   supporting elements instead of filling half of an ultra-wide viewport. */
@media (min-width: 801px) {
  html body #main .post-content > .fusion-fullwidth.dgh-split > .fusion-builder-row {
    align-items: center !important;
    column-gap: clamp(32px, 4vw, 72px) !important;
  }

  html body #main .dgh-split .fusion-layout-column {
    min-width: 0 !important;
  }

  html body #main .dgh-split .dgh-mediacol {
    align-self: center !important;
  }

  html body #main .dgh-split .dgh-mediacol .dgh-media {
    min-height: 0 !important;
  }

  html body #main .dgh-split .dgh-mediacol .dgh-media img {
    display: block !important;
    width: 92% !important;
    max-width: 560px !important;
    max-height: 460px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 auto !important;
  }
}

/* Keep full-bleed section backgrounds while capping the readable content
   corridor on wide desktop screens. Avada writes a 100% row width inline,
   therefore the corridor is created with responsive section padding. */
@media (min-width: 1400px) {
  html body #main .post-content > .fusion-fullwidth.dgh {
    box-sizing: border-box !important;
    padding-left: max(30px, calc((100vw - 1230px) / 2)) !important;
    padding-right: max(30px, calc((100vw - 1230px) / 2)) !important;
  }
}

/* Keep the complete desktop navigation on one line on common notebook widths. */
@media (min-width: 1025px) and (max-width: 1399px) {
  html body .awb-menu__main-ul_row {
    flex-wrap: nowrap !important;
  }

  html body .awb-menu__main-a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 800px) {
  html,
  body,
  #wrapper,
  #main,
  .post-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body #main .post-content > .fusion-fullwidth.dgh {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    --awb-padding-left: 20px !important;
    --awb-padding-right: 20px !important;
  }

  html body #main .post-content > .fusion-fullwidth.dgh > .fusion-builder-row {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body #main .dgh .fusion-layout-column,
  html body #main .dgh .fusion-column-wrapper,
  html body #main .dgh .fusion-text {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body #main .dgh img,
  html body #main .dgh svg,
  html body #main .dgh figure,
  html body #main .dgh .imageframe-align-center {
    max-width: 100% !important;
    height: auto !important;
  }

  html body #main .dgh h1,
  html body #main .dgh h2,
  html body #main .dgh h3,
  html body #main .dgh p,
  html body #main .dgh li,
  html body #main .dgh a {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html body #main .dgh .dgh-grid,
  html body #main .dgh .dgh-checks {
    grid-template-columns: 1fr !important;
  }

  html body #main .dgh .dgh-btn,
  html body #main .dgh .fusion-button {
    white-space: normal !important;
    max-width: 100% !important;
  }

  html body #main .dgh-split .dgh-mediacol .dgh-media {
    min-height: 0 !important;
  }

  html body #main .dgh-split .dgh-mediacol .dgh-media img {
    width: 100% !important;
    max-height: 360px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
  }

  html body #main .dgh-hero .fusion-text {
    max-width: 100%;
  }
}
