Type-II Dirac photons