Coordination of alkaline earth metal ions in the inverted cucurbit[7]uril supramolecular assemblies formed in the presence of [ZnCl4]2- and [CdCl4]2-.