.l--one-col {
  display: block;
  margin: 0 auto 50px;
  max-width: calc(#{$content-max-width} + 70px);
  padding: 0 35px;
  width: 100%;
}

.l--one-col--wide {
  display: block;
  margin: 0 auto 50px;
  max-width: calc(#{$section-max-width} + 70px);
  padding: 0 35px;
  width: 100%;
}

.l--one-col-right-sidebar {
  display: block;
  margin: 0 auto 50px;
  max-width: calc(#{$content-max-width} + 70px);
  padding: 0 35px;
  width: 100%;

  @media #{$tablet-up} {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 0 auto 50px;
    max-width: calc(#{$section-max-width} + 70px);
    padding: 0 35px;
    width: 100%;

    .l--col--content {
      max-width: calc(#{$content-max-width} + 70px);
      padding: 0 35px;
      width: 100%;
    }

    .l--col--right-sidebar {
      max-width: 200px;
      width: 100%;
    }
    .l--col--right-sidebar__sticky {
      @extend .l--col--right-sidebar;
      transition: all 0.3s ease-in-out;

      &.js-stick {
        position: fixed;
        top: 73px;
      }

      &.js-stick--hide {
        position: fixed;
        top: -221px;
      }
    }
  }
}

.section--outer {
  margin-left: auto;
  margin-right: auto;
  max-width: $section-max-width;
  width: 100%;
}

.section--inner {
  margin-left: auto;
  margin-right: auto;
  max-width: $content-max-width;
  width: 100%;
}

.m-rte {
  overflow-wrap: break-word;
  word-wrap: break-word;

  .m-rte__anchor {
    @include reg-bold;
    @include type-link;
  }

  & > { // restrict rte stlying to top level to prevent mis-styling of inline modules
    p {
      @include type-std;
      line-height: 1.27;
      margin-bottom: 28px;

      @media #{$tablet-up} {
        line-height: 1.67;
      }

      strong {
        @include reg-bold;
      }

      em {
        @include reg-book-ital;
      }

      strong em,
      em strong {
        @include reg-bold-ital;
      }
    }

    h1 {
      @include type-1;
      margin-bottom: 32px;
    }

    h2 {
      @include type-2(
        $sm-size: 32px
      );

      line-height: 0.94;
      margin-bottom: 28px;
      text-transform: uppercase;

      @media #{$tablet-up} {
        margin-bottom: 32px;
      }
    }

    h3 {
      @include type-3(
        $sm-size: 16px
      );
      margin-bottom: 18px;

      @media #{$tablet-up} {
        margin-bottom: 32px;
      }
    }

    h4 {
      @include type-4;
    }

    h5 {
      @include type-5;
    }

    img {
      display: block;
      line-height: 0;
      max-width: 100%;
      width: 100%;
    }

    figure {
      margin: 60px 0;

      figcaption {
        @include type-std(
          $color: $gray-dark,
          $sm-size: 15px,
          $lg-size: 15px
        );

        line-height: 1.47;
        margin-top: 15px;
        padding: 0 20px;
        position: relative;

        &:before {
          background-color: $red;
          content: "";
          display: block;
          height: calc(100% - 10px);
          left: 0;
          position: absolute;
          top: 5px;
          width: 4px;
        }
      }
    }
  }

  .wp-caption-text {
    @include type-std(
      $sm-size: 14px,
      $lg-size: 14px,
      $color: $blue
    );

    line-height: 1.21;
    margin: -10px 0 0 0;

    @media #{$tablet-up} {
      line-height: 1.3;
    }
  }

  .alignright,
  .alignleft {
    margin-bottom: 35px;
    padding: 0 25px;

    @media #{$tablet-down} {
      float: none;
      margin-left: auto;
      margin-right: auto;
    }

    @media #{$tablet-up} {
      margin-top: 10px;
      padding: 0;
    }

    .wp-caption-text {
      background-color: $green;
      padding: 15px 20px;
    }
  }

  .alignright {
    @media #{$tablet-up} {
      margin-left: 35px;
    }
  }

  .alignleft {
    margin-right: 35px;
  }

  .aligncenter {
    margin: 10px 0 20px;
    position: relative;

    @media #{$tablet-down} {
      margin-left: -35px;
      max-width: none;
      width: 100vw !important; // override WP inline width
    }

    @media #{$tablet-up} {
      margin: 60px 0 80px;
      width: 100% !important;  // override WP inline width
      &::before {
        background-color: $blue;
        bottom: 0;
        content: "";
        height: 50%;
        left: -50px;
        position: absolute;
        width: calc(100% + 100px);
      }
    }

    img {
      @media #{$tablet-up} {
        position: relative;
        z-index: 1;
      }
    }

    .wp-caption-text {
      background-color: $blue;
      color: $white;
      padding: 25px 35px;

      @media #{$tablet-up} {
        background-color: transparent;
        padding: 25px 0;
        position: relative;
        z-index: 1;
      }
    }
  }

  blockquote {
    border-bottom: 7px solid $green;
    border-top: 7px solid $green;
    margin: 38px 0;
    padding: 26px 50px;
    text-align: center;

    @media #{$tablet-up} {
      margin: 60px 0;
      padding: 45px 12%;
    }

    p {
      @include type-std(
        $sm-size: 18px,
        $lg-size: 26px,
        $color: $blue
      );

      line-height: 1.19;
      margin-bottom: 0;
      max-width: none;
    }

    footer {
      @include type-5-light(
        $color: $blue
      );

      margin-top: 24px;
      position: relative;

      @media #{$tablet-up} {
        margin-top: 20px;
        top: 14px;
      }
    }
  }


  ul,
  ol {
    font-size: 16px;
    line-height: 1.63;
    margin: 10px 0 40px 50px;

    li {
      margin-bottom: 20px;
    }
  }

  ul {
    li {
      list-style-type: disc;
    }
  }

  ol {
    li {
      list-style-type: decimal;
    }
  }

  &.m-rte--simple {
    margin-left: auto;
    margin-right: auto;
    max-width: 630px;
  }

  &.m-rte--rich {
    p, h1, h2, h3, h4, h5, ol, ul {
      max-width: 570px;
      &.wp-caption-text {
        max-width: none;
      }
    }
  }
}
