A work boat comes in one end.
The water starts going down.
And then it goes out of the other end.
There are between 3 and 5 locks on the Panama Canal route. The total change in water from the Pacific to the Atlantic is 75 feet. The largest ships pay over $400,000 US to pass through!