css grid has a nifty trick for creating responsive layouts that adapt to different screen sizes without media queries: use percentage-based gutters and column tracks
for example, if you have 3 columns with equal width in percentages:
grid-template-columns: repeat(4, [col_]1fr);
then define the gutter as a fraction of one track's size using `calc()`:
[col'']:nth-child(-n+2) ~ :not([col''{}) {grid-column-gap: calc((30px / (6 - var(--gutters))) *.5);}set -gutters to the number you want, e. g,
--gutters=4
for three gutters
this setup keeps your layout fluid and responsive across devices ⬆