Text this: Resonance phenomena in one-dimensional grating-based structures