Properties of superconductors coupled to photonic cavities