.app-column-container { display: flex; flex-direction: column; @media screen and (min-width: 768px) { display: grid; grid-template-rows: auto; grid-template-columns: auto auto 2fr; } } .app-column { overflow: hidden; .content { height: 100%; } @media screen and (max-width: 768px) { &.selected { flex-grow: 1; .content { overflow-y: auto; } } &:not(.selected) { height: auto; border-bottom: 1px solid var(--sn-stylekit-border-color); } } }