.custom-section {
  background-color: rgb(var(--color-background));
}

.custom-section .block-heading,
.custom-section .subheading {
  width: 100%;
}

.custom-section .subheading,
.custom-section .rte {
  word-break: break-word;
}

.custom-section > .page-width,
.custom-section .page-width {
  max-width: calc(var(--page-padding) * 2 + 1200px);
}

@media (max-width: 767px) {
  .custom-section {
    overflow-x: hidden;
  }

  .custom-section > .page-width,
  .custom-section .page-width,
  .custom-section > .page-width > *,
  .custom-section .block-group,
  .custom-section .block-image,
  .custom-section .rte,
  .custom-section .block-heading,
  .custom-section .subheading {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .custom-section .block-group {
    padding-inline: 0 !important;
  }

  .custom-section .block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .custom-section .block-heading,
  .custom-section .title2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .custom-section .title3 {
    font-size: 24px;
    line-height: 1.25;
  }

  .custom-section .rte,
  .custom-section .body3,
  .custom-section .body4 {
    font-size: 15px;
    line-height: 1.6;
  }
}
