Gas-liquid foams are important in applications ranging from oil recovery and mineral flotation to food science and microfluidics. Beyond their practical use, they represent an intriguing prototype of a soft material with a complex, viscoelastic rheological response. Crucially, foams allow detailed access to fluid-dynamical processes on the mesoscale of bubbles underlying the large-scale material behavior. This review emphasizes the importance of the geometry and interaction of mesoscale structural elements for the description of the dynamics of entire foams. Using examples including bulk flow of foam under steady shear, interfacial instabilities, and foam fracture through bubble rupture, this article highlights the wide variety of available theoretical descriptions, ranging from network modeling approaches coupling structural element equations of motion to full continuum models with elastoviscoplastic constitutive relations. Foams offer the opportunity to develop rigorous links between such disparate descriptions, providing a blueprint for physical modeling of dynamical multiscale systems with complex structure.