article.project { display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: nowrap; flex-direction: row; h2 { margin-top: 0; } a.photo { width: $thumbnail_image_size; height: $thumbnail_image_size; margin-right: 1em; } img { max-height: $thumbnail_image_size; width: unset; aspect-ratio: 1 / 1; } figure { padding: 0; justify-content: center; } section.text { width: 100%; } } section.header { width: 100%; h1 { font-size: clamp(20px, 20px * 100vw / 300px, 25px); } .icon-container { height: clamp(30px, 80px * 100vw / 375px, 50px); aspect-ratio: 1 / 1; overflow: clip; } } section.header.sticky { width: 100%; gap: 1em; position: sticky; top: 0px; background: var(--theme-bg-color); z-index: 11; margin-top: 0.5rem; } .icon-container { canvas { width: 100%; height: 100%; position: relative; left: 100%; transition: left 0.3s ease-in-out, } canvas.revealed { left: 0%; } } .under-construction { position: relative; display: inline-block; /* or block, as needed */ } .under-construction::before { content: "🔧"; position: absolute; top: 0; right: 0; width: 30px; height: 30px; padding: 5px; background: #ffeb3b; /* yellow triangle */ clip-path: polygon(0 0, 100% 0, 100% 100%); display: flex; justify-content: flex-end; font-size: 16px; color: grey; /* wrench color */ text-shadow: 0 0 1px rgba(0,0,0,0.3); }