Capillary condensation under atomic-scale confinement