*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,"Segoe UI",sans-serif;color:#111;background:#fff;line-height:1.5}
a{color:#111}a:hover{color:#555}
img{display:block;max-width:100%;height:auto}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
header,footer,.heading{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
header{padding:28px 0}
.brand{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:700;text-decoration:none}
nav{display:flex;gap:28px}nav a{padding:10px 0}
.lead,.card{display:block;text-decoration:none}
.lead img{width:100%}
.lead p,.card p,.title p,footer{color:#5c6266;font-size:15px}
.lead p{margin:20px 0 0}.lead h1{margin:4px 0;font-size:40px}
.about{display:flex;flex-wrap:wrap;gap:32px;align-items:center;margin:72px 0;padding:40px 0;border-block:1px solid #ddd}
.about div{flex:1 1 320px;max-width:640px;font-size:20px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:40px 32px}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card h3{margin:14px 0 4px;font-size:18px}.card p{margin:0}
.title{margin:24px 0}.title h1,.title p{margin:0}
.text{max-width:680px}
figure{margin:0 0 32px}figure img{margin:0 auto;width:auto;max-height:90vh}
.viewer{position:relative;height:min(70vh,66.7vw);margin-bottom:16px}
.viewer img{width:100%;height:100%;object-fit:contain}
.viewer button{position:absolute;top:calc(50% - 22px);width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.viewer .prev{left:8px}.viewer .next{right:8px}
.viewer button[hidden]{display:none}
.thumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.thumbs a{width:calc(var(--r) * 90px)}
.thumbs img{width:100%;opacity:.65}
.thumbs a:hover img,.thumbs a[aria-current] img{opacity:1}
.thumbs a[aria-current]{outline:3px solid #111;outline-offset:1px}
@media (max-width:600px){.thumbs a{width:calc(var(--r) * 56px)}}
footer{margin-top:80px;padding:28px 0;border-top:1px solid #ddd}
