.ap-project-heading { margin: 0 0 32px; }
.ap-project-heading h1 { color: #42525a; font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
.ap-project-terms { margin: 0; font-size: 15px; }
.ap-project a, .ap-project-category a { color: #42525a; }
.ap-project a:focus-visible, .ap-project-category a:focus-visible { outline: 2px solid #42525a; outline-offset: 4px; }
.ap-project-featured { margin: 0 0 36px; text-align: center; }
.ap-project-featured img { display: block; margin: 0 auto; max-height: 80vh; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.ap-project-featured figcaption, .ap-project-gallery figcaption { font-size: 14px; color: #68767c; margin-top: 8px; }
.ap-project-text { max-width: 800px; margin: 0 auto 32px; }
.ap-project-text:empty, .ap-project-extra:empty { display: none; }
.ap-project-extra { margin-top: 32px; }
.ap-project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; align-items: start; margin: 24px 0; }
.ap-project-gallery figure { margin: 0; }
.ap-project-gallery img { display: block; width: 100%; height: auto; }
.ap-project-return { margin-top: 48px; padding-top: 24px; border-top: 1px solid #dfded9; }
.ap-project-return a { display: inline-block; padding: 10px 0; }
.ap-project-category .pagination { margin: 40px 0; }
.ap-project-category .page-numbers { display: inline-block; padding: 10px 14px; }
.ap-project-category .alain-archive img { aspect-ratio: 4 / 5; object-fit: contain; background: #f8f7f3; }
@media(max-width:640px) {
 .ap-project-gallery { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .ap-project-heading { margin-bottom: 24px; }
 .ap-project-featured img { max-height: none; }
}
