@use "../rich-content";

.dso-rich-content {
  @include rich-content.children();

  > :first-child:not(hr, .dso-button-row) {
    margin-block-start: var(--_dt-rich-content-margin-block-start, rich-content.$margin-block-start * 0.5);
  }

  > :last-child:not(hr, .dso-button-row) {
    margin-block-end: var(--_dt-rich-content-margin-block-end, rich-content.$margin-block-end * 0.5);
  }
}
