Spin-orbit interaction of a photon in an inhomogeneous medium | Synapse