/* Project detail: quiet information column beside a photographic contact sheet. */
.viewing-project{background:#fff}
.viewing-project .portfolio-hero{display:none}
.viewing-project .page-body{padding:32px 3% 80px}
.project-detail:not([hidden]){display:grid;grid-template-columns:minmax(220px,29%) minmax(0,1fr);gap:4%;padding:0;border:0;align-items:start;scroll-margin-top:24px}
.project-sidebar{position:sticky;top:28px;min-width:0;padding:0 5% 24px 0}
.project-sidebar .back-list{display:block;background:none;border:0;padding:0;margin:0 0 26px;color:#777;font-size:11px}
.project-sidebar .apartment-name{font-size:clamp(18px,1.6vw,25px)!important;font-weight:400;line-height:1.55;letter-spacing:-.6px;margin:0 0 12px;word-break:keep-all}
.project-spec{font-size:15px;letter-spacing:.3px;margin:0 0 42px;color:#555}
.project-sidebar .room-heading{font-size:11px;font-weight:500;border:0;margin:0 0 20px;padding:0;letter-spacing:0}
.project-sidebar .plan-group{margin:0;padding:0}
.project-sidebar .plan-photos{display:flex;gap:18px;flex-direction:column}
.project-sidebar .plan-photos figure{width:100%;max-width:100%;margin:0}
.project-sidebar .plan-photos img{width:100%;height:auto;max-height:290px;aspect-ratio:auto;object-fit:contain}
.project-sidebar .photo-hint{display:none}
.project-story{margin-top:30px;border-top:1px solid #ececec;padding-top:16px}
.project-story summary{font-size:11px;color:#777;cursor:pointer}
.project-story p{font-size:12px;line-height:1.9;color:#777}
.project-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.project-image-grid .room-group,.project-image-grid .detail-photos{display:contents}
.project-image-grid .room-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.project-image-grid figure,.project-image-grid figure:first-child{grid-column:auto;margin:0;min-width:0}
.project-image-grid .photo-open{width:100%;aspect-ratio:1;overflow:hidden}
.project-image-grid img,.project-image-grid figure:first-child img{width:100%;height:100%;aspect-ratio:1;object-fit:cover}
.project-image-grid .photo-hint{opacity:0;font-size:10px;padding:6px 8px;bottom:10px;right:10px;transition:opacity .2s}
.project-image-grid .photo-open:hover .photo-hint,.project-image-grid .photo-open:focus-visible .photo-hint{opacity:1}
@media(min-width:1600px){.project-image-grid{gap:10px}.project-sidebar .plan-photos img{max-height:340px}}
@media(max-width:1000px){.project-detail:not([hidden]){grid-template-columns:230px minmax(0,1fr);gap:24px}.project-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.viewing-project .page-body{padding:24px 5% 48px}.project-detail:not([hidden]){display:block}.project-sidebar{position:static;padding:0;margin-bottom:26px}.project-sidebar .back-list{margin-bottom:20px}.project-sidebar .apartment-name{font-size:22px!important}.project-spec{margin-bottom:26px;font-size:15px}.project-sidebar .plan-photos{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:center}.project-sidebar .plan-photos img{max-height:220px}.project-sidebar .room-heading{margin-bottom:14px}.project-story{margin-top:20px}.project-image-grid{gap:5px;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fixed frames prevent source dimensions or first-photo rules changing tile sizes. */
.project-sidebar .plan-photos figure,.project-sidebar .plan-photos figure:last-child{width:100%;max-width:none;align-self:auto}
.project-sidebar .plan-image{display:block;position:relative;width:100%;aspect-ratio:4/3;background:#fff;overflow:hidden;cursor:default}
.project-sidebar .plan-photos .plan-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center}
.project-image-grid{grid-auto-rows:auto;align-items:start}
.project-image-grid .detail-photos figure{width:100%;min-width:0;align-self:start}
.project-image-grid .detail-photos .photo-open{display:block;position:relative;padding:0;width:100%;height:auto;aspect-ratio:1/1;overflow:hidden}
.project-image-grid .detail-photos .photo-open img,.project-image-grid .detail-photos figure:first-child .photo-open img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center}

/* The supplied drawings share one canvas ratio; show the complete image. */
.project-sidebar .plan-photos{display:flex;flex-direction:column;gap:12px}
.project-sidebar .plan-photos .plan-image{display:block;position:relative;width:100%;height:auto;aspect-ratio:2048/1433;padding:0;border:0;border-radius:0;background:#fff;cursor:zoom-in}
.project-sidebar .plan-photos .plan-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.project-sidebar .plan-photos .plan-image:focus-visible{outline:2px solid #6a6a5e;outline-offset:4px}
@media(max-width:700px){.project-sidebar .plan-photos{display:flex;flex-direction:column;gap:12px}}
