Upvote:2
Gibraltar is a British Overseas Territory. As a general rule, travellers who require a visa to enter the UK will also require a visa to enter Gibraltar. According to https://www.gibraltar.gov.gi/new/visas-and-immigration you will require a visa. Your Moroccan Visitor visa makes no difference.