#valitud.tv-section,.tg-page.tv-section{max-width:1120px;padding-block:clamp(32px,4vw,54px)}
#valitud .tv-heading{margin-bottom:20px}
#valitud .tv-heading h2{font-size:clamp(26px,3vw,40px)}
.tg-feature{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,22px);grid-auto-rows:1fr}
.tg-card{display:block;text-decoration:none;min-width:0}
.tg-feature .tg-card{padding:8px 8px 15px;border:1px solid #d2d9cf;border-radius:4px;background:#fff}
.tg-card img{display:block;width:100%;aspect-ratio:1.75;object-fit:cover;background:#e9ede3}
.tg-card strong{display:block;font:400 clamp(18px,1.55vw,23px)/1.24 Georgia,serif}
.tg-meta{display:block;margin:10px 0 4px;color:#50645b;font-size:13px}
.tg-feature .tg-meta,.tg-feature strong{margin-inline:6px}
.tg-card:is(:hover,:focus-visible) strong{text-decoration:underline;text-underline-offset:4px}
.tg-page h1{font:400 clamp(32px,3.7vw,50px)/1.12 Georgia,serif;letter-spacing:-.035em;margin:0 0 18px}
.tg-years{display:flex;gap:8px 20px;flex-wrap:wrap;border-bottom:1px solid #ccd5c9;padding-bottom:10px}
.tg-years a{display:inline-flex;align-items:center;min-height:38px;text-underline-offset:5px}
.tg-period{display:grid;grid-template-columns:minmax(100px,1fr) 5fr;gap:20px;padding:26px 0;border-bottom:1px solid #ccd5c9}
.tg-period h2{font:400 clamp(23px,2.2vw,31px)/1.2 Georgia,serif}
.tg-grid{border-left:1px solid #ccd5c9;padding-left:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 18px}
.tg-detail{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(24px,4vw,60px);align-items:center;margin:24px 0}
.tg-detail img{width:100%;max-height:62vh;object-fit:contain;background:#edf0e6}
.tg-detail p:not(.tg-meta){line-height:1.6;font-size:16px;margin:0 0 18px}
@media(max-width:850px){.tg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .tg-feature{grid-template-columns:1fr;gap:10px}
 .tg-feature .tg-card{display:grid;grid-template-columns:34% minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-content:center;padding:6px 10px 6px 6px}
 .tg-feature .tg-card img{grid-row:span 2;aspect-ratio:1.25;align-self:center}
 .tg-feature .tg-meta{align-self:end;margin:0 0 4px;font-size:12px}
 .tg-feature strong{margin:0;align-self:start;font-size:18px}
 .tg-period,.tg-detail{grid-template-columns:1fr;gap:12px}
 .tg-period{padding:20px 0}.tg-grid{padding-left:12px;gap:16px 10px}
 .tg-grid .tg-card img{aspect-ratio:1.35}
 .tg-grid strong{font-size:17px}.tg-meta{font-size:12px;margin:7px 0 3px}
 .tg-detail img{max-height:50vh}.tg-page h1{font-size:32px}
}

/* Project archive: year anchors and loose pairs of photographs. */
.tg-intro {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 28px}
.tg-intro h1 {margin:0}
.tg-years {border:0;gap:6px 20px;padding:0}
.tg-years a {text-decoration:underline;text-decoration-color:#99aa9d;text-underline-offset:6px}
.tg-period {display:block;border:0;padding:clamp(28px,4vw,54px) 0 0;scroll-margin-top:18px}
.tg-period h2 {display:flex;align-items:center;gap:18px;margin:0 0 20px}
.tg-period h2:after {content:'';height:1px;flex:1;background:linear-gradient(to right,#c5cec2,transparent)}
.tg-period .tg-grid {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center;gap:clamp(24px,4vw,50px);border:0;padding:0}
.tg-grid .tg-card {grid-column:span 7}
.tg-grid .tg-card:nth-child(4n+2),.tg-grid .tg-card:nth-child(4n+3) {grid-column:span 5}
.tg-grid .tg-card img {width:100%;aspect-ratio:1.9;object-fit:cover;border-radius:5px}
.tg-grid .tg-card:nth-child(4n+2) img,.tg-grid .tg-card:nth-child(4n+3) img {aspect-ratio:1.48}
.tg-grid .tg-card strong {margin-top:12px;text-wrap:pretty}
.tg-grid .tg-meta {margin:3px 0 0}
.tg-grid .tg-card:only-child {grid-column:2 / span 9}
@media(max-width:650px){
 .tg-intro {display:block}.tg-intro h1{margin-bottom:8px}
 .tg-period .tg-grid {display:flex;flex-direction:column;align-items:stretch;gap:25px}
 .tg-grid .tg-card:nth-child(even){margin-left:5vw}
 .tg-grid .tg-card img,.tg-grid .tg-card:nth-child(n) img {aspect-ratio:1.65}
 .tg-period h2{margin-bottom:14px}.tg-grid .tg-card strong{margin-top:8px}
}
