Gibraltar has been the focus of territorial disputes for centuries. But the European Union, Spain and Britain have announced a deal to resolve border issues after Brexit.