In CSS Grid, auto-fill tells repeat() to create as many tracks as fit the available space while respecting the supplied size constraints. Combined with minmax(200px, 1fr), it keeps columns at least 200px wide and adds fewer or more columns as the viewport changes. section 5.4
Responsive portfolio grid
Use grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));. A viewport wide enough for four 200px columns gets four tracks; a narrower viewport gets fewer. Wider space can create more. auto-fill may also leave empty tracks when too few grid items exist. section 5.4

