Gastropods with different development modes respond differently to habitat fragmentation