/* Single-screen gallery, scoped to the dedicated portfolio page. */
html body.portfolio-page{margin:0;min-height:0;display:block!important}
html body.portfolio-page main{width:100%;max-width:none;height:100vh;height:100dvh!important;flex:none!important;min-height:0;margin:0;padding:14px 30px 16px!important;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;box-sizing:border-box}
.portfolio-page .portfolio-shell-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:center;gap:16px;padding-bottom:12px;border-bottom:1px solid #B69A64;background:transparent!important;box-shadow:none!important}
html body.public-redesign.portfolio-page .portfolio-topbar{margin:0!important}
html body.portfolio-page .portfolio-topbar{justify-content:flex-start;min-height:44px;width:auto;gap:0}
html body.portfolio-page .back-link{margin:0;padding:10px 0;min-height:44px;font:14px/1.4 Arial,sans-serif;white-space:nowrap;display:inline-flex;align-items:center;border:0}
html body.portfolio-page .portfolio-header{padding:0!important;min-width:0;background:transparent!important}
html body.portfolio-page .portfolio-header::before,html body.portfolio-page .portfolio-header::after{display:none!important}
html body.portfolio-page .portfolio-header h1{margin:0;font-size:clamp(28px,3vw,46px);line-height:1.12;overflow-wrap:anywhere;letter-spacing:.015em}
.portfolio-page .portfolio-brand{font:11px/1.5 Arial,sans-serif;letter-spacing:.12em;text-align:right;color:#343C32}
html body.portfolio-page #portfolioViewer{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:0 100px}
html body.portfolio-page #portfolioViewer figure{margin:0;height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}
html body.portfolio-page #portfolioViewer :is(img,video){display:block;flex:0 1 auto;min-height:0;width:auto;height:auto;max-width:100%;max-height:calc(100% - 46px);object-fit:contain;border-radius:14px;background:transparent!important;box-shadow:0 5px 10px #343C321f,0 26px 48px -12px #343C3255!important;outline:1px solid #F5F1E7;outline-offset:4px}
html body.portfolio-page #portfolioViewer video{background:#283128!important}
html body.portfolio-page #portfolioViewer figcaption{flex:0 0 auto;max-width:100%;margin:0;font-size:14px;line-height:1.5;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.portfolio-page .gallery-controls{margin:0;gap:20px;min-height:48px;align-items:center}
html body.portfolio-page .gallery-controls button{padding:10px 22px;min-height:44px;font:14px/1.4 Arial,sans-serif}
html body.portfolio-page footer.editorial-footer{display:none!important}
html body.portfolio-page #gallery{min-height:0;padding:24px;margin:0}
html[data-theme=night] body.portfolio-page .portfolio-shell-header{border-color:#343C32}
html[data-theme=night] body.portfolio-page .portfolio-brand{color:#B69A64}
html[data-theme=night] body.portfolio-page #portfolioViewer :is(img,video){outline-color:#343C32;box-shadow:0 5px 10px #1C231C40,0 26px 48px -12px #1C231C90!important}
@media(max-width:700px){html body.portfolio-page main{padding:10px 16px 12px!important;gap:14px}.portfolio-page .portfolio-shell-header{grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;padding-bottom:10px}.portfolio-page .portfolio-brand{display:none}html body.portfolio-page .portfolio-header h1{font-size:clamp(24px,5vw,32px)}html body.portfolio-page .back-link{font-size:12px;white-space:normal}html body.portfolio-page #portfolioViewer{padding:0 5px 125px;gap:10px}html body.portfolio-page #portfolioViewer :is(img,video){max-height:calc(100% - 42px);border-radius:12px}html body.portfolio-page .gallery-controls{gap:12px}html body.portfolio-page .gallery-controls button{font-size:12px;padding:10px 12px}}
@media(max-height:500px){html body.portfolio-page main{padding-top:6px!important;gap:8px}.portfolio-page .portfolio-shell-header{padding-bottom:4px}html body.portfolio-page .portfolio-header h1{font-size:26px}html body.portfolio-page #portfolioViewer{padding-bottom:0;gap:6px}html body.portfolio-page #portfolioViewer figure{gap:6px}html body.portfolio-page .gallery-controls{min-height:44px}}
