*{ margin: 0; padding:0; box-sizing: border-box; } :root{ --primary: #f7f7f7; --secondary: #181818; } html{ font-size: calc(100vw / 1920 * 10); } body{ background: var(--primary); color: var(--secondary); } h1{ font-size: 13rem; text-transform: uppercase; } h2{ font-size: 9rem; text-transform: uppercase; } h3{ font-size: 4.8rem; text-transform: uppercase; } h4{ font-size: 3.2rem; text-transform: uppercase; } p, li{ font-size: 2.4rem; text-decoration: none; list-style: none; } a{ text-decoration: none; } span{ font-size: 1.6rem; } /*=== navbar ===*/ .nav{ position: absolute; width: 100%; left: 0; top: 0; padding: 3.2rem 6.4rem; overflow: hidden; } .nav-container{ display: flex; justify-content: space-between; width: 100%; } .nav-select{ display: flex; align-items: center; gap: 1.5rem; } .nav-select-toggle{ width: 6rem; padding: 0.4rem; border: 1px solid var(--secondary); border-radius: 200rem; cursor: pointer; } .nav-toggle{ background-color: var(--secondary); width: 2rem; height: 2rem; border-radius: 200rem; } /*=== projects ===*/ .work{ position: relative; width: 100%; margin-top: 15rem; overflow: hidden; } .wrok-container{ padding: 6.4rem; } .work-title{ display: inline-flex; width: 100%; gap: 3.2rem; padding-bottom: 4.8rem; border-bottom: 1px solid var(--secondary); } .work-title h1{ font-size: 8rem; } .work-selector{ position: relative; padding-top: 12rem; } /*=== grid ===*/ .work-grid-item{ display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 1.5rem; grid-row-gap: 1.5rem; grid-template-areas: 'grid-video grid-info' 'grid-title .'; margin-bottom: 12.8rem; } .--item-left{ grid-template-areas: 'grid-info grid-video ' '. grid-title'; } .work-grid-item-video{ grid-area: grid-video; width: 96rem; height: 64rem; background-color: #181818; } .work-grid-item-info{ grid-area: grid-info; } .work-grid-item-title{ grid-area: grid-title; } .grid-btn{ margin-top: 2.5rem; font-size: 2rem; } .grid-btn-1{ margin-right: 10px; padding: 10px; background-color: #181818; color: white; border: 1px solid black; transition: all 0.3s ease-in; } .grid-btn-1:hover{ background-color: gray; color: black; border: 1px solid gray; } .grid-btn-2{ padding: 10px; color: black; border: 1px solid black; transition: all 0.3s ease-in; } .grid-btn-2:hover{ background-color: gray; color: white; border: 1px solid gray; } /*=== index ===*/ .work-index-item{ position: relative; height: 100%; margin-bottom: 3.2rem; overflow: hidden; cursor: pointer; } .work-index-item:last-child{ margin-bottom: 0; } .work-index-item-title{ display: flex; justify-content: space-between; width: 100%; } .work-index-item-flex{ display: inline-flex; align-items: center; gap: 3.2rem; } .work-index-item-media{ display: flex; position: absolute; left: 0; top: 0; gap: 1.5rem; } .work-index-item-video{ width: 32rem; height: 13rem; object-fit: cover; } /*=== grid responsive ===*/ @media screen and (min-width: 768px){ .--item-left .work-grid-item-info{ justify-self: right; } } /*=== index responsive ===*/ @media screen and (max-width: 768px){ html{ font-size: calc(100vw / 768 * 10); } h1{ font-size: 7rem; } h2{ font-size: 4.8rem; } h3{ font-size: 3.2rem; } h4{ font-size: 2.4rem; } p,li{ font-size: 2.4rem; } span{ font-size: 1.6rem; } .work-grid-item, .work-grid-item.--item-left{ grid-template-columns: 1fr; grid-template-areas: 'grid-video' 'grid-title' 'grid-info'; } .work-grid-item-video{ width: 100%; height: 64rem; } .work-title h1{ font-size: 5rem; } .work-index-item-flex{ flex-direction: column; align-items: flex-start; gap: 0; } }