/* dk: fixes to the saved old theme, found in the 5 Dec 2026 visual check. */

/* "My Core Beliefs" on /about (page 213) and /my-story (page 5279): Divi pins the heading and the
   three cards 590px from the left with no breakpoint, a layout made on a 1920px screen. Below that
   the third card ran off the right edge. Keep the 590px offset beside the photo and let the row
   take only the width that is left. */
@media (min-width: 981px) {
  .page-id-213 .et_pb_row_7.et_pb_row,
  .page-id-213 .et_pb_row_8.et_pb_row,
  .page-id-5279 .et_pb_row_4.et_pb_row,
  .page-id-5279 .et_pb_row_5.et_pb_row {
    max-width: min(1076px, calc(100% - 630px)) !important;
  }
}
/* Laptop widths: too narrow for three cards beside the photo, so the heading and cards move in a
   little and the cards stack. */
@media (min-width: 981px) and (max-width: 1279px) {
  .page-id-213 .et_pb_row_7.et_pb_row,
  .page-id-213 .et_pb_row_8.et_pb_row,
  .page-id-5279 .et_pb_row_4.et_pb_row,
  .page-id-5279 .et_pb_row_5.et_pb_row {
    margin-left: 44% !important;
    max-width: calc(56% - 40px) !important;
  }
  .page-id-213 .et_pb_row_8.et_pb_row > .et_pb_column,
  .page-id-5279 .et_pb_row_5.et_pb_row > .et_pb_column {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
  }
}

/* /contact (page 2139): the hero row is shifted 64px left at full width, which fits only screens
   1418px and wider. Narrower, the headline and the first words of each line were cut off. */
@media (max-width: 1417px) {
  .page-id-2139 .et_pb_row_0.et_pb_row {
    left: 0 !important;
    width: 90% !important;
  }
}

/* Same rows below 981px: Divi kept the 590px desktop offset on tablets and phones, pushing the
   heading and cards 400 to 500px off the right edge. Centre them like every other row. */
@media (max-width: 980px) {
  .page-id-213 .et_pb_row_7.et_pb_row,
  .page-id-213 .et_pb_row_8.et_pb_row,
  .page-id-5279 .et_pb_row_4.et_pb_row,
  .page-id-5279 .et_pb_row_5.et_pb_row {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 80% !important;
    max-width: 80% !important;
  }
}

/* /about: this centred line kept its 258px and 287px desktop side padding on every screen, so on a
   phone it ran 155px off the right edge. Ease the padding off as the screen narrows. */
@media (max-width: 1280px) {
  .page-id-213 .et_pb_text_12 {
    padding-left: clamp(0px, 12vw, 258px) !important;
    padding-right: clamp(0px, 12vw, 287px) !important;
  }
}
@media (max-width: 767px) {
  .page-id-213 .et_pb_text_12 { padding-left: 0 !important; padding-right: 0 !important; }
}
