front-endn items. I want my grid track to be between 120 and 150px but the items should also grow/shrink so no extra space is left at the end of the grid.repeat(auto-fit , minmax(120px, 150px)) but it's too strict as you can see in the first image. It leaves extra space at the end when it doesn't have the required 120px.repeat(auto-fit , minmax(120px, 1fr)) and it did what I wanted as you can see in image (2) but the problem is, when n is small or viewport is too large, the images also get too large because of the 1fr.minmax(120px, 1fr) and minmax(120px, 150px) but I'm not sure what could help. I thought maybe I can put a max width on the container but that won't work when 1<n<3.
