.tpn-project-photo:hover img{transform:none}
.tpn-portfolio-hero{margin-bottom:0;max-height:none;aspect-ratio:auto}
.tpn-portfolio-hero>a{display:flex;justify-content:center;align-items:center;background:#f0f1ee}
.tpn-portfolio-hero img{display:block;width:auto;max-width:100%;height:auto;max-height:940px;object-fit:contain}
.tpn-portfolio-hero figcaption{width:min(1328px,calc(100% - 112px));margin:16px auto 0;color:var(--tpn-muted);font-size:.8125rem;line-height:1.7}
.tpn-case-intro .tpn-editor-content{width:100%;max-width:none;margin:0;padding:16px 0}
.tpn-case-gallery{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px 32px}
.tpn-gallery-item{margin:0;min-width:0}
.tpn-gallery-item>a{display:flex;align-items:center;justify-content:center;background:#f0f1ee;min-height:200px}
.tpn-gallery-item img{display:block;width:100%;height:auto;object-fit:contain}
.tpn-gallery-item figcaption{margin-top:16px;color:var(--tpn-muted);font-size:.875rem;line-height:1.7}
.tpn-work-back{display:inline-flex;gap:12px;margin-bottom:34px}
.tpn-gallery-navigation{display:flex;align-items:center;justify-content:center;gap:24px;margin:12px 0;flex-wrap:wrap}
.tpn-gallery-navigation button{font:inherit;border:1px solid currentColor;background:transparent;border-radius:0;padding:8px 16px;cursor:pointer}
.tpn-gallery-navigation [role=status]{min-width:4em;text-align:center}
.tpn-gallery-lightbox-caption{margin:16px auto 0;max-width:850px;text-align:center;font-size:.875rem;line-height:1.7}
@media(max-width:700px){.tpn-case-gallery{grid-template-columns:1fr;gap:34px}.tpn-portfolio-hero figcaption{max-width:calc(100% - 40px)}.tpn-gallery-item>a{min-height:0}}
