Added initial logic for 'Select Media' modal, rendering logic in `orielItem` template for gallery items