Bifurcation from periodic solutions with spatiotemporal symmetry, including resonances and mode interactions