It would be nice to know if it’s possible to get the pagination to render in blocks of 10?
On the outer div of the page numbers, you could use a grid. For example the following will position all children in 10 columns with each child having the same width.
display: grid;
grid-template-columns: repeat(10, 1fr);