.content { display: grid; gap: var(--Space-x3); align-content: start; } .closeButton { justify-self: stretch; } @media screen and (min-width: 768px) { .dialog { width: 560px; } .closeButton { justify-self: end; min-width: 150px; } }