.centered { width: 100vw; height: 100vh; display: grid; align-content: center; justify-content: center; justify-items: center; align-items: center; } .top-fade { background: linear-gradient(rgba(11,11,12,1) 0%, rgba(11,11,12,0.9) 20%, rgba(0,0,0,0.1) 100%); border-bottom: 5px dashed white; } .single-column { grid-template-columns: 1fr !important; } .single-column p { margin-top: -20px; } .soft-background { background: rgba(11,11,12, 0.3); border-radius: 15px; padding: 10px; } .index-item { display: grid; align-content: center; justify-content: center; justify-items: center; align-items: center; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .articles-box { width: 95vw; height: 80vh; margin: 5px; } @media only screen and (max-width: 768px){ .index-item { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; justify-items: center; } } body { overflow-x: hidden; }