x and z rotation going in same direction

hello, i’m making a rubik’s cube and the player can rotate by clicking on buttons.

the individual axes rotate fine when all others are 0. when y=-90, x and z rotate in the same direction. relative and world rotation do the same thing.

how do i get it to turn as expected around the actual world axes? thanks