I was curious so I did a quick bit of googling and apparently portions of the canal are actually lakes (Gatun and Miraflores Lakes).
Here is a cross-section diagram of the canal showing the lakes:
https://www.marineinsight.com/wp-content/uploads/2018/09/pan...