Electromagnetic response of layered superconductors with broken lattice inversion symmetry