Something like that?
If so, try this CSS. Add it to your theme CSS or in a component.
Inside, you can see variables you can control.
You can choose the number of columns, the gap between the elements, and the width of each element.
The elements are stacking automatically.
.below-site-header-outlet.categories-header > div.wrap {
--ch-columns: 6;
--ch-gap: 2.5em;
--ch-width: 110px;
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(var(--ch-width), 0fr));
gap: var(--ch-gap) !important;
max-width: calc(var(--ch-columns) * var(--ch-width) + ((var(--ch-columns) - 1) * var(--ch-gap))) !important;
}
