/* Full image at natural aspect ratio. Grid children must be allowed to shrink. */
.s8-pf-body a[hidden]{display:none!important}
.project-detail-modal,.s8-sp-modal,.ailogo-modal,.aiweb-portfolio-detail-modal,.s8-pf-modal{z-index:200000!important}
.project-detail-dialog,.s8-sp-dialog,.ailogo-dialog,.aiweb-portfolio-detail-dialog,.s8-pf-dialog{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;height:min(86vh,900px)!important;max-height:86vh!important;min-height:0!important;overflow:hidden!important}
.project-detail-visual,.s8-sp-visual,.ailogo-dialog-visual,.aiweb-portfolio-detail-visual,.s8-pf-visual{display:block!important;min-width:0!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#8994a4 #111720;touch-action:pan-y;background:#090c11}
.project-detail-visual img,.s8-sp-visual img,.ailogo-dialog-visual img,.aiweb-portfolio-detail-visual img,.s8-pf-visual>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:top!important;filter:none!important;transform:none!important}
.project-detail-visual:after,.aiweb-portfolio-detail-visual:after{display:none!important}.aiweb-detail-label{position:sticky!important;top:0;background:#0c1119;padding:12px!important;left:0!important}
.project-detail-body,.s8-sp-body,.ailogo-dialog-body,.aiweb-portfolio-detail-body,.s8-pf-body{min-width:0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;overflow-wrap:anywhere}
.s8-sp-detail img,.ailogo-content img,.aiweb-detail-content img,.s8-pf-detail img{max-width:100%;height:auto;max-height:none}
.s8-sp-visual:focus-visible,.s8-pf-visual:focus-visible{outline:2px solid #d5b56f;outline-offset:-3px}
.s8-sp-visual::-webkit-scrollbar,.ailogo-dialog-visual::-webkit-scrollbar,.aiweb-portfolio-detail-visual::-webkit-scrollbar,.s8-pf-visual::-webkit-scrollbar{width:10px}
.s8-sp-visual::-webkit-scrollbar-thumb,.ailogo-dialog-visual::-webkit-scrollbar-thumb,.aiweb-portfolio-detail-visual::-webkit-scrollbar-thumb,.s8-pf-visual::-webkit-scrollbar-thumb{background:#8994a4;border:2px solid #111720;border-radius:8px}
.s8-pf-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px}.s8-pf-modal.is-open{display:flex}.s8-pf-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.86);backdrop-filter:blur(14px)}.s8-pf-dialog{position:relative;z-index:1;display:grid;width:min(1180px,96vw);background:#0b1017;border:1px solid #354052;box-shadow:0 30px 100px #000b;color:#eef1f6}.s8-pf-close{position:absolute;right:14px;top:14px;z-index:3;width:42px;height:42px;border-radius:50%;border:1px solid #596779;background:#080c13dd;color:#fff;font-size:24px;cursor:pointer}.s8-pf-body{padding:60px 32px 32px;background:linear-gradient(145deg,#161d28,#090c12);line-height:1.8}.s8-pf-body>small{color:#d5b56f;font-size:11px;letter-spacing:.12em}.s8-pf-body h1,.s8-pf-body h2{font-size:clamp(25px,3vw,42px);line-height:1.2;letter-spacing:-.04em;margin:18px 0}.s8-pf-body p,.s8-pf-detail{color:#b5c0cf;font-size:13px}.s8-pf-body a{color:#e8ce98;display:inline-block;margin:16px 16px 0 0}.s8-pf-hint{position:sticky;top:0;z-index:1;padding:9px 14px;background:#111720ed;color:#b6c2d1;font-size:11px;border-bottom:1px solid #344154}.s8-pf-page{max-width:1280px;padding:80px 24px;margin:auto}.s8-pf-page>nav{margin-bottom:20px;display:flex;gap:20px}.s8-pf-page>nav a{color:#b7c0ce;font-size:13px}.s8-pf-page .s8-pf-dialog{width:100%}.s8-pf-plain{white-space:pre-wrap}.s8-pf-empty{padding:100px 24px;min-height:60vh;color:#fff}
@media(max-width:900px){.project-detail-modal,.s8-sp-modal,.ailogo-modal,.aiweb-portfolio-detail-modal,.s8-pf-modal{padding:10px!important}.project-detail-dialog,.s8-sp-dialog,.ailogo-dialog,.aiweb-portfolio-detail-dialog,.s8-pf-dialog{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1.3fr) minmax(0,1fr)!important;height:90vh!important;max-height:90vh!important;width:min(760px,96vw)!important}.project-detail-body,.s8-sp-body,.ailogo-dialog-body,.aiweb-portfolio-detail-body,.s8-pf-body{padding:24px!important}.s8-pf-page{padding:40px 14px}.s8-pf-page .s8-pf-dialog{width:100%!important}.s8-pf-close{top:10px;right:10px}.s8-pf-body h1,.s8-pf-body h2{font-size:26px}}

.s8-pf-body>small{font-size:13px!important;font-weight:800!important;letter-spacing:1.2px!important;color:#d5b56f!important}
.s8-pf-files{margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12)}.s8-pf-files h3{font-size:14px;margin:0 0 12px}.s8-pf-files a{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;margin:7px 0;border:1px solid rgba(255,255,255,.12);border-radius:8px;color:#dce3e9;text-decoration:none}.s8-pf-files a span{color:#77838f;font-size:10px}
