Checking declarations within media queries

Fixes #66