.tui-article {
  padding: $margin-normal;
  background-color: $color-white;
  margin: 0;
  z-index: 2;

  &.tui-blog {
    @include font-size(16);

    @include breakpoint(sm) {
      @include font-size(18);
    }

    h2 {
      display: block;
    }

    h3 {
      margin-bottom: $margin-normal;
    }

    .tui-article-breadcrumbs {
      max-width: $breakpoint-sm;
    }

    .date {
      width: 200px;
      text-align: right;
      color: $color-grey;
    }

    .list {
      padding-left: 0;
    }
  }

  &-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    @include breakpoint(sm) {
      flex-direction: row;
    }

    h1 {
      flex: 2;
    }
  }

  &-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: $margin-half;

    .name {
      margin-right: $margin-normal;
    }

    .date {
      color: $color-grey;
    }
    /* stylelint-disable max-nesting-depth */
    .name-and-image-container {
      display: flex;
      margin-top: $margin-normal;
      align-items: center;

      .name {
        margin-left: $margin-half;
      }

      @include breakpoint(sm) {
        margin-top: 0;

        .name {
          order: 1;
        }

        img {
          order: 2;
        }
      }
    }
    /* stylelint-enable */
    img {
      width: 36px;
      height: 36px;
      border-radius: 50%;

      @include breakpoint(sm) {
        width: 72px;
        height: 72px;
      }
    }

    @include breakpoint(sm) {
      align-items: flex-end;
    }
  }

  &-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: $margin-half;

    svg {
      width: $margin-double;
      height: $margin-double;
      margin-right: $margin-half;
      border-radius: $border-radius-half;

      @include breakpoint(sm) {
        margin-right: $margin-normal;
        width: $margin-quadruple;
        height: $margin-quadruple;
        border-radius: $border-radius-normal;
      }
    }

    .tui-breadcrumb {
      margin: 0;

      & > li:nth-last-child(2):after {
        content: '';
      }

      li:last-child {
        display: none;
      }
    }
  }

  &-section {
    max-width: $breakpoint-sm;
    width: 100%;

    margin-bottom: $margin-triple;

    img {
      overflow: hidden;
      border-radius: $border-radius-double;
    }

    &:last-child {
      margin-bottom: 0;
    }

    @include breakpoint(md) {
      margin-bottom: $margin-quadruple;
    }
  }

  &-hero {
    z-index: -1;

    .tui-hero-image {
      min-height: 182px;

      @include breakpoint(sm) {
        min-height: 480px;
      }
    }
  }

  &-button-close,
  &-button-back {
    cursor: pointer;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: $border-radius-normal;
    background-color: $color-white;
    padding: $margin-half;
    z-index: 99;
    top: $margin-normal;

    &-text {
      @include font-size(14);
      color: $color-blue-450;
      text-transform: uppercase;

      a {
        text-decoration: none;
      }

      @include breakpoint(sm) {
        display: block;
        margin-right: $margin-half;
      }
    }

    svg {
      color: $color-blue-450;
    }
  }

  &-button-back {
    top: 75px;
    left: $margin-normal;

    @include breakpoint(md) {
      top: 110px;
    }
  }

  h1 {
    margin: 0;
  }

  h2 {
    display: inline-block;
    margin-bottom: $margin-normal;
    margin-left: $margin-half;

    @include breakpoint(sm) {
      margin-left: 0;
      margin-right: 0;
    }
  }

  p,
  h3 {
    margin-left: $margin-half;
    margin-right: $margin-half;

    @include breakpoint(sm) {
      margin-left: 0;
      margin-right: 0;
    }
  }

  .gallery .image-caption {
    margin: $margin-normal $margin-half 0;
  }

  .flickity-button,
  .flickity-button:hover {
    background-color: white;
  }

  &-preamble {
    margin-top: $margin-enterprise;
    margin-bottom: $margin-normal;
    font-weight: 700;
  }

  &-gallery {
    margin-bottom: $margin-normal;
  }

  &-information {
    display: flex;
    border-radius: $margin-enterprise;
    padding: $margin-enterprise;
    background-color: $color-beige-100;
    max-width: $breakpoint-sm;
    flex-direction: column;

    &-icon {
      margin-top: $margin-normal;

      @include breakpoint(md) {
        margin-top: 0;
      }
    }

    &-text {
      margin-bottom: 0;
      padding: 0;
      display: flex;
      flex-direction: column;

      p {
        margin: 0;
      }
    }

    .pictogram {
      margin-bottom: $margin-enterprise;
      width: $margin-triple;
      height: $margin-triple;

      @include breakpoint(md) {
        margin-right: $margin-double;
        margin-bottom: 0;
      }
    }

    @include breakpoint(md) {
      flex-direction: row;
      padding: $margin-triple;
    }
  }

  @include breakpoint(sm) {
    padding: $margin-triple;
    border-radius: $margin-normal;
    margin: -$margin-double auto $margin-normal;
  }
}
