.story-text {
  margin: 0px 30px;
}

@media (min-width: 840px) {
  .story-text {
    max-width: 780px;
    margin: 0 auto;
  }

  .ad-lp .story-text,
  .node-ad-landing-page-layout-builder-form + .layout-builder .story-text {
    max-width: 100%;
  }
}

.ad-lp .story-text,
.node-ad-landing-page-layout-builder-form + .layout-builder .story-text {
  margin: 0;
}

.ad-lp .bg-green .story-text h2,
.node-ad-landing-page-layout-builder-form + .layout-builder .bg-green .story-text h2 {
  color: var(--white);
}

.ad-lp .bg-trillium .story-text h2,
.node-ad-landing-page-layout-builder-form + .layout-builder .bg-trillium .story-text h2 {
  color: var(--under-the-elms);
}

.ad-lp .story-text > div > p:first-of-type,
.node-ad-landing-page-layout-builder-form + .layout-builder .story-text > div > p:first-of-type {
  margin-top: 0;
}

.timeline-container .block-inline-blocktimeline-text,
.timeline-container .paragraph--type--timeline-text {
  margin: 0 0 60px 40px;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body *:not(h1, h2, h3, h4, h5, h6),
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body *:not(h1, h2, h3, h4, h5, h6) {
  font-family: var(--text-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body p,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body p {
  margin: 0 0 30px 0;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body a,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body a {
  font-weight: 600;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body ul,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body ul {
  padding: 0 15px 0 40px;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body li,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body li {
  margin-bottom: 15px;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body > *:last-child,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body > *:last-child {
  margin-bottom: 0;
}

.timeline-container .block-inline-blocktimeline-text .field--name-body ul li:last-child,
.timeline-container .paragraph--type--timeline-text .field--name-field-timeline-body ul li:last-child {
  padding-bottom: 0;
}

/* Styles specific to layout builder preview */
/* Remove outside padding on text section */
.ouws_wspage:has(.node-ad-landing-page-layout-builder-form) .layout:has(.story-text) {
  padding: 0;
}

.ouws_wspage:has(.node-ad-landing-page-layout-builder-form) .layout:has(.story-text) .layout-builder-block {
  padding: 60px 0;
}

.ouws_wspage:has(.node-ad-landing-page-layout-builder-form) .layout:is(.intro-section):has(.story-text) .layout-builder-block {
  padding: 60px 0 15px 0;
}
