If mass is energy, then energy is mass. Although the photon has no rest mass, it has energy, thus is liable to gravity. e=mc^2 hv=mc^2 m=hv/c^2, where m would be the relativistic mass? Damn my high school physics teacher for stopping me from learning this sooner! This is blowing my mind.