I think it is that photons have ‘momentum’. and gravity bends the momentum.
So while a photo has no mass, gravity bends its because of its momentum.
Einstein put it as space-time is warped. So light remains straight, it is just on curvy terrain …
So gravity is bending the path, where as the photon is still straight in the precieved line?