/* -- The root styles must go in the element of the structure with the name "Row". --*/

.timeline__row {
  /* Styles applied to all even elements */
  &:nth-child(even) {
    .timeline__img-wrapper {
      order: 3;
    }

    /* Styles for aligning text and content to the right */
    .timeline__content {
      order: 1;
      text-align: end;

      .timeline__content-container {
        align-items: end;
      }

      /* Styles in tablet and restore styles */
      @media (max-width: 767px) {
        text-align: start;

        .timeline__content-container {
          align-items: inherit;
        }
      }
    }
  }

  /* You can remove this style if you do not want the line to disappear in the last element. */
  &:last-child {
    .timeline__line {
      display: none;
    }
  }
}
