one approach is to to use grid to simulate wrap on the child element
.col3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }