Does photon absorption cause an electron to gain mass?
in a situation like this, but a case could be made for the tiniest increase in mass per relativistic principles – if you wanted to split hairs. And that’s not a good idea here. Accept the idea that the electron that absorbs a photon changes Fermi energy level and run with it. It will work through all of chemisty and a lot of physics.