/* Client photographs keep their full composition in project galleries. */
.project-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
.project-gallery-item{margin:0;background:#d8cbb4;border:1px solid #b9a88466}
.project-gallery-item>a{position:relative;display:block;background:#25251f;overflow:hidden}
.project-gallery-item img{width:100%;height:520px;object-fit:contain;background:#25251f}
.project-gallery-item>a::after,.transformation-photo>a::after{content:'View full photo ↗';position:absolute;right:12px;bottom:12px;padding:7px 11px;font-size:10px;letter-spacing:.025em;color:#fff7e7;background:#171813dc;border:1px solid #d6b14b88;border-radius:2px;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s;pointer-events:none}
.project-gallery-item>a:hover::after,.project-gallery-item>a:focus-visible::after,.transformation-photo>a:hover::after,.transformation-photo>a:focus-visible::after{opacity:1;transform:none}
.project-gallery-item figcaption{font-size:12px;line-height:1.65;padding:16px 19px;background:#dfd3bd;color:#514a3d}
.project-gallery-grid>.project-gallery-item:only-child{grid-column:1/-1;max-width:900px;width:100%;justify-self:center}
.project-gallery-grid>.project-gallery-item:only-child img{height:auto;max-height:780px}
#project-transformations{background:#d8c9ab}
.gallery-open{position:absolute;right:12px;bottom:12px;width:34px;height:34px;display:grid;place-items:center;background:#1e211ddd;border:1px solid #d4b65b77;color:#f4df9e;font-size:20px;pointer-events:none}
.project-gallery-item>a::after,.transformation-photo>a::after{right:54px}
.transformation-note{margin-top:13px;color:#605642;font-size:11px;line-height:1.7}
.project-filter-status{font-size:12px;color:var(--muted);margin:0 0 23px}
.transformation-story+.transformation-story{margin-top:52px;padding-top:42px;border-top:1px solid #a58d5c66}
.transformation-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:21px}
.transformation-heading h3{font-size:34px}
.transformation-heading p{max-width:650px;margin-top:12px;font-size:13px;color:var(--muted)}
.transformation-heading .text-link{flex-shrink:0}
.transformation-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.transformation-photo{position:relative;margin:0;min-width:0;background:#262720;border:1px solid #a58d5c55}
.transformation-photo>a{display:block;position:relative}
.transformation-photo img{width:100%;height:450px;object-fit:contain;background:#262720}
.transformation-photo .stage-label{position:absolute;top:14px;left:14px;z-index:1;font-size:10px;letter-spacing:.045em;font-weight:600;padding:8px 12px;line-height:1.4;color:#fff6e4;background:#1e211de8;border:1px solid #d4b65b77;pointer-events:none}
.transformation-photo figcaption{padding:15px 18px;background:#e0d3b9;color:#514a3d;font-size:12px;line-height:1.6}
.home-transformations .section-heading>div{max-width:760px}
.home-transformations .transformation-photo img{height:430px}
.home-transformations .transformation-photo figcaption{background:#282b22;color:#d8ceb9}
.home-transformations .transformation-photo{border-color:#b69a4d55}
.gallery-hint{color:var(--muted);font-size:12px;margin-top:12px}
.project-lightbox{position:fixed;inset:0;width:min(1200px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #c5a34a88;border-radius:5px;background:#191b16;color:#f5ead4;box-shadow:0 30px 100px #0008;overflow:auto}
.project-lightbox::backdrop{background:#0b0c09e8;backdrop-filter:blur(8px)}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #d3b65b33;gap:15px}
.lightbox-title{font:500 24px var(--serif);letter-spacing:0}
.lightbox-close,.lightbox-prev,.lightbox-next{border:1px solid #bfa66366;background:#ffffff08;color:#f5ead4;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;font-size:24px;line-height:1}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background:#d5b75b22;border-color:#d5b75b}
.lightbox-stage{position:relative;display:grid;place-items:center;min-height:200px;background:#11130f}
.project-lightbox .lightbox-image{display:block;width:100%;height:calc(100dvh - 230px);max-height:820px;min-height:180px;object-fit:contain}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:#171912e6;z-index:1}
.lightbox-prev{left:14px}.lightbox-next{right:14px}
.lightbox-caption{padding:17px 22px;display:flex;align-items:start;justify-content:space-between;gap:25px;font-size:12px;line-height:1.6}
.lightbox-count{color:#e3c65f;white-space:nowrap;font-variant-numeric:tabular-nums}
body.gallery-is-open{overflow:hidden}
@media(hover:none){.project-gallery-item>a::after,.transformation-photo>a::after{opacity:1;transform:none}}
@media(max-width:700px){
 .project-gallery-grid{grid-template-columns:1fr;gap:23px}
 .project-gallery-item img{height:auto;max-height:620px}
 .transformation-heading{display:block}
 .transformation-heading h3{font-size:30px}
 .transformation-heading .text-link{margin-top:16px}
 .transformation-pair{grid-template-columns:1fr;gap:16px}
 .transformation-photo img,.home-transformations .transformation-photo img{height:auto;max-height:560px}
 .transformation-story+.transformation-story{margin-top:34px;padding-top:30px}
 .project-lightbox{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .lightbox-toolbar{padding:9px 12px}.lightbox-title{font-size:22px}
 .lightbox-caption{padding:14px 16px;gap:15px;font-size:11px}
 .project-lightbox .lightbox-image{height:calc(100dvh - 225px)}
 .lightbox-prev{left:7px}.lightbox-next{right:7px}
}
@media(prefers-reduced-motion:reduce){.project-gallery-item>a::after,.transformation-photo>a::after{transition:none;transform:none}}

/* The existing homepage slider reveals Before on the left and After on the right. */
.before-after .comparison-before{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}
.home-cedar-comparison .before-after{height:430px}
.home-cedar-comparison .split-copy{padding-left:0}
.home-cedar-comparison .comparison-note{font-size:9px;letter-spacing:.09em;color:#c9c0b3;margin-top:12px}
.home-cedar-comparison+.home-transformations{border-top:1px solid #b69a4d33}
@media(max-width:700px){.home-cedar-comparison .before-after{height:320px}.home-cedar-comparison .split-copy{padding:0 0 24px}}

.project-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 76px);
}
.project-intro .breadcrumb { color: #51483a; margin-bottom: 25px; }
.project-intro .breadcrumb a { color: inherit; }
.project-intro-copy h1 { font-size: clamp(2.5rem, 5vw, 5.25rem); margin-bottom: 18px; }
.project-intro-copy > p:not(.eyebrow) { max-width: 43ch; }
.project-intro-copy .actions { margin-top: 24px; }
.project-intro-layout figure {
  margin: 0;
  display: grid;
  place-items: center;
  height: clamp(325px, 37vw, 500px);
  background: #e3dac9;
}
.project-intro-layout img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.canva-gallery .project-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.canva-gallery .project-gallery-item img { width: 100%; height: clamp(210px, 25vw, 375px); object-fit: contain; }
@media (max-width: 900px) {
  .canva-gallery .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .project-intro-layout { grid-template-columns: 1fr; }
  .project-intro-layout figure { height: clamp(220px, 76vw, 480px); }
  .canva-gallery .project-gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .canva-gallery .project-gallery-item img { height: clamp(230px, 80vw, 420px); }
}
