/* Four project albums. Their source photos and galleries stay on this page. */
.page-projects{background:var(--paper);color:var(--ink)}
.projects-catalog{padding:0 var(--page) 85px;max-width:1800px;margin:auto}
.project-album{padding-top:30px;border-top:1px solid var(--line);scroll-margin-top:122px}
.project-album+.project-album{margin-top:70px}
.album-heading{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:26px}
.album-identity{display:flex;align-items:flex-start;gap:28px;min-width:0}
.album-number{font-size:.875rem;color:var(--red);font-variant-numeric:tabular-nums;line-height:1.5;padding-top:3px}
.album-location{font-size:.8125rem;color:var(--muted);margin:0 0 10px;line-height:1.4}
.album-location>span{color:#adb3b6;margin:0 10px}
.album-heading h2{font-size:clamp(25px,2.6vw,39px);line-height:1.2;letter-spacing:-.045em;font-weight:500;margin:0}
.album-open{display:flex;align-items:center;gap:22px;flex-shrink:0;font-size:.875rem;font-weight:600;line-height:1.5;padding:4px 0 4px 12px}
.album-open small{display:block;color:var(--muted);font-size:.8125rem;font-weight:400;margin-top:4px}
.album-open-icon{display:grid;place-items:center;border:1px solid var(--line);width:48px;height:48px;border-radius:50%;font-size:25px;font-weight:400;transition:background .2s ease,color .2s ease,border-color .2s ease}
.album-mosaic{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;height:clamp(410px,42vw,650px)}
.album-photo{position:relative;display:block;min-height:0;min-width:0;overflow:hidden;background:#eaeae4;border-radius:3px;isolation:isolate}
.album-photo-1{grid-row:1/3}
.album-photo>img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease-out)}
.album-photo-1>img{object-position:center 48%}
#tema-istanbul-2 .album-photo-1>img{object-position:center 30%}
.album-photo-3:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0009);z-index:0;pointer-events:none}
.album-zoom{position:absolute;right:20px;bottom:20px;background:#fffc;color:#171e23;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font-size:26px;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s var(--ease-out)}
.album-more{position:absolute;z-index:1;bottom:21px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:white;font-size:.875rem;font-weight:500;line-height:1.4}
.album-more>span{font-size:1rem;white-space:nowrap}
.project-album:nth-child(even) .album-mosaic{grid-template-columns:minmax(0,1fr) minmax(0,1.9fr)}
.project-album:nth-child(even) .album-photo-1{grid-column:2}
.project-album:nth-child(even) .album-photo-2{grid-column:1;grid-row:1}
.project-album:nth-child(even) .album-photo-3{grid-column:1;grid-row:2}
.page-projects .js-reveal{transform:translateY(16px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
.page-projects .js-reveal.is-visible{transform:none}
.page-projects .album-mosaic.js-reveal{transition-delay:60ms}
.page-projects .js-reveal:focus-within{opacity:1;transform:none;transition:none}
.album-photo:focus-visible{outline:3px solid var(--red);outline-offset:4px}
@media(hover:hover) and (pointer:fine){.album-photo:hover>img{transform:scale(1.025)}.album-photo:hover .album-zoom{opacity:1;transform:none}.album-open:hover .album-open-icon{background:var(--ink);border-color:var(--ink);color:white}}
@media(max-width:1000px){.album-heading h2{font-size:28px}.album-identity{gap:18px}.album-mosaic{height:450px;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.project-album:nth-child(even) .album-mosaic{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.album-open{gap:14px}.album-open-icon{width:43px;height:43px}.album-more{left:18px;right:18px;bottom:18px}}
@media(max-width:700px){.projects-catalog{padding-bottom:45px}.project-album{padding-top:22px}.project-album+.project-album{margin-top:40px}.album-heading{gap:16px;align-items:flex-start;margin-bottom:22px}.album-identity{gap:13px}.album-number{font-size:.75rem;padding-top:2px}.album-location{font-size:.75rem;margin-bottom:10px}.album-location>span{margin:0 6px}.album-heading h2{font-size:clamp(24px,5.4vw,32px);line-height:1.2;letter-spacing:-.04em}.album-open{padding:0;align-self:flex-end}.album-open>span:first-child{display:none}.album-open-icon{width:44px;height:44px;font-size:24px}.album-mosaic,.project-album:nth-child(even) .album-mosaic{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:8px}.album-photo-1,.project-album:nth-child(even) .album-photo-1{grid-column:1/-1;grid-row:1;aspect-ratio:1.12}.album-photo-2,.project-album:nth-child(even) .album-photo-2{grid-column:1;grid-row:2;aspect-ratio:1.25}.album-photo-3,.project-album:nth-child(even) .album-photo-3{grid-column:2;grid-row:2;aspect-ratio:1.25}.album-photo-3:after{inset:30% 0 0}.album-more{left:12px;right:12px;bottom:12px;gap:8px;align-items:flex-start;flex-direction:column;font-size:.75rem}.album-more>span{font-size:.875rem}.album-zoom{display:none}}
@media(prefers-reduced-motion:reduce){.page-projects .js-reveal{opacity:1;transform:none;transition:none}.album-photo>img{transition:none}.album-photo:hover>img{transform:none}.album-zoom{transform:none;transition:opacity .15s ease}}

/* A photographic viewer with a quiet editorial panel. */
.page-projects .photo-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--paper);color:var(--ink);opacity:0;transform:translateY(12px);transition:opacity 250ms var(--ease-out),transform 250ms var(--ease-out),display 250ms allow-discrete,overlay 250ms allow-discrete}
.page-projects .photo-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) clamp(310px,27vw,400px);opacity:1;transform:none;animation:none}
.page-projects .photo-dialog::backdrop{background:#111;backdrop-filter:none;opacity:0;transition:opacity 250ms var(--ease-out),display 250ms allow-discrete,overlay 250ms allow-discrete}
.page-projects .photo-dialog[open]::backdrop{opacity:1}
@starting-style{.page-projects .photo-dialog[open]{opacity:0;transform:translateY(12px)}.page-projects .photo-dialog[open]::backdrop{opacity:0}}
.page-projects .photo-dialog.instant,.page-projects .photo-dialog.instant::backdrop{transition:none}
.gallery-viewer{position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#171717;color:#f5f5f2;overflow:hidden}
.gallery-viewer-top,.gallery-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 32px;font-size:.8125rem;line-height:1.5}
.gallery-viewer-top>span:first-child{font-weight:600;letter-spacing:.055em}
.gallery-view-label{color:#aaa9a5;font-size:.6875rem;letter-spacing:.13em}
.page-projects .lightbox-stage{position:relative;width:100%;height:auto;min-height:0;margin:0;padding:0 80px;background:transparent;border-radius:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.page-projects .lightbox-stage>img{width:100%;height:100%;max-height:100%;object-fit:contain;transition:opacity 150ms ease}
.page-projects .lightbox-stage.is-loading>img{opacity:.25}
.gallery-status{position:absolute;inset:50% 0 auto;margin:0;text-align:center;color:#dadad5;font-size:.875rem}
.gallery-status[hidden]{display:none}
.page-projects .photo-dialog .gallery-controls{position:absolute;inset:50% 18px auto;transform:translateY(-50%);height:48px;margin:0;padding:0;display:flex;align-items:center;justify-content:space-between;background:none;pointer-events:none}
.page-projects .photo-dialog .gallery-controls button{display:grid;place-items:center;pointer-events:auto;width:48px;height:48px;border:1px solid #ffffff25;border-radius:50%;padding:0;background:#171717bf;color:#f5f5f2;transition:background 180ms ease,border-color 180ms ease}
.gallery-controls svg,.dialog-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.gallery-viewer-bottom{padding-top:22px;padding-bottom:24px;color:#c6c6c0}
#gallery-counter{font-size:.875rem;font-variant-numeric:tabular-nums;letter-spacing:.12em;white-space:nowrap}
.gallery-key-hint{display:flex;gap:12px;align-items:center;color:#a5a5a0;font-size:.75rem}
.gallery-key-hint>span{font-size:16px;letter-spacing:.3em;color:#dadad6}
.gallery-panel{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:92px 30px 25px;background:var(--paper)}
.page-projects .photo-dialog .dialog-close{position:absolute;right:25px;top:18px;display:flex;align-items:center;justify-content:center;gap:13px;min-width:44px;min-height:44px;padding:9px 4px 9px 12px;background:none;border:0;color:var(--ink);font-size:.8125rem;letter-spacing:0}
.page-projects .photo-dialog .dialog-close svg{width:25px;height:25px}
#gallery-meta{font-size:.75rem;line-height:1.5;color:var(--muted);margin:0 0 15px}
.page-projects .photo-dialog #dialog-title{font-size:clamp(25px,2.3vw,36px);font-weight:500;line-height:1.19;letter-spacing:-.045em;color:var(--ink);margin:0;text-wrap:balance}
.page-projects .photo-dialog #gallery-caption{font-size:.875rem;line-height:1.7;letter-spacing:0;color:var(--muted);margin:19px 0 0;min-height:4.8em}
.gallery-selection-label{display:flex;align-items:center;justify-content:space-between;padding:22px 0 15px;margin-top:17px;border-top:1px solid var(--line);font-size:.75rem;line-height:1.5;color:var(--muted)}
#gallery-total{font-variant-numeric:tabular-nums}
.gallery-thumbnails{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#babdb4 transparent;margin:0 -4px;padding:4px;min-height:0;min-width:0}
.gallery-thumbnail{position:relative;display:block;width:100%;aspect-ratio:4/3;flex-shrink:0;min-width:0;padding:0;border:0;border-radius:3px;background:#d9dcd3;opacity:.68;transition:opacity 180ms ease;isolation:isolate}
.gallery-thumbnail img{width:100%;height:100%;object-fit:cover;border-radius:3px}
.gallery-thumbnail:after{position:absolute;inset:0;content:"";border:1px solid #1b1b1b12;border-radius:3px;pointer-events:none}
.gallery-thumbnail[aria-current=true]{opacity:1;outline:2px solid var(--red);outline-offset:2px}
.gallery-thumbnail:focus-visible{outline:2px solid var(--ink);outline-offset:2px;opacity:1}
@media(hover:hover) and (pointer:fine){.gallery-thumbnail:hover{opacity:1}.page-projects .photo-dialog .gallery-controls button:hover{background:#ffffff20;border-color:#ffffff65}.page-projects .photo-dialog .dialog-close:hover{color:var(--red)}}
@media(max-width:900px){.page-projects .photo-dialog[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.gallery-viewer-top{padding:19px 22px;min-height:68px}.gallery-view-label{display:none}.gallery-panel{position:static;padding:19px 22px max(18px,env(safe-area-inset-bottom));min-height:0;overflow:hidden}.page-projects .photo-dialog .dialog-close{top:13px;right:17px;color:#f5f5f2;padding:8px;z-index:2}.page-projects .photo-dialog .dialog-close .gallery-close-label{display:none}.page-projects .lightbox-stage{padding:0 14px}.page-projects .photo-dialog .gallery-controls{inset:auto 18px 7px;transform:none;height:44px}.page-projects .photo-dialog .gallery-controls button{width:40px;height:40px}.gallery-viewer-bottom{justify-content:center;min-height:61px;padding:17px 65px 20px}.gallery-key-hint{display:none}#gallery-meta{font-size:.75rem;margin-bottom:7px}.page-projects .photo-dialog #dialog-title{font-size:24px;line-height:1.22;text-wrap:initial}.page-projects .photo-dialog #gallery-caption{font-size:.8125rem;line-height:1.5;margin:9px 0 14px;min-height:3em}.gallery-selection-label{display:none}.gallery-thumbnails{display:flex;gap:10px;overflow-y:hidden;overflow-x:auto;padding:4px 4px 7px}.gallery-thumbnail{width:78px;flex:0 0 78px;height:58px;aspect-ratio:auto}.gallery-thumbnail[aria-current=true]{outline-offset:1px}}
@media(max-width:370px){.gallery-panel{padding:15px 18px 13px}.gallery-viewer-top{padding:15px 18px;min-height:60px}.page-projects .photo-dialog #dialog-title{font-size:21px}.page-projects .photo-dialog #gallery-caption{font-size:.75rem;margin-top:8px;margin-bottom:10px}.gallery-thumbnail{width:64px;flex-basis:64px;height:48px}.page-projects .photo-dialog .dialog-close{top:8px}}
@media(max-height:500px) and (min-width:601px){.page-projects .photo-dialog[open]{grid-template-columns:minmax(0,1fr) 260px}.gallery-panel{position:relative;padding:62px 20px 12px;overflow:hidden}.gallery-viewer-top,.gallery-viewer-bottom{padding:13px 20px}.gallery-view-label,.gallery-key-hint{display:none}.page-projects .lightbox-stage{padding:0 65px}.page-projects .photo-dialog .dialog-close{top:8px;right:15px}.page-projects .photo-dialog #dialog-title{font-size:22px}#gallery-meta{margin-bottom:8px}.page-projects .photo-dialog #gallery-caption{font-size:.8125rem;margin-top:12px;min-height:0}.gallery-selection-label{padding-top:15px;margin-top:15px}.gallery-thumbnails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-shrink:1;overflow:auto}.gallery-thumbnail{width:100%;height:auto;aspect-ratio:4/3}.gallery-selection-label{display:flex}.page-projects .photo-dialog .dialog-close{color:var(--ink)}.page-projects .photo-dialog .dialog-close .gallery-close-label{display:inline}}
@media(prefers-reduced-motion:reduce){.page-projects .photo-dialog,.page-projects .photo-dialog[open]{transform:none;transition:none}.page-projects .photo-dialog::backdrop{transition:none}.page-projects .lightbox-stage>img{transition:none}}

.page-projects .photo-dialog .gallery-close-label{font-size:.8125rem;line-height:1.5;font-weight:400}
.page-projects .lightbox-stage.instant-photo>img{transition:none}
@media(max-width:600px) and (max-height:600px){.gallery-panel{padding:12px 18px}.gallery-project{margin-bottom:12px}#gallery-meta{margin-bottom:4px}.page-projects .photo-dialog #dialog-title{font-size:20px}.page-projects .photo-dialog #gallery-caption{display:none}.gallery-thumbnail{width:64px;flex-basis:64px;height:48px}.gallery-viewer-top{min-height:54px;padding:13px 18px}.gallery-viewer-bottom{min-height:54px;padding:14px 65px}.page-projects .photo-dialog .dialog-close{top:5px}}
