/* © 1994–2026 Dammermann. Alle Rechte vorbehalten. */
.project-category-picker { display:none; }
.gallery-toolbar { display:none; }
/* Keep sticky elements attached to the document scroller, not a non-scrolling body. */
.projects-ready body { overflow:visible !important; overflow-x:clip !important; }
.project-navigation { display:flex; justify-content:space-between; gap:16px 32px; flex-wrap:wrap; border-top:1px solid var(--line); margin-top:28px; padding-top:16px; }
.project-navigation a:last-child:not(:first-child) { margin-left:auto; }
.project-story-link { margin:20px 28px 0 0; }
.main .project-story-kicker { margin-top:24px !important; }
.project-story-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(32px,5vw,64px); align-items:start; }
.project-story-copy > div { margin-bottom:32px; }
.project-story-copy h2 { margin:0 0 12px; }
.project-story-copy p { margin:0; }
.project-story-photos { min-width:0; }
.project-story-photos figure { margin:0 0 32px; }
.project-story-photos a { display:block; border-radius:4px; overflow:hidden; }
.main .project-story-photos img { display:block; width:100%; height:auto; }
.project-story-photos figcaption { margin-top:10px; color:var(--muted); font-size:.875rem; }
.main .project-category { padding-block:48px 64px; }
.project-category__heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.project-category__heading h2 { margin:0 0 12px; }
.project-category__heading p { margin:0; max-width:62ch; }
.project-category__count { flex:0 0 auto; color:var(--muted); font-size:.875rem; }
.main .project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 24px; }
.work-project { min-width:0; padding:0; border:0; background:none; }
.work-project__summary { list-style:none; display:grid; grid-template-columns:1fr auto; cursor:pointer; padding:0 0 16px; gap:8px 16px; border:0; border-bottom:1px solid var(--line); color:var(--text); background:none; border-radius:0; }
.work-project__summary::-webkit-details-marker { display:none; }
.work-project__summary::before,.work-project__summary::after { display:none !important; }
.work-project__summary:focus-visible { outline:2px solid var(--accent-text); outline-offset:6px; }
.work-project__summary:active .work-project__action { text-decoration:underline; text-underline-offset:.22em; }
.main .work-project__cover { grid-column:1/-1; display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:4px; margin:0 0 8px; }
.work-project__heading { grid-column:1/-1; font:600 1.25rem/1.3 var(--font-head); text-wrap:balance; }
.work-project__count { font-size:.875rem; color:var(--muted); align-self:center; }
.work-project__action { display:flex; gap:8px; align-items:center; min-height:44px; font-size:.875rem; color:var(--accent-text); }
.work-project__action svg { width:18px; height:18px; transition:transform 180ms ease; }
.work-project .when-open { display:none; }
.work-project[open] { grid-column:1/-1; }
.work-project[open] .work-project__summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; }
.work-project[open] .work-project__cover,.work-project[open] .when-closed { display:none; }
.work-project[open] .when-open { display:inline; }
.work-project[open] .work-project__heading { flex:1 1 200px; }
.work-project[open] .work-project__action svg { transform:rotate(180deg); }
.work-project__body { padding-top:24px; }
.main .work-project__main { position:relative; display:flex; width:100%; align-items:center; justify-content:center; aspect-ratio:4/3; max-height:650px; background:rgba(0,0,0,.045); border-radius:4px; overflow:hidden; }
.main .work-project__main img { display:block; width:100%; height:100%; object-fit:contain; }
.work-project__main > span { position:absolute; right:12px; bottom:12px; padding:7px 12px; border-radius:3px; color:#fff; background:#272727; font-size:.875rem; }
.work-project__thumbs { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.work-project__thumbs a { display:block; width:80px; height:64px; padding:3px; border:2px solid transparent; border-radius:4px; }
.work-project__thumbs a[aria-current="true"] { border-color:var(--accent-text); }
.main .work-project__thumbs img { display:block; width:100%; height:100%; object-fit:cover; border-radius:1px; }
.work-project__contact { margin-top:20px; }
.projects-more { margin-top:32px; }
.projects-ready [data-gallery-panel][hidden],.projects-ready .work-project[hidden],.projects-more[hidden] { display:none !important; }
.projects-ready .project-grid.has-open-project > .work-project:not([open]) { display:none; }
.main .index-link[aria-current="true"] { color:var(--accent-text) !important; border-color:var(--accent-text); }
@media (hover:hover) and (pointer:fine) {
 .work-project__summary:hover .work-project__action { text-decoration:underline; text-underline-offset:.22em; }
 .work-project:not([open]) .work-project__summary:hover .work-project__action svg { transform:translateX(3px); }
 .work-project__thumbs a:hover { border-color:var(--muted); }
 .work-project__thumbs a[aria-current="true"]:hover { border-color:var(--accent-text); }
}
@media (max-width:1100px) { .main .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
 .projects-ready .main .subpage-card .category-index { display:none; }
 .projects-ready .gallery-toolbar { display:block; position:sticky; top:var(--gallery-top,72px); z-index:25; padding:8px 0; background:#f5f4ee; border-bottom:1px solid var(--line); }
 .gallery-toolbar__inner { width:calc(100% - 2 * var(--intro-gutter)); max-width:1160px; margin:auto; padding-inline:var(--intro-padding); box-sizing:border-box; }
 .projects-ready .project-category-picker { display:block; margin:0 !important; }
 .project-category-picker label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .project-category-picker select { box-sizing:border-box; width:100%; max-width:100%; height:44px; min-height:44px; padding:8px 36px 8px 12px; color:var(--text); background-color:var(--paper,#f5f4ee); border:1px solid var(--line); border-radius:4px; font:400 1rem/1.4 var(--font-body); }
 .main .project-category { padding-block:32px 48px; }
 .project-category__heading { display:block; margin-bottom:24px; }
 .project-category__count { margin-top:12px !important; }
 .main .project-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
 .work-project[open] .work-project__summary { gap:8px 16px; }
 .work-project[open] .work-project__heading { flex-basis:100%; }
 .work-project[open] .work-project__action { margin-left:auto; }
 .work-project__thumbs { gap:8px; }
 .work-project__thumbs a { width:64px; height:56px; }
 .main .work-project__main { aspect-ratio:4/3; }
 .work-project__main > span { font-size:.8125rem; right:8px; bottom:8px; padding:5px 8px; }
 .project-story-layout { grid-template-columns:minmax(0,1fr); }
 .project-navigation { gap:8px 20px; }
}
@media (prefers-reduced-motion:reduce) { .work-project__action svg { transition:none; } }

/* Keep the native picker for iOS; paint the selected label independently. */
@media(max-width:700px){
 .project-category-picker{position:relative;min-width:0}
 .project-category-picker select{color:#252b27!important;-webkit-text-fill-color:#252b27!important;color-scheme:light;text-indent:0!important;font-size:16px!important}
 .project-category-picker.has-visible-category select{position:absolute;inset:0;z-index:2;width:100%;height:100%;min-height:60px;opacity:0!important;cursor:pointer}
 .project-category-value{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;min-height:60px;padding:9px 12px;color:#252b27;background:#f5f4ee;border:1px solid #8a958a;border-radius:4px;font:400 16px/1.3 var(--font-body);pointer-events:none}
 .project-category-value__text{min-width:0;overflow-wrap:normal;hyphens:none}
 .project-category-value svg{width:18px;height:18px;flex:0 0 18px}
 .project-category-picker:focus-within .project-category-value{outline:2px solid #0a4189;outline-offset:2px}
}
@media(min-width:701px){.project-category-value{display:none}}
