Presidential pardons

Does the President’s power to grant pardons apply only to federal crimes, or does it apply to state crimes too?

Federal crimes only.

See Article II, § 2 of the U.S. Constitution:

The power only extends to offences against the U.S., i.e. federal crimes, and not to offences against individual states.