@import "settings.colors";

@import "mixins/settings.fonts";
@import "mixins/tools.mixins";

.l-grid {
  display: grid;
  grid-gap: rem(10);
  grid-template-columns: 1fr;

  &.l-grid--sidebar {
    grid-template-columns: 1fr;

    @media (min-width: rem(600)) {
      grid-template-columns: 3fr 1fr;
    }
  }

  >div {
    padding: rem(50);
  }
}

.l-grid-content {
  width: auto;
}

.l-grid-sidebar {
  width: auto;
}

.c-areas {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: repeat(2, auto);
  grid-gap: rem(20);
  grid-template-areas:
  "content side1"
  "content side2";

  .c-content {
    grid-area: content;
  }

  .c-sidebar {
    grid-area: side1;
  }
  .c-sidebar2 {
    grid-area: side2;
  }

  @media (max-width: rem(600)) {
    grid-template-columns: 1fr;
    grid-template-areas:
    "side1"
    "content"
    "side2";
  }
}

.c-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(rem(200), 1fr));
  grid-gap: rem(10);

  .c-card {
    margin: 0;
    padding: rem(10);
  }
}
