@import "flive-vars";

.main {
  align-items: center;
  display: flex;
  flex-direction: column;
  border: 1px solid $flive-medium-grey;
  margin: 60px 0 20px 0;
  font-weight: 300;
  text-decoration: none;
}

.horizontal {
  display: flex;
  flex-direction: row;
  border: 1px solid $flive-medium-grey;
  margin: 20px 0;
  line-height: 1.7em;
  font-weight: 300;
  align-items: flex-start;
}

.grey {
  background-color: $flive-light-grey;
}

.white {
  background-color: white;
}

.without-border {
  border: none;
}

@media (min-width: $screen-sm-min) {
  .main--1-items-per-row {
    @include span(12 of 12);
  }
  .main--2-items-per-row {
    @include span(6 of 12);
    &:nth-child(2n) {
      @include span(last 6 of 12);
    }
  }

  .main--3-items-per-row {
    @include span(4 of 12);
    &:nth-child(3n) {
      @include span(last 4 of 12);
    }
  }

  .main--4-items-per-row {
    @include span(3 of 12);
    &:nth-child(4n) {
      @include span(last 3 of 12);
    }
  }

  .horizontal {
    @include span(12 of 12)
  }
}
