Relativistic definition of the phase of the electromagnetic field, involving two Lorentz invariants, based on the Riemann-Silberstein vector is adopted to extend our previous study [I. BialynickiBirula, Z. Bialynicka-Birula and C. Śliwa, Phys. Rev. A 61, 032110 (2000)] of the motion of vortex lines embedded in the solutions of wave equations from Schrödinger wave mechanics to Maxwell theory. It...