Mario Odyssey style jump camera (stop movement on the Z axis while jumping)

Hello,
I’m also dealing with this problem. Did you find a solution since? Thanks