The shuttle had a wide variety of airlock / tunnel / pressurized payload bay module configurations that were used over its long history.
Driving these configurations were some general, common sense rules.
There must always be the capability to perform an EVA
The amount of gas wasted to space should be minimized
Failure of hatches / equalization valves ...