there's a vsauce about this somewhere
Light has no mass, photons have no mass. They have ENERGY. Gravity acts on ENERGY, which is something both matter and light have, so both are affected.
You actually weigh more in a lit room than you do a dark one.