This setup selects the closest aspect ratio. It might be of help to somebody… It is an alternative way of selecting a layout over the built-in and traditional width-based selection (although Hype always did a container width over viewport width). It can also be easily tweaked to select the next height-based layout.
SelectClosestAspectRatio.hype.zip (25,9 KB)
I think there was a similar file a couple of years ago, so sorry if this is old news for some.