Well, that one is easier to explain. Spacetime itself is warped by gravity. The light, still massless, is changed in direction by that warping.
“The light, still massless, is changed in direction by that warping.”
But is it truly massless? What can we measure photons against to know for sure?
https://arvinash.com/why-no-one-knows-if-photons-really-are-massless-what-if-they-arent/
What if light is simply climbing up the side of a bowl?
-PJ