Controls on Large-Scale Architecture and Facies Distribution of a Carbonate Shelf Margin