Zero-clearance fireplace casing with automatic PrimeFire burner