Engineering fragile topology in photonic crystals: Topological quantum chemistry of light