div { display: grid; grid-template-columns: 2fr 1fr; } #weeknotes-section { grid-column: 2 / 3; display: flex; flex-direction: column; row-gap: 0.5rem; } #written { grid-row: 1; grid-column: 1 / 2; } #what-weeknotes { align-self: end; margin: -0.75rem 0 0 0; font-weight: normal; } .wk-notes { padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; column-gap: 1rem; row-gap: 1rem; list-style: none; display: flex; } .wk-long { width: 100%; } h2 { margin: 0 0 1rem 0; } #weeknotes { margin: 0; } @media (max-width: 30rem) { div { display: flex; flex-direction: column; } #written { margin-top: 1rem; } #what-weeknotes { align-self: normal; /* min to give it the smallest chance not to look super weird on like 100px wide displays. (are those real?) */ margin-left: min(50vw, 8rem); } }