Today, about 30,000 people live perched on the limestone cliffs of Gibraltar, sharing this unusual natural habitat with the only wild population of primates in Europe: Barbary macaques.