/* Gallery layout. Shared v52 typography, navigation, buttons and footer stay authoritative. */
.projects-page main{padding-top:130px}
.projects-page .projects-intro{padding-top:28px;padding-bottom:54px}
.projects-intro .breadcrumbs{margin:0 0 30px}
.projects-intro h1{max-width:900px;margin:0 0 24px;hyphens:none;overflow-wrap:normal;word-break:normal}
.projects-intro>p{max-width:570px;margin:0;font-size:var(--type-body);line-height:1.65}
.projects-page .project-series{padding-top:28px;padding-bottom:70px}
.project-series .section-heading{display:flex;gap:24px;align-items:end;justify-content:space-between;margin-bottom:26px}
.project-series h2{max-width:800px;margin:0}
.series-meta{flex-shrink:0;color:var(--muted);font-size:14px;padding-bottom:6px}
.projects-page .media-rail{display:flex;gap:24px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;padding:4px 2px 16px}
.projects-page .media-rail::-webkit-scrollbar{display:none}
.projects-page .project-slide{flex:0 0 min(56vw,640px);width:min(56vw,640px);height:440px;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;border-radius:24px;background:#e5e9e1;overflow:hidden;user-select:none;box-shadow:0 6px 18px #233c2810}
.projects-page .project-slide img{width:100%;height:100%;display:block;object-fit:contain;border-radius:inherit;user-select:none;-webkit-user-drag:none}
.projects-page .rail-controls{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:6px}
.projects-page .rail-controls button{min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:0!important;position:relative}
.projects-page .rail-controls .mr-existing-rail-icon{display:block!important;position:relative;z-index:1;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex-shrink:0}
.projects-page .rail-controls button:after{content:none}
.projects-page .rail-controls button[data-step="1"]:after{transform:rotate(225deg);margin-left:-4px}
.projects-page .rail-controls button:disabled{opacity:.38;cursor:default}
.projects-page .rail-status{font-size:14px;min-width:66px;text-align:center}
.projects-page .project-slide:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #57766a,0 6px 18px #233c2810}
.projects-page .project-viewer button:focus-visible{outline:0;background:#ffffff38;box-shadow:inset 0 0 0 2px #b4c6bc}
.projects-page .projects-contact{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:80px;padding-top:50px;padding-bottom:100px}
.projects-contact h2{margin:0 0 26px;max-width:660px}
.projects-contact p{max-width:550px;margin:0 0 26px}
.projects-contact .text-link{display:block;width:fit-content;margin-top:20px}
.projects-contact>img{display:block;width:100%;height:350px;object-fit:contain;border-radius:24px}
@media(max-width:1100px){.projects-page .project-slide{height:360px}.projects-page .projects-contact{gap:35px}}
@media(max-width:700px){
 .projects-page main{padding-top:98px}
 .projects-page .projects-intro{padding-top:20px;padding-bottom:32px}
 .projects-intro .breadcrumbs{margin-bottom:22px}
 .projects-intro h1{font-size:clamp(32px,9vw,44px);margin-bottom:18px}
 .projects-page .project-series{padding-top:20px;padding-bottom:38px}
 .project-series .section-heading{display:block;margin-bottom:16px}
 .project-series h2{margin-bottom:12px}
 .series-meta{font-size:14px}
 .projects-page .media-rail{gap:14px;margin-right:-18px;padding-right:18px}
 .projects-page .project-slide{flex-basis:84vw;width:84vw;height:310px;border-radius:22px}
 .projects-page .projects-contact{display:flex;flex-direction:column-reverse;gap:26px;padding-top:24px;padding-bottom:60px}
 .projects-contact>img{height:270px;width:100%}
 .projects-contact h2{margin-bottom:20px}
 .projects-contact .button{width:100%}
}
@media(max-width:359px){.projects-page .project-slide{height:270px}}
.projects-page .archive-section{padding-top:28px;padding-bottom:70px}
.archive-section>h2{margin:0 0 20px}
.archive-section>p{max-width:550px;margin-bottom:24px}
.archive-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:30px}
.archive-tab{font:inherit;font-size:14px;color:inherit;background:#ffffff80;border:1px solid #cbd7cc;border-radius:18px;padding:12px 18px;min-height:44px;cursor:pointer;transition:background .2s,box-shadow .2s}
.archive-tab[aria-pressed="true"]{background:#dae8d7;box-shadow:inset 0 0 0 1px #91a58e}
.archive-tab:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #658372}
.archive-gallery[hidden]{display:none!important}
.archive-gallery>h2{margin:0 0 20px;font-size:var(--type-h2);font-weight:500;line-height:1.2}
.projects-page .archive-gallery .project-slide{flex:0 0 340px;width:340px;height:300px;display:flex;justify-content:center;align-items:center}
.projects-page .archive-gallery .project-slide img{width:auto;height:auto;max-width:100%;max-height:100%;border-radius:0}
@media(max-width:700px){.projects-page .archive-section{padding-bottom:32px}.archive-tabs{gap:8px}.archive-tab{padding:10px 14px}.projects-page .archive-gallery .project-slide{flex-basis:84vw;width:84vw;height:300px}}
