Strong coupling of electromagnetic and magnetic modes in a tunable waveguide cavity