Diffraction Optics of Complex-Structured Periodic Media