.portfolio{padding:11.25rem var(--page-gutter) 5rem}
.portfolio-heading{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:3rem;align-items:end}
.portfolio-heading h1{grid-column:2;font-size:var(--h2);font-weight:500;letter-spacing:-.02em}
.portfolio-heading>p{grid-column:4;justify-self:end;font-size:var(--h2);font-weight:500;line-height:1.1;letter-spacing:-.02em}
.portfolio-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:27vw 37vw 27vw 37vw 27vw auto;grid-auto-rows:auto;gap:1rem}
.portfolio-card{grid-column:var(--column)/span var(--span);grid-row:var(--row);min-width:0}
.portfolio-image{position:relative;overflow:hidden;transform:translateZ(0);contain:paint;backface-visibility:hidden}
.portfolio-image>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.portfolio-mask{position:absolute}
.portfolio-caption{margin-top:.75rem;display:flex;flex-direction:column;gap:.125rem}
.portfolio-caption-top>p{text-align:right}
.portfolio-caption-top{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.portfolio-name{display:flex;gap:.75rem;align-items:baseline}
.portfolio-name h2{font:inherit;letter-spacing:inherit}
.portfolio-category{color:var(--gray);opacity:.7}
.portfolio-cta{grid-column:1/-1;grid-row:var(--row);margin:4rem 0;display:flex;flex-direction:column;align-items:center;gap:1.5rem;text-align:center}
.portfolio-cta h2{font-size:var(--h3)}
.portfolio-cta>a{border-radius:var(--pill);padding:.375rem .75rem;background:#0000000d;color:var(--black);font-size:.875rem;transition:background .2s}
.project-strip{display:flex;flex-direction:column;gap:2rem;padding-bottom:4rem}
.project-panel{padding-inline:var(--page-gutter);flex:none}
.project-intro{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;height:90lvh;padding-top:6rem;padding-bottom:2rem;gap:1rem}
.project-intro h1,.project-year{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:normal}
.project-intro dl{display:flex;flex-direction:column;gap:1.25rem;margin:0}
.project-intro dd{margin:0}.project-intro dt{color:var(--gray);opacity:.7}
.project-copy>div{max-width:21.25rem;padding-block:2rem}
.project-copy h2{font-size:var(--h5);margin-bottom:1.5rem}
.project-copy p{white-space:pre-line}
.project-pictures{display:flex;flex-direction:column;gap:2rem}
.project-picture{display:block}
.project-picture img{display:block;width:100%;height:auto;object-fit:contain}
.project-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:3rem;margin:0;background:#000e;color:var(--white)}
.project-lightbox[open]{display:flex;align-items:center;justify-content:center}
.project-lightbox::backdrop{background:#000b}
.project-lightbox>img{max-width:100%;max-height:100%;object-fit:contain}
.project-lightbox button{position:absolute;background:transparent;border:0;color:inherit;padding:.75rem;cursor:pointer}
.project-lightbox svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:1.5}
.lightbox-close{right:1rem;top:1rem}.lightbox-previous{left:0;top:50%}.lightbox-next{right:0;top:50%}
@media(min-width:768px){
  .project-scroll.is-horizontal .project-viewport{position:sticky;top:0;height:100vh;overflow:hidden}
  .is-horizontal .project-strip{flex-direction:row;gap:4rem;width:max-content;height:100vh;padding-bottom:0;align-items:center;will-change:transform}
  .is-horizontal .project-panel{height:37.5rem}
  .is-horizontal .project-intro{padding-block:2rem;gap:0}
  .is-horizontal .project-copy{width:24.25rem}
  .is-horizontal .project-pictures{flex-direction:row;gap:4rem;align-items:center}
  .is-horizontal .project-picture img{width:auto;height:37.5rem;max-width:none}
}
@media(max-width:991px){
  .portfolio{padding-top:8rem;padding-bottom:6rem}
  .portfolio-heading{display:flex;justify-content:space-between}
  .portfolio-grid{display:flex;flex-direction:column}
  .portfolio-card{min-height:0}
  .portfolio-year{display:none}
  .portfolio-cta{margin:2.5rem 0;min-height:10rem;justify-content:center}
}
@media(max-width:767px){.portfolio{padding-bottom:4rem}.portfolio-heading{margin-bottom:2rem}}
