That looks like Tailwind ![]()
You want to have the PREV link be start/left and NEXT be end/right.
<li class="self-start"> and <li class="self-end"> for PREV and NEXT in both (with/else) should do the trick. I am not sure about the “inline-flex” in the UL - I would get rid of the UL at all and keep the LI and change into DIVs.
On the other side: It’s always just two items, not n items, so having two 50% divs that left and right aligned would do it too.