A grid column that grows with the page can become too narrow to read. Use minmax(min, max) to give the track a minimum size while allowing it to grow toward a maximum. If max is smaller than min, the browser uses min. An fr value can be the maximum, but not the minimum. section 4.4.1
grid-template-columns: 3fr minmax(250px, 1fr);
In a 1200px container, the two columns initially divide space into four fractions: 900px and 300px. The second column exceeds its 250px minimum, so those widths stand. At 800px, its initial fraction would be 200px; the minimum instead gives it 250px and leaves 550px for the first column. section 4.4.1
grid-template-columns: repeat(4, minmax(250px, 1fr));
For product cards, repeat(4, minmax(250px, 1fr)) defines four columns that can share available space but cannot shrink below 250px. section 4.4.1
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
Combining minmax() with repeat(auto-fit, ...) gives a gallery flexible 180px-minimum columns while allowing the number of fitted columns to change. section 4.5
For a content-sized column, auto is close to minmax(min-content, max-content), but not identical: auto also respects applicable min-width and max-width constraints. Choose the bounds that match the layout you need. section 4.4.2

