.project-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);min-width:0}
.project-card__art:before{display:none}
.project-card__actions{display:flex;align-items:center;gap:1rem;margin-top:1.25rem}
.project-card__actions .button{min-height:2.7rem;padding:.55rem .8rem;font-size:.85rem}
.project-card__details{font-size:.85rem;font-weight:800;color:var(--ink)}
.portfolio-shell{display:grid;grid-template-columns:15rem minmax(0,1fr);gap:3rem;align-items:start}
.portfolio-guide{position:sticky;top:1.25rem;padding:1.4rem 0;border-top:4px solid var(--accent)}
.portfolio-guide h2{font-size:1.45rem;line-height:1.05;margin:.65rem 0}
.portfolio-guide p{font-size:.92rem;color:var(--muted)}
.portfolio-guide .button{width:100%;margin-top:.8rem}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:2rem 0}
.project-gallery figure,.project-gallery__trigger{margin:0;border:1px solid var(--line);background:var(--white);padding:.5rem}
.project-gallery__trigger{cursor:zoom-in;position:relative;text-align:left}
.project-gallery__trigger:after{content:'View gallery';position:absolute;right:.9rem;bottom:.9rem;background:var(--night);color:#fff;padding:.35rem .5rem;font-size:.72rem;font-weight:800;opacity:0}
.project-gallery__trigger:hover:after,.project-gallery__trigger:focus-visible:after{opacity:1}
.project-gallery img{display:block;width:100%;height:auto}
.project-gallery figure:only-child{grid-column:1/-1;max-width:42rem}
.project-details{position:sticky;top:1.25rem;height:max-content}
.project-details .button{width:100%;margin-top:1.2rem}
.project-lightbox{width:min(94vw,1100px);max-height:92vh;padding:0;border:0;background:var(--night);color:#fff}
.project-lightbox::backdrop{background:rgba(0,0,0,.78)}
.project-lightbox__bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-bottom:1px solid #494844}
.project-lightbox__bar p{margin:0;font-size:.82rem;font-weight:800}
.project-lightbox button{border:1px solid #6a6862;background:transparent;color:#fff;padding:.55rem .75rem;font-weight:800}
.project-lightbox button:hover,.project-lightbox button:focus-visible{background:var(--accent);border-color:var(--accent)}
.project-lightbox>img{display:block;max-width:100%;max-height:calc(92vh - 7rem);width:auto;height:auto;margin:0 auto}
.project-lightbox__controls{display:flex;justify-content:space-between;padding:.85rem 1rem;border-top:1px solid #494844}
@media (max-width:850px){.portfolio-shell{grid-template-columns:1fr}.portfolio-guide{position:static;display:grid;grid-template-columns:1fr auto;column-gap:2rem;align-items:end}.portfolio-guide p{grid-column:1/-1}.portfolio-guide .button{width:auto}.project-details{position:static}.project-gallery{grid-template-columns:1fr}}
@media (max-width:560px){.portfolio-grid{grid-template-columns:1fr}.portfolio-guide{display:block}.portfolio-guide .button{width:100%}.project-card__actions{align-items:flex-start;flex-direction:column;gap:.65rem}.project-card__actions .button{width:100%}.project-lightbox{width:100vw;max-width:none;max-height:100vh;height:100vh}.project-lightbox>img{max-height:calc(100vh - 7rem)}}
