Maybe a bit cumbersome approach is to duplicate this RG with a fixed number of 2 cold manually centered. When you put each RG in a Group and set a condition that one group is only visible when count of items <= 2 and the other is visible when count > 2 with the option collapse height when hidden is checked, I think you should be able to achieve your goal.
Yeah, I thought about this but then you have to do it for combinations 1, 2, 3 and it is just too much code and janky. I’ve seen many threads on this topic and a few solutions I don’t understand, so would like a sustainable solution if anyone has one.