/* Image-led portfolio and larger, browsable project viewer. */
.portfolio-page{background:#fff;padding-top:32px}
.portfolio-page .portfolio-controls{padding-bottom:24px;border-bottom:1px solid #d8e3f0}
.portfolio-page .gallery-status{color:#2f6fb8;margin-bottom:32px}
#full-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 32px;align-items:start}
#full-gallery.masonry-ready{grid-auto-rows:8px;row-gap:0;grid-auto-flow:dense}
#full-gallery .project{min-width:0;align-self:start}
#full-gallery .project-image{border-radius:2px;background:#f7f9fc}
#full-gallery .project-image img{display:block;width:100%;height:auto;aspect-ratio:auto;max-height:none;object-fit:contain;background:transparent;transform:none}
#full-gallery .project-client{color:#2f6fb8;font-size:.8125rem;line-height:1.5;letter-spacing:.05em;margin:18px 0 8px}
#full-gallery .project-title{font-size:clamp(1.2rem,1.7vw,1.65rem);line-height:1.3;letter-spacing:-.025em;text-align:left}
#full-gallery .project-open{background:#fff;color:#202c3b;border:1px solid #d8e3f0;box-shadow:none;font-size:.875rem;padding:9px 14px;border-radius:2px}
#full-gallery .project-image:focus-visible{outline:3px solid #2f6fb8;outline-offset:5px}
#full-gallery .video-badge{border-radius:2px}
/* The full image stays visible; surrounding copy no longer pushes it out of view. */
#gallery-dialog,#project-dialog{width:94vw;max-width:1440px;max-height:94svh;padding:24px;border-radius:8px;overflow:auto;background:white}
#gallery-dialog::backdrop,#project-dialog::backdrop{background:#101a29dd}
#gallery-dialog .dialog-close,#project-dialog .dialog-close{position:absolute;right:14px;top:14px;float:none;background:white;color:#202c3b;z-index:4;box-shadow:0 2px 12px #0002}
.project-viewer{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:40px;align-items:start}
.viewer-media{min-width:0;background:#f6f8fb;position:sticky;top:0;display:flex;align-items:center;justify-content:center;min-height:320px}
.project-viewer .dialog-image{display:block;margin:0;width:100%;height:auto;max-height:calc(94svh - 48px);object-fit:contain;border-radius:0}
.project-viewer .dialog-video{margin:0;border-radius:0;width:100%;max-height:calc(94svh - 48px);object-fit:contain}
.project-viewer .youtube-video{aspect-ratio:16/9}
.viewer-copy{padding:38px 10px 8px 0;min-width:0}
.viewer-copy .viewer-client{color:#2f6fb8;font-size:.875rem;margin:0 0 14px;line-height:1.5}
.viewer-copy h2{font-size:clamp(1.5rem,2.2vw,2.1rem);line-height:1.18;margin:0 0 24px}
.viewer-copy>p:not(.viewer-client){color:#505c69;line-height:1.7;font-size:1rem;margin:0 0 22px}
.viewer-details{border-block:1px solid #d8e3f0;margin:24px 0;padding:17px 0}
.viewer-details summary{font-size:.9375rem;cursor:pointer;color:#202c3b;line-height:1.5}
.viewer-details p{font-size:1rem;line-height:1.7;color:#505c69;margin:18px 0 0}
.viewer-original{display:inline-block;color:#2f6fb8;font-size:.9375rem;line-height:1.5;text-decoration:underline;text-underline-offset:5px;margin-bottom:22px}
.viewer-copy .dialog-case-link{display:block;width:fit-content;margin:4px 0 0;background:#202c3b;border-radius:2px;padding:12px 18px;font-size:.9375rem}
.viewer-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:24px;margin-top:28px;border-top:1px solid #d8e3f0}
.viewer-nav button{border:1px solid #bcc9d9;padding:10px 14px;background:white;color:#202c3b;font-size:.875rem;border-radius:2px}
.viewer-nav button:disabled{opacity:.35;cursor:default}
.viewer-nav p{font-size:.8125rem;color:#66696e;margin:0}
@media(max-width:1000px){.project-viewer{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:26px}.viewer-copy h2{font-size:1.65rem}}
@media(max-width:760px){#full-gallery{grid-template-columns:1fr;gap:36px}#full-gallery.masonry-ready{grid-auto-rows:auto;grid-auto-flow:row;row-gap:36px}#full-gallery .project{grid-row-end:auto!important}#full-gallery .project-title{font-size:1.4rem}#full-gallery .project-client{font-size:.8125rem}.portfolio-page .portfolio-controls{padding-bottom:20px}.portfolio-page .gallery-status{margin-bottom:24px}#gallery-dialog,#project-dialog{width:96vw;max-height:94svh;padding:16px}.project-viewer{grid-template-columns:1fr;gap:24px}.viewer-media{position:static;min-height:0}.project-viewer .dialog-image{max-height:70svh}.project-viewer .dialog-video{max-height:65svh}.viewer-copy{padding:0 6px 8px}.viewer-copy h2{font-size:1.65rem}.viewer-nav{padding-top:20px;margin-top:24px}}
