Synthetic photosynthetic consortia define interactions leading to robustness and photoproduction