In Virginia, at least, but to my understanding, all other states as well, the state legislature has power over every aspect of what can be governed unless that state constitution prohibits the exercise of that power.
Or the federal Constitution prohibits it, like making treaties or coining money, etc.
This is a little understood fact, but it is a fact. It is the opposite of the federal constitution, through which the states created a federal government and allowed it certain limited powers.
The states pre-existed the nation. The states were sovereign. The state legislatures, as the elected representatives of the sovereign people of the state, could pass any law on any topic, unless prohibited by their state constitution.
For example, a state legislature could pass a statute establishing a state religion, and some did.
The Congress was prohibited from doing so, after the 1st amendment was ratified by the states. But the states still could unless prohibited by the state constitution.