Please use the optional tags of the New Topic form to indicate the name and version of the Story Format you are using, as answer can vary based on this information. I will assume you are using the 3.x series of Harlowe.
I will assume that you know:
that the orientation media feature is based on the current dimensions of the view-port and not the device’s orientation, which means that opening the device’s soft keyboard can effect the value of the property.
I placed your CSS example within a new Harlowe 3.x project then viewed the resulting story HTML file within Chrome. If I reduced the width of the view-port so that its value was smaller that the view-port’s current height the contents of the current Passage was successfully rotated 90 dec anti-clockwise.
Is your issue with the 2nd of your linked images the fact that:
a. the background image isn’t being displayed.
b. that block of text doesn’t appear closer to the left side of the view-port.
c. both of the above.
d. something else as well
Hi @Sergus did you find a solution for this? I’m having similar/related issues. i.e. the background image not displaying any longer and (in my case) the text not getting transformed.