How this example works
A grid with auto-fit and minmax creates as many tracks as the available width permits. The native details control handles keyboard and screen-reader interaction.
Try a change
Reduce the minimum track size from 180px to 140px. Compare the layout at 320px and 768px in the custom viewport.