Restriction up stream either clogged screen (some are inside pick up tube), leak in connections so you are sucking in air, anti siphon valve is clogged, collapsed fuel line, maybe a clogged fuel tank vent line but would think that would not happen while idling