I have studied the mathematical foundations of gauge theories - in particular, fiber bundles and connection 1-forms - and knowing that classical mechanics can be formulated with fiber bundles$^1$, I was wondering if the same holds for classical electrodynamics. If yes, I'd like to have some references.
$^1$ As far as I know, the main idea is that spacetime $M$ comes with a function $\pi\colon M\to A$ that assigns to each event a "time", modeled as a 1-dim. affine space $A$. In other words, we consider a bundle $(M,\pi,A)$.