.container {
  display: grid;
  gap: var(--Spacing-x2);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Hide Scrollbar Chrome, Safari and Opera */
.container::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: repeat(2, minmax(370px, 1fr));
  }
}

@media (min-width: 1367px) {
  .container:has(> :nth-child(2)) {
    grid-template-columns: 1fr 1fr;
  }

  .container:has(> :nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .container:has(> :nth-child(4), > :nth-child(5)) {
    grid-template-columns: 1fr 1fr;
  }

  .container:has(> :nth-child(6)) {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .container:has(> :nth-child(7), > :nth-child(8)) {
    grid-template-columns: 1fr 1fr;
  }

  .container:has(> :nth-child(9)) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
