Alan,
With a certain amount of digging, you can lower the track within the tunnel to get the overhead wire to fit. This has been done in North London to get Eurostar trains from the Acton depot to St Pancras through the Hampstead tunnel (built in the late 1850s).
BobE

This is common approach, just lower the floor of the tunnel. Norfolk Southern is doing this to a East-West line to allow double stack containers.

Bridges can be more complex.

Best Hopes for solutions,

Alan

Or put in a third rail. A large Steel rail is much cheaper than a copper wire and can carry more electricity. And you don't have as many height clearance problems.