original_query: What was the basis of the court's decision regarding the validity of foreign marriages?
query: What was the basis of the Maryland Court of Appeals' decision in Port v. Cowan regarding the validity of same-sex marriages performed in other states?
answer: The Maryland Court of Appeals' unanimous decision in Port v. Cowan validated same-sex marriages performed in other states based on the common law doctrine of comity.  The court stated that no prior decision deemed a valid foreign marriage 'repugnant', even if the marriage would be void or criminalized if performed in Maryland.