When the Ideal Gas Model Works—and When It Starts to Break