body { background: #ffffff; margin: 3rem; font-family: sans-serif, monospace, serif; } .container { display: flex; flex-wrap: wrap; gap: 3rem; } .button { display: inline-block; font-size: 1rem; text-decoration: none; text-transform: uppercase; font-weight: bold; color: #000000; border: 0.1875rem solid; padding: 0.75rem 2.5rem; box-shadow: 1px 1px 0 0, 2px 2px 0 0, 3px 3px 0 0, 4px 4px 0 0; position: relative; transition: box-shadow 0.2s, top 0.2s, left: 0.2s; } .button:active { box-shadow: 0px 0px 0px 0px; top: 5px; left: 5px; } .logo { width: 294px; height: 259px; } h1 { font-weight: 900; font-style: italic; font-size: 1.75rem; margin-bottom: 0.75rem; } .article { max-width: 30rem; font-size: 1.25rem; } .form-row { display: block; margin: 0.5rem 0; } .gallery { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(16, 5rem); grid-gap: 1rem; max-width: calc(100vw - 6rem); width: 56rem; } .gallery > div { position: relative; background-color: #00000011; } .gallery > div:nth-child(1) { grid-column: 1 / span 4; grid-row: 1 / span 5; } .gallery > div:nth-child(2) { grid-column: 1 / span 4; grid-row: 6 / span 3; } .gallery > div:nth-child(3) { grid-column: 5 / span 5; grid-row: 1 / span 8; } .gallery > div:nth-child(4) { grid-column: 1 / span 5; grid-row: 9 / span 8; } .gallery > div:nth-child(5) { grid-column: 6 / span 4; grid-row: 9 / span 4; } .gallery > div:nth-child(6) { grid-column: 6 / span 4; grid-row: 13 / span 4; } .gallery img, .gallery video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } @media screen and (max-width: 50rem) { body { margin: 2rem 1rem 1rem; } .container { gap: 2rem; } .gallery { display: flex; flex-direction: column; gap: 1rem; max-width: calc(100vw - 2rem); } .gallery img, .gallery video { position: static; } } @media (prefers-color-scheme: dark) { body { background-color: #000000; color: #ffffff; } a { color: burlywood; } .gallery > div { background-color: #ffffff22; } .button { color: #ffffff; } }