I want to create a grid in CSS that will have 2 columns by default, but if there's not enough width, merge all elements into 1 column. How can I achieve that?
Currently the width of my 2 columns are defined as 1fr 1fr
and the whole container just takes as much horizontal space as it's children need, or as much as is available in the parent.