Stratigraphic and architectural complexity of endorheic basins: a Middle to Late Permian case study from western Gondwana | Synapse