.portfolio-head{padding-top:35px;padding-bottom:25px}.portfolio-head p{max-width:690px;color:#685e56}.upload-panel{border:1px solid #dacec2;background:white;border-radius:12px;padding:28px;margin:15px 0 30px}.upload-panel h2{font-size:28px;margin:0 0 20px}.upload-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.upload-fields .full{grid-column:1/-1}.upload-fields input[type=file]{background:#f5eee7;border:1px dashed #b99a86;padding:20px}.upload-panel small{font-size:12px;color:#80736b}.upload-actions{display:flex;gap:15px;align-items:center;margin-top:18px}.upload-status{font-size:13px}.upload-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.upload-preview img{width:90px;height:90px;object-fit:cover;border-radius:6px}.portfolio-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:25px 0}.portfolio-bar label{max-width:280px;width:100%}.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-bottom:60px}.work-card{background:white;border:1px solid #e2d6cc;border-radius:12px;overflow:hidden}.work-open{width:100%;border:0;padding:0;background:#ece5dc;cursor:pointer;display:block;overflow:hidden}.work-open img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .4s}.work-open:hover img{transform:scale(1.04)}.work-body{padding:20px}.work-category{font-size:11px;color:#8e0b18}.work-body h2{font-size:22px;font-weight:600;line-height:1.2;margin:10px 0;letter-spacing:-.5px;overflow-wrap:anywhere}.work-body p{font-size:14px;color:#6d625b;white-space:pre-wrap;overflow-wrap:anywhere}.hide-work{background:transparent;border:0;color:#8e0b18;padding:10px 0;font-size:12px;cursor:pointer}.portfolio-empty{padding:50px 25px;text-align:center;border:1px dashed #d2bcae;border-radius:12px;color:#76685d;margin-bottom:55px}.work-dialog{max-width:960px;width:90vw;max-height:92vh;border:0;border-radius:12px;padding:25px;background:#faf7f2}.work-dialog::backdrop{background:#211c1bd9}.work-dialog img{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}.work-dialog h2{font-size:26px;letter-spacing:-.5px}.work-dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.close-work{float:right;margin-bottom:15px;background:#8e0b18;color:white;border:0;border-radius:30px;padding:8px 16px;cursor:pointer}.signin-note{background:#eee4d9;padding:18px;border-radius:8px;font-size:14px}@media(max-width:900px){.portfolio-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.portfolio-grid,.upload-fields{grid-template-columns:1fr}.upload-panel{padding:20px}.upload-fields .full{grid-column:auto}.upload-actions,.portfolio-bar{flex-direction:column;align-items:stretch}.work-dialog{padding:17px}.portfolio-head .page-title{font-size:36px}}
.work-open{position:relative}.work-open img{height:auto;aspect-ratio:1;object-fit:contain}.work-count{position:absolute;right:12px;bottom:12px;border-radius:30px;background:#fffaf5f2;color:#8e0b18;padding:8px 13px;font-size:13px;font-weight:700;box-shadow:0 2px 10px #0001}.work-samples{display:flex;gap:7px;margin:14px 0}.work-sample{width:56px;height:56px;padding:0;border:1px solid #e2d6cc;border-radius:7px;overflow:hidden;background:#f5eee7;cursor:pointer}.work-sample img{width:100%;height:100%;object-fit:contain;display:block}.work-gallery-link{border:0;background:none;color:#8e0b18;font-weight:700;padding:10px 0;cursor:pointer;text-align:left}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0}.gallery-arrow{border:1px solid #d7c8bc;border-radius:25px;background:#fff;color:#8e0b18;min-height:42px;padding:9px 16px;cursor:pointer}.gallery-arrow:disabled{opacity:.35;cursor:default}.gallery-counter{font-size:14px;color:#66594f;white-space:nowrap}.gallery-thumbs{display:flex;gap:9px;overflow-x:auto;padding:5px 1px 12px}.gallery-thumb{flex:0 0 66px;height:66px;padding:2px;border:2px solid transparent;background:#eee7de;border-radius:8px;cursor:pointer}.gallery-thumb[aria-pressed=true]{border-color:#8e0b18}.gallery-thumb img{width:100%;height:100%;object-fit:contain}.gallery-photo-title{font-weight:700;color:#66594f}.work-dialog #dialog-image{width:100%;height:52vh;object-fit:contain}.work-dialog[open]{display:flex;flex-direction:column}.work-dialog .close-work{align-self:flex-end;float:none}.work-dialog .gallery-controls[hidden],.work-dialog .gallery-thumbs[hidden],.work-dialog .hide-work[hidden]{display:none}.work-gallery-link:focus-visible,.work-sample:focus-visible,.gallery-thumb:focus-visible,.gallery-arrow:focus-visible{outline:3px solid #8e0b18;outline-offset:3px}@media(max-width:600px){.gallery-arrow{font-size:12px;padding:8px 10px}.work-dialog #dialog-image{height:43vh}.gallery-thumb{flex-basis:54px;height:54px}.work-body{padding:17px}}
.work-dialog{overflow-y:auto}.work-dialog>*{flex-shrink:0}.work-dialog .close-work{position:sticky;top:0;z-index:2}.work-dialog #dialog-image{height:42vh}.gallery-thumbs{min-height:84px}.gallery-thumb{min-height:66px}.gallery-thumb img{max-height:none;margin:0}.gallery-controls{min-height:44px}@media(max-width:600px){.work-dialog #dialog-image{height:35vh}.gallery-thumbs{min-height:72px}.gallery-thumb{min-height:54px}}

/* Enlarged portfolio viewer: keep complete image and original proportions. */
.work-dialog{box-sizing:border-box;width:96vw;max-width:1440px;max-height:98dvh;padding:10px 14px;border-radius:12px;gap:0}
.work-dialog .close-work{position:sticky;top:0;margin:0 0 6px;padding:6px 14px;min-height:34px}
.work-dialog #dialog-image{width:100%;height:calc(98dvh - 220px);min-height:260px;max-height:78dvh;object-fit:contain;margin:0 auto}
.work-dialog .gallery-controls{margin:6px 0;min-height:36px}
.work-dialog .gallery-arrow{min-height:36px;padding:6px 14px}
.work-dialog .gallery-thumbs{min-height:52px;padding:2px 0 4px;gap:7px}
.work-dialog .gallery-thumb{flex-basis:44px;height:44px;min-height:44px}
.work-dialog #dialog-title{font-size:20px;line-height:1.15;margin:6px 0}
.work-dialog .hide-work{padding:4px 0;margin:0}
@media(max-width:600px){.work-dialog{width:calc(100vw - 8px);max-width:none;padding:6px;max-height:99dvh;border-radius:8px}.work-dialog #dialog-image{height:calc(99dvh - 200px);min-height:240px;max-height:80dvh}.work-dialog .gallery-arrow{font-size:12px;padding:6px 9px}.work-dialog #dialog-title{font-size:18px;margin:4px 0}.work-dialog .gallery-thumbs{min-height:44px}.work-dialog .gallery-thumb{flex-basis:38px;height:38px;min-height:38px}}

.work-dialog #dialog-image{width:auto;height:auto;min-height:0;max-width:100%;max-height:calc(98dvh - 210px)}
@media(max-width:600px){.work-dialog #dialog-image{width:auto;height:auto;min-height:0;max-height:calc(99dvh - 190px)}}

.work-body h2 a{color:inherit;text-decoration:none}.work-body h2 a:hover{color:#8e0b18}.work-gallery-link{display:inline-block}.group-share{display:flex;flex-direction:column;gap:7px}.group-share [role=status]{font-size:13px;overflow-wrap:anywhere}.group-actions{flex-wrap:wrap}.group-service{margin-bottom:24px}.group-photo-grid .work-open img{aspect-ratio:1;object-fit:contain}.portfolio-head{scroll-margin-top:150px}@media(max-width:600px){.group-actions{align-items:stretch}.group-share .pill{text-align:center}.portfolio-head{scroll-margin-top:220px}}
