Dynamical Mean-Field Theory For Solids With Strong Coupling To The Electromagnetic Field