Buoyancy-driven plumes in a layered porous medium