Grid CSS de autofiT

.grid {
   display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
}
web-noob master