Then it is the overhang you need space for; 25 m = 32,89 cm in scale.
If you, as you mentioned, compremize on the total lenght of the bridge and shorten it by max 4 meters, and model the canal in the prototypical angle to the railway, you will manage to be marginally within the width of the board.