Thanks, but the problem isn’t that, otherwise it’d simply just limit it to 90 rad (a lot of rotation, meaning it effectively doesn’t limit) and in the Y it still snaps, so it’s not that.
So, you helped me with two issues that I hadn’t even anticipated.
This input function is a part of a larger movement script, so I overwrote the rotation of the camera with the physics process, So I commented out the physics process and lo and behold, the camera movement works.