.windowFrame { height: fit-content; width: 100%; } @media (min-width: 640px) { .windowFrame { height: var(--height); width: var(--width); } }