Use flexbox for top layout if available