Gibraltar, a British colony is grafted onto a steep, rocky Spanish hillside at the mouth of the Mediterranean Sea 310 mi/500 km south of Madrid.