:root { color: #66636b; background: #fff; font-family: "Open Sans", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: #514d59; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 2px solid #514d59; outline-offset: 4px; }
.shell { width: min(1065px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 184px; }
.wordmark { display: block; font: 400 28px/1.1 Georgia, "Times New Roman", serif; letter-spacing: 2px; color: #5e5b65; }
.tagline { margin-top: 31px; color: #77747a; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.site-header nav { display: flex; gap: 31px; padding-top: 10px; font: 16px/1.2 Georgia, "Times New Roman", serif; }
.site-header nav a { color: #6b6870; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: #66636b; }
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 35px; row-gap: 38px; margin-top: 183px; padding-bottom: 120px; }
.project-card { display: block; min-width: 0; }
.cover-wrap { aspect-ratio: 1; position: relative; overflow: hidden; background: #fafafa; }
.cover-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-count { position: absolute; right: 8px; bottom: 7px; padding: 2px 5px; color: #fff; background: rgb(0 0 0 / 70%); font-size: 10px; opacity: 0; }
.project-card:hover .image-count, .project-card:focus-visible .image-count { opacity: 1; }
.project-title { display: block; margin-top: 10px; overflow: hidden; color: #6b6870; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.project-card:hover .project-title, .project-card:focus-visible .project-title { color: #77747a; }
.gallery-layout { display: grid; grid-template-columns: minmax(0, 755px) minmax(0, 1fr); gap: 95px; align-items: start; margin-top: 170px; padding-bottom: 100px; }
.gallery-artworks { display: grid; gap: 28px; min-width: 0; }
.gallery-artworks { grid-column: 1; grid-row: 1; }
.gallery-artworks img { display: block; width: 100%; height: auto; }
.gallery-details { position: sticky; top: 40px; grid-column: 2; grid-row: 1; }
.gallery-details h1 { margin: 0 0 16px; color: #6b6870; font: 400 20px/1.4 Georgia, "Times New Roman", serif; letter-spacing: 2px; text-transform: lowercase; }
.gallery-details p { margin: 0; color: #6b6870; font-size: 13px; line-height: 2.2; }
.back-link { display: inline-block; margin-top: 30px; color: #6b6870; font-size: 12px; }
.back-link:hover, .back-link:focus-visible { color: #66636b; }
.about-layout { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 124px; align-items: start; margin-top: 183px; padding-bottom: 100px; }
.about-layout img { display: block; width: 100%; }
.about-copy h1 { margin: 5px 0 20px; color: #66636b; font: 400 26px/1.3 "Open Sans", Arial, sans-serif; letter-spacing: 2px; }
.about-copy p { margin: 0; color: #6b6870; font-size: 15px; line-height: 1.9; }
@media (max-width: 1100px) { .about-layout { grid-template-columns: 56% minmax(0, 1fr); gap: 8%; } }
@media (max-width: 1100px) { .gallery-layout { grid-template-columns: minmax(0, 72%) minmax(0, 1fr); gap: 6%; } }
@media (max-width: 900px) { .site-header { padding-top: 80px; } .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 100px; gap: 28px; } .gallery-layout, .about-layout { margin-top: 100px; } }
@media (max-width: 650px) { .shell { width: min(100% - 32px, 460px); } .site-header { padding-top: 38px; display: block; } .wordmark { font-size: 23px; } .tagline { margin-top: 16px; font-size: 8px; line-height: 1.6; } .site-header nav { margin-top: 25px; padding: 0; } .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 68px; } .gallery-layout, .about-layout { margin-top: 68px; } .gallery-layout { display: flex; flex-direction: column; gap: 28px; } .gallery-details { position: static; } .gallery-artworks { gap: 20px; } .about-layout { grid-template-columns: 1fr; gap: 30px; } }
