The ribcage capacity is reduced, so it shrinks
The diaphragm flattens and lowers
Air enters the lungs
The diaphragm relaxes, curves and rises.
It releases air from the lungs
The lungs reduce their volume.
The ribs rise outwards
The lungs become enlarged, increasing their volume
The capacity of the ribcage is increases
The ribs sink