The sentence correction book, modifier chapter has this statement in its problem set :
"Upon setting foot in the Gothic cathedral, the spectacularly stained-glass windows amazed the camera-wielding tourists."
It states the following in the answer description : Spectacularly is incorrect because it cannot modify a noun. Spectacularly seems to modify stained. However stained-glass is a material.
I feel that stained-glass in the sentence is acting as an adjective because it is modifying windows. If that is true, it would be ok for spectacularly to modify either stained or stained-glass ... Right ?
Thanks !