/* Project browsing and comparisons. Separate selectors keep the legacy widgets isolated. */
.exp-comparison{width:100%;min-width:0;margin:0;color:var(--ink)}
.exp-comparison-stage{position:relative;width:100%;aspect-ratio:1600/1067;overflow:hidden;border:1px solid #c6d1c3;border-radius:10px;background:#dfe6da}
.exp-comparison-window{position:absolute;inset:0;overflow:hidden}
.exp-comparison-window .exp-comparison-image{display:block;width:100%;height:100%;max-width:none;object-fit:contain;transform:none;border-radius:0}
.exp-comparison-stage[data-exp-mode="before"] .exp-comparison-window,.exp-comparison-stage[data-exp-mode="after"] .exp-comparison-window{left:25%;right:25%}
.exp-comparison-stage[data-exp-mode="before"] .exp-comparison-image,.exp-comparison-stage[data-exp-mode="after"] .exp-comparison-image{width:200%;height:100%;object-fit:contain}
.exp-comparison-stage[data-exp-mode="after"] .exp-comparison-image{transform:translateX(-50%)}
.exp-comparison-labels{position:absolute;inset:14px 14px auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;pointer-events:none}
.exp-comparison-labels span{width:fit-content;padding:5px 12px;border-radius:4px;background:rgba(248,247,242,.96);color:#173f35;font-size:13px;font-weight:800;line-height:1.5;box-shadow:0 1px 4px #173f3518}
.exp-comparison-labels span:last-child{margin-left:7px}
.exp-comparison-stage[data-exp-mode="before"] [data-exp-after-label],.exp-comparison-stage[data-exp-mode="after"] [data-exp-before-label]{display:none}
.exp-comparison-stage:not([data-exp-mode="both"]) .exp-comparison-labels{left:calc(25% + 12px);right:auto;display:block}
.exp-comparison-stage:not([data-exp-mode="both"]) .exp-comparison-labels span{margin:0}
.exp-comparison-controls{display:flex;gap:4px;padding:4px;background:#fff;border:1px solid #b6c6b5;border-radius:7px;width:fit-content;max-width:100%;margin-top:10px}
.exp-comparison-controls button{min-height:44px;padding:10px 18px;background:transparent;border:0;border-radius:4px;color:#173f35;font-size:14px;font-weight:750;line-height:1.4}
.exp-comparison-controls button[aria-pressed="true"]{background:#173f35;color:#fff}
.exp-comparison-controls button:hover:not([aria-pressed="true"]){background:#eaf0e8}
.exp-comparison-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:3px;color:#40594b;font-size:13px;line-height:1.5}
.exp-comparison-caption>[data-exp-view-status]{display:block;flex:1}
.exp-comparison-caption a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px;font-weight:700;white-space:nowrap}
.exp-gallery{padding-top:26px}
.exp-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:16px}
.exp-filters{display:flex;flex-wrap:wrap;gap:7px}
.exp-filters button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #acbdad;background:transparent;border-radius:5px;padding:8px 12px;font-size:13px;font-weight:750;line-height:1.5}
.exp-filters button[aria-pressed="true"]{background:#173f35;border-color:#173f35;color:#fff}
.exp-filters button:hover:not([aria-pressed="true"]){background:#e7eee1}
.exp-filter-count{display:inline-grid;place-items:center;min-width:22px;min-height:22px;padding-inline:5px;border-radius:20px;background:#e3eadd;color:#173f35;font-size:13px}
.exp-filters button[aria-pressed="true"] .exp-filter-count{background:#c6e4d4}
.exp-filter-status{flex-shrink:0;font-size:13px;line-height:1.5;margin:0!important;color:#40594b}
.exp-project-list{columns:3;column-gap:24px}
.exp-project{display:inline-block;width:100%;vertical-align:top;break-inside:avoid;margin:0 0 26px}
.exp-project-media{position:relative;background:#e3eadd;border-radius:7px;overflow:hidden}
.exp-project-photo{display:block}
.exp-project-photo[data-exp-enhanced]{cursor:zoom-in}
.exp-project-photo img{display:block;width:100%;height:auto;max-height:none}
.exp-project-photo:focus-visible{outline-offset:-5px;outline-width:4px}
.exp-photo-tag{position:absolute;left:10px;top:10px;padding:5px 9px;background:#f8f7f2;color:#173f35;border-radius:4px;font-size:13px;font-weight:750;line-height:1.5;pointer-events:none}
.exp-preview-button{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:8px 11px;border:1px solid #f8f7f2;border-radius:5px;background:#f8f7f2;color:#173f35;font-size:13px;font-weight:800;box-shadow:0 2px 12px #173f3520}
.exp-preview-button:hover{background:#dcecdc;border-color:#dcecdc}
.exp-preview-button>span{font-size:24px;line-height:1}
.exp-project-copy{padding-top:12px}
.exp-project-category{font-size:13px;font-weight:650;line-height:1.5;color:#52684f;margin-bottom:5px}
.exp-project-copy h2{font-size:clamp(21px,1.9vw,26px);line-height:1.23;letter-spacing:-.035em}
.exp-project-copy h2 a{text-decoration:none}
.exp-project-copy h2 a:hover{text-decoration:underline;text-underline-offset:5px}
.exp-project-link{display:inline-flex;gap:18px;align-items:center;min-height:44px;margin-top:2px;font-size:14px;font-weight:800;text-decoration:none;text-underline-offset:5px}
.exp-project-link:hover{text-decoration:underline}
.exp-project-link>span{font-size:23px;font-weight:500}
.exp-gallery-note{font-size:14px;line-height:1.7;padding-top:16px;border-top:1px solid var(--line)}
.exp-photo-dialog{width:min(1060px,94vw);max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:0;border:1px solid #a9bca8;border-radius:12px;background:#f8f7f2;color:#173f35;overflow:auto;box-shadow:0 18px 80px #0b201c55;overscroll-behavior:contain}
.exp-photo-dialog::backdrop{background:rgba(10,29,24,.82)}
.exp-viewer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;background:#f8f7f2;border-bottom:1px solid #d7dfd5}
.exp-viewer-head p{font-size:14px;font-weight:700;color:#40594b;line-height:1.5}
.exp-viewer-close{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:44px;padding:7px 12px;background:transparent;border:1px solid #a9bca8;border-radius:5px;font-size:14px;font-weight:750;line-height:1.5}
.exp-viewer-close span{font-size:27px;line-height:1;font-weight:400}
.exp-viewer-image{display:flex;align-items:center;justify-content:center;height:min(52dvh,620px);background:#e0e7dc}
.exp-viewer-image img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.exp-viewer-thumbnails{display:flex;align-items:center;gap:8px;padding:12px 20px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-bottom:1px solid #d7dfd5;background:#edf1e8}
.exp-viewer-thumbnail{display:block;flex:0 0 76px;width:76px;height:58px;min-width:44px;min-height:44px;border:2px solid transparent;border-radius:4px;padding:2px;background:transparent;opacity:.72}
.exp-viewer-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
.exp-viewer-thumbnail[aria-current="true"]{border-color:#173f35;background:#fff;opacity:1}
.exp-viewer-thumbnail:hover{opacity:1}
.exp-viewer-thumbnail:focus-visible{outline-offset:2px;opacity:1}
.exp-viewer-body{display:flex;justify-content:space-between;align-items:flex-start;gap:26px;padding:18px 25px 0}
.exp-viewer-copy{max-width:650px;min-width:0}
.exp-viewer-copy h2{font-size:25px;line-height:1.25;letter-spacing:-.03em}
.exp-viewer-copy .exp-viewer-scope{font-size:15px;font-weight:700;margin-top:8px}
.exp-viewer-copy [data-exp-viewer-caption]{font-size:14px;line-height:1.6;margin-top:5px}
.exp-viewer-nav{display:flex;gap:8px;flex-shrink:0}
.exp-viewer-nav button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 13px;border:1px solid #a9bca8;border-radius:5px;background:transparent;font-size:14px;font-weight:750;line-height:1.5}
.exp-viewer-nav button:hover:not(:disabled),.exp-viewer-close:hover{background:#e3ecdd}
.exp-viewer-nav button:disabled{opacity:.45;cursor:default}
.exp-viewer-hint{padding:4px 25px 16px;font-size:13px;color:#52684f;margin-top:0!important}
@media(max-width:1000px){.exp-project-list{columns:2;column-gap:22px}.exp-gallery-toolbar{flex-wrap:wrap;gap:10px}}
@media(max-width:800px){.exp-viewer-body{flex-direction:column;gap:10px}.exp-viewer-nav{width:100%}.exp-viewer-nav button{flex:1}.exp-viewer-image{height:43dvh}.exp-photo-dialog{max-height:calc(100dvh - 20px)}.exp-viewer-body{padding:16px 20px 0}.exp-viewer-hint{padding-inline:20px}.exp-comparison-controls button{padding-inline:13px}}
@media(max-width:600px){.exp-gallery{padding-top:22px}.exp-gallery-toolbar{display:block;margin-bottom:20px;padding-bottom:14px}.exp-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px}.exp-filters button{padding:8px;gap:7px;min-height:44px;font-size:13px}.exp-filter-status{margin-top:10px!important}.exp-project-list{columns:1}.exp-project{margin-bottom:27px}.exp-project-copy h2{font-size:24px}.exp-comparison-controls{display:flex;width:100%;gap:3px}.exp-comparison-controls button{flex:1;padding:10px 6px;font-size:13px;white-space:nowrap}.exp-comparison-labels{inset:10px 10px auto;gap:10px}.exp-comparison-labels span{font-size:13px;padding:4px 9px}.exp-comparison-stage:not([data-exp-mode="both"]) .exp-comparison-labels{left:calc(25% + 8px)}.exp-comparison-caption{gap:10px;font-size:13px}.exp-viewer-head{padding:8px 12px;gap:10px}.exp-viewer-head p{font-size:13px}.exp-viewer-close{font-size:13px;gap:9px}.exp-viewer-body{padding:14px 16px 0}.exp-viewer-copy h2{font-size:22px}.exp-viewer-image{height:36dvh;min-height:170px}.exp-viewer-thumbnails{gap:7px;padding:10px 12px}.exp-viewer-thumbnail{flex-basis:70px;width:70px;height:54px}.exp-viewer-copy [data-exp-viewer-caption]{font-size:13px}.exp-viewer-hint{padding-inline:16px;font-size:13px}.exp-viewer-nav button{font-size:13px;min-height:44px}.exp-gallery-note{font-size:13px}}
