@media screen and (max-width: 1000px) { body { background-color: red; } .project-slideshow { position: fixed; top: 0; width: 100vw; left: 0; margin: 0; height: 50vh; } .project-slideshow img { width: 100%; height: 100%; object-fit: cover; } .main-title { z-index: 2; position: fixed; } .project-index :has(.selected) { } .fix { display: block; } .project-toggler.grid { display: block; } main { position: fixed; top: 0; bottom: 0; overflow: auto; width: calc(100% - var(--body-margin)); } main:has(ul li.selected) { top: 50vh; } nav.filter-menu { position: absolute; top: 0; margin-top: calc(var(--line-height-S) * 2); } ul.projects-index { top: calc(var(--line-height-S) * 5); position: absolute; } .fix:hover + .toggle { display: none; } }