You can create a media query that is based on the viewport's aspect ratio - not simply it's width. To be fair, use cases for this are few and far between.
The aspect-ratio feature is specified as a <ratio> value representing the width-to-height aspect ratio of the viewport. Examples · Browser compatibility
Media queries allow you to apply CSS styles depending on a device's media type (such as print vs. screen) or other features or characteristics. Media · Width · Height · Device-width
I am trying to modify the size of my images based on their initial aspect-ratio. For this purpose i created 2 media on the aspect-ratio but for some reasons ...
Media queries can be used to check many things, such as: width and height of the viewport; width and height of the device; orientation (is the tablet/phone in ... CSS @namespace Rule · CSS min-block-size property · The @media Rule