The Koutoubia Mosque, rising above the bustling streets of Marrakech, is more than just a religious edifice;