Thousands wed in mass ceremony