Complex conditional width using flex-basis with clamp