Studying long-range correlations in a liquid–vapor-phase transition