Magnetic phases of spatially modulated spin-1 chains in Rydberg excitons: Classical and quantum simulations.