You cannot use calc method as the calc method is css property's value not property.
But you can combine media rule with max-width and min-width (paste the width or height value instead xxx):
@media(max-width:xxx) and (min-width: xxx){}
@media(min-width:xxx) and (max-height: xxx){}
You can also use more advanced media query like this:
@media all and (max-width: xxx) and (min-width: xxx), (min-width: xxx) {}
If you're trying to work with portrait and landscape, then you can do like this:
/* Portrait */
@media screen and (orientation:portrait) {
/* Portrait styles */
}
/* Landscape */
@media screen and (orientation:landscape) {
/* Landscape styles */
}
Refer this reference that's all we have.