.sidebar-layout {
  &__main {
    max-width: $max-width;
    display: flex;
    margin: 0 auto;
    padding: $gutter;
    margin-bottom: 40px;

    @include sm {
      flex-direction: column;
      padding: $gutter-mobile;
    }
  }

  &__left {
    flex-grow: 1;
    width: 66%;
    min-width: 55%;
    padding-top: 25px;

    @include sm {
      width: 100%;
    }
  }

  &__line {
    display: flex;
    justify-content: center;

    @include md {
      flex-direction: column;
    }
  }

  &__toolbar,
  &__toolbar-fake {
    width: 50px;
    flex-shrink: 0;
    height: 100%;
    transition: transform 200ms ease-out;

    .stButton {
      margin-left: 0;
    }

    @include md {
      width: 100%;
      padding-right: 50px;
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-end;

      .share-wrapper {
        display: flex;
        justify-content: flex-end;
        margin: 0px 0 15px;
      }

      .stButton {
        margin-left: 3px;
      }
    }

    @include sm {
      padding-right: 0;
    }
  }

  &__content {
    flex-grow: 1;
    max-width: 720px;
    margin-right: 50px;

    @include md {
      margin-right: $gutter;
    }

    @include sm {
      margin-right: 0;
    }

    > .rich-content > *:first-child {
      margin-top: 0;
    }
  }

  &__sidebar {
    width: 34%;
    max-width: 470px;
    min-width: 320px;

    @include sm {
      width: 100%;
    }
  }
}
