#cssWish just like we have min/ max width/ height to have min/ max aspect-ratio. Imagine one of the dimensions set by a % value and the other one by content/ parent, but within certain aspect-ratio limits.
@anatudor Sounds like a good use for repurposing the grid minmax() function, rather than needing multiple properties that cascade separately.
```css
.image-viewer {
width: 100%;
max-height: 100vh;
aspect-ratio: min-max(16/9, 9/16);
}
```