/* Portfolio project pages (/portfolio/<slug>/). Rebuilt from the old page-builder template, same sizes and breakpoints. */
.pj{display:flex;flex-direction:column;max-width:600px;margin:0 auto;padding:48px 0 16px;overflow:hidden;color:#fff;font:400 16px/22.4px 'Satoshi',sans-serif}
.pj a{color:#fff;font:400 14.4px/22.4px 'ClashDisplay',sans-serif;text-decoration:none}
.pj img{max-width:100%;height:auto;border:none;border-radius:0}

/* "All projects" */
.pj-back{padding-bottom:24px}
.pj .pj-back a{display:inline-flex;align-items:center;min-height:44px;fill:#fff;font:500 16px/22px 'ClashDisplay',sans-serif;text-align:center;transition:all .3s}
.pj .pj-back a:hover,.pj .pj-back a:focus{color:#61ce70}
.pj-back a:hover svg,.pj-back a:focus svg{fill:#61ce70}
.pj-back-row{display:flex;flex-direction:row;gap:5px;justify-content:center}
.pj-back-text{display:inline-block}
.pj-back-icon{display:flex;align-items:center}
.pj-back-icon svg{width:1em;height:auto}

/* Author on the left, share buttons on the right */
.pj-top{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;align-items:start}
.pj-author{display:flex;align-items:center}
.pj-author-picture{flex-shrink:0;align-self:center;margin-right:10px}
.pj-author-picture img{width:40px;height:40px;border-radius:500px;object-fit:cover}
.pj-author-text{flex-grow:1;font-size:17px}
.pj-author-name{font-size:15px;font-weight:500;line-height:22px}
/* The role wraps on a phone (two lines, three on the narrowest); the old template cut it after one. */
.pj-author-role{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;width:100%;margin-bottom:6px;overflow:hidden;color:#505254;font-size:12px;line-height:16px}
.pj-share{display:inline-block;width:100%;padding-top:6px;font-size:0;text-align:right;text-align-last:right}
.pj-share-item{display:inline-block;min-width:0;word-break:break-word}
.pj-share-item+.pj-share-item{margin-left:3px}
.pj .pj-share-link{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;height:4.5em;overflow:hidden;background-color:#ffffff00;font-size:5px;cursor:pointer;transition-duration:.2s;transition-property:filter,background-color,border-color}
.pj-share-icon{position:relative;display:flex;flex-grow:1;align-items:center;align-self:stretch;justify-content:center;width:4.5em;color:#6e7a84;background-image:linear-gradient(90deg,rgba(0,0,0,.12),transparent);transition-duration:.2s;transition-property:color,background-color}
.pj-share-icon svg{width:16px;height:16px;fill:#6e7a84}

/* Heading, cover picture, gallery */
.pj-body{display:flex;flex-direction:column;gap:8px;padding:8px 0}
.pj-title{margin:8px 0 4px;color:#fff;font:600 100px/120px 'ClashDisplay',sans-serif;letter-spacing:-.04em}
.pj-cover,.pj-gallery{max-width:100%}
.pj-cover{padding:16px 0 24px;text-align:center}
.pj .pj-cover img{display:inline-block;width:100%;height:100%;vertical-align:middle;object-fit:contain;object-position:center center;border:1px solid #242627;border-radius:8px}
.pj-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;min-height:1px}
.pj-gallery-item{position:relative;display:block;overflow:hidden;border:1px solid #242627;border-radius:6px;transition-property:all}
.pj-gallery-item img{display:block;width:100%;height:auto}
.pj-gallery-shade{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:.8s;transition-property:mix-blend-mode,transform,opacity,background-color}
.pj-gallery-item:hover .pj-gallery-shade,.pj-gallery-item:focus .pj-gallery-shade{background-color:rgba(0,0,0,.5)}
.pj-rule{height:1px;margin:0;border:0 none transparent;background-color:#000}

@media(max-width:1024px){.pj .pj-back a{font-size:15px}}
@media(max-width:767px){
	.pj{padding:64px 32px}
	.pj .pj-back a{font-size:14px}
	.pj-body{flex-wrap:wrap}
	.pj-gallery{grid-template-columns:1fr}
}
@media(max-width:575px){.pj{transform:translateX(0) translateY(0)}}
@media(prefers-reduced-motion:reduce){.pj *{transition-delay:0s!important;transition-duration:0s!important}}

/* The block under the project. The old theme's link and line settings reached it; the first three rules keep them. */
.pf-next,.pf-next *{box-sizing:content-box}
.pf-next{line-height:22.4px}
.pf-next a{color:#fff;font:400 14.4px/22.4px 'ClashDisplay',sans-serif}
.pf-next{width:min(600px,calc(100% - 32px));margin:48px auto 72px;display:grid;gap:20px;font-family:'Satoshi',sans-serif}
.pf-next-links{display:grid;grid-template-columns:1fr auto 1fr;gap:10px}
.pf-next-links a{display:flex;flex-direction:column;gap:4px;min-height:44px;padding:14px 16px;border:1px solid #ffffff1f;border-radius:14px;color:#e6ede8;text-decoration:none;font-size:15px}
.pf-next-links a:last-child{text-align:right}
.pf-next-links a span{color:#7f9087;font:10px/1.4 monospace;letter-spacing:.12em;text-transform:uppercase}
.pf-next-links a:hover{border-color:#00c49a66}
.pf-story{justify-self:start;color:#c9d3cc;font-size:14px;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.pf-next-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:20px;border:1px solid #ffffff1f;border-radius:16px;background:#0c100e}
.pf-next-cta p{margin:0;color:#f2f2f2;font-size:17px}
.pf-next-cta a{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border-radius:999px;background:#00c49a;color:#04110c;font-weight:600;text-decoration:none}
.pf-next-cta a:hover{background:#2bdcb2}
.pf-next a:focus-visible{outline:2px solid #00c49a;outline-offset:3px}
@media(max-width:520px){.pf-next-links{grid-template-columns:1fr 1fr}.pf-next-links a:nth-child(2){grid-column:1/-1;order:3;text-align:center}.pf-next-cta a{width:100%;justify-content:center}}
