.portfolio-dialog{width:min(94vw,1400px);max-width:none;height:94svh;max-height:94svh;padding:24px;border:1px solid #bdbbb7;background:var(--paper);color:var(--ink);overflow:hidden}
.portfolio-dialog:not([open]){display:none}.portfolio-dialog[open]{display:flex;flex-direction:column;gap:16px}.portfolio-dialog::backdrop{background:#17131be6}
.portfolio-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0}.portfolio-dialog-header h2{font:600 clamp(20px,2vw,28px)/1.2 Roboto,Arial,sans-serif;margin:0}.portfolio-dialog-header .button{flex-shrink:0;min-height:46px}
.portfolio-dialog-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;background:#fff;overscroll-behavior:contain}
.portfolio-dialog-stage>img,.portfolio-dialog-stage>video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.portfolio-dialog-stage>video{width:100%;height:100%;background:#17131b}
.portfolio-dialog-stage.is-zoomed{display:block}.portfolio-dialog-stage.is-zoomed>img{max-width:none;max-height:none;width:auto;height:auto;margin:auto}
.portfolio-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;flex-shrink:0}.portfolio-dialog-footer .button{min-height:46px}.portfolio-dialog-footer button:disabled{opacity:.35;cursor:default}
.portfolio-dialog [data-portfolio-status]:empty{display:none}.portfolio-dialog [data-portfolio-status]{font-size:16px}.has-portfolio-dialog{overflow:hidden}
@media(max-width:600px){.portfolio-dialog{width:100vw;max-width:100vw;height:100svh;max-height:100svh;padding:14px;gap:12px}.portfolio-dialog-header{gap:12px}.portfolio-dialog-header h2{font-size:20px}.portfolio-dialog .button{font-size:16px;padding:10px 14px}.portfolio-dialog-footer{display:grid;grid-template-columns:1fr auto 1fr;gap:10px}.portfolio-dialog-footer [data-portfolio-next]{grid-column:3;grid-row:1}.portfolio-dialog-footer [data-portfolio-zoom]{grid-column:1/-1;grid-row:2;justify-self:center}}
