Spin-other-orbit effect of photon modes