/* grid used in news page */
.phantom-grid-layout {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1rem;
}

/* header and form always span full width */
.phantom-grid-layout > header,
.phantom-grid-layout > form {
  grid-column: 1 / -1;
}

/* custom spacing after header and form */
.phantom-grid-layout > header {
  margin-bottom: 0.5rem;
}

.phantom-grid-layout > form {
  margin-bottom: 1rem;
}

/* 992px — 2 columns for cards */
@media (min-width: 992px) {
  .phantom-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
}

/* 1200px — 3 columns for cards */
@media (min-width: 1200px) {
  .phantom-grid-layout {
    grid-template-columns: repeat(3, 1fr);

    .card {
      height: 100%;
    }

    nav.pagination-wrapper {
      justify-content: center;
      grid-column: 1 / -1;
    }
  }
}
