Life on the boundary: environmental factors as drivers of habitat distribution in the littoral zone