Why did the Democratic and Republican parties switch platforms?

The Republican and Democratic parties of the United States didn’t always stand for what they do today.  During the 1860s, Republicans, who dominated northern states, orchestrated an ambitious expansion of federal power, helping to fund the transcontinental railroad, the state university system and the settlement of the West by homesteaders, and instating a national currency […]