AC works when driving, but fails when idling too long
I have a 2000 Nissan Frontier truck (w/ V6). Recently, I've noticed that the AC will no longer blow cold air if I've been idling too long (either parked, sitting in traffic, at a long traffic light, etc.) Once I start driving again, it cools back down like normal.
What causes this?