/* V8 dimensions retained. This document isolates its CSS from the official site. */
html,body.portfolio{background:transparent!important;color:#f9f6ff;color-scheme:normal}body{min-width:0}.gallery{padding-top:32px;padding-bottom:30px}button:disabled{cursor:default}.site-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.verify-label{display:none}.gallery .rail .card-subtitle{color:#c6bcd0}.category{color:#d0c6df}.rail-arrow{touch-action:manipulation}.thumb-link:focus-visible{opacity:1!important}.gallery .rail>article:hover{transform:none}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Continuous Cosmic canvas; no duplicate nebula or opaque section panel. */
html,body.portfolio,body.portfolio>main,.embedded-gallery .gallery{background-color:transparent!important;background-image:none!important}
.embedded-gallery .gallery{padding:18px 45px 16px}
.embedded-gallery .gallery-head{display:block;text-align:center;max-width:780px;margin:0 auto 24px}
.embedded-gallery .gallery-head h2{font-size:clamp(28px,3vw,42px);font-weight:600;line-height:1.2;letter-spacing:-1.3px;margin:0;color:#f9f6ff}
.embedded-gallery .gallery-head h2 em{letter-spacing:-1px}
.embedded-gallery .gallery-head>p{max-width:none;font-size:13px;line-height:1.7;margin:12px auto 0;color:#c9bfd5}
.embedded-gallery .control-row{justify-content:center;margin:0;gap:8px}
.embedded-gallery .pills button{padding:9px 15px;min-height:40px;font-size:11px;background:#251b3545;border-color:#c4acd64d;color:#e4dced}
.embedded-gallery .pills button.active{background:#d7c4ec;color:#271936;border-color:#d7c4ec}
.profession-filters{margin:12px auto 0;max-width:880px;text-align:center;color:#c9bfd5;font-size:11px}
.profession-filters summary{display:inline-flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:8px 12px;border-radius:20px}
.profession-filters summary::-webkit-details-marker{display:none}
.profession-filters summary:focus-visible{outline:2px solid #cba4ed;outline-offset:3px}
.profession-filters[open] summary span{transform:rotate(45deg)}
.profession-panel{padding:14px 4px 0}.profession-panel .search-label{margin:0 auto;max-width:310px;background:#21172c70}
.profession-panel .category-row{flex-wrap:wrap;justify-content:center;padding:14px 0 0;overflow:visible;gap:7px}
.embedded-gallery .rail-heading{margin:28px 0 16px}.embedded-gallery .rail-heading .grid-title{font-weight:600;font-size:20px;margin:0;letter-spacing:-.4px}
.embedded-gallery .eyebrow-row{display:none}.embedded-gallery .rail-stage{margin-bottom:30px}
.embedded-gallery .rail-progress{font-size:10px;color:#c9bfd5}.embedded-gallery .gallery .rail>article{box-shadow:0 5px 18px #0002}
/* The host can be light, but the shared Cosmic canvas remains dark. */
html[data-host-theme="light"] .embedded-gallery,html[data-host-theme="dark"] .embedded-gallery{color:#ffffff}
@media(max-width:730px){.embedded-gallery .gallery{padding:16px 20px}.embedded-gallery .gallery-head h2{font-size:29px}.embedded-gallery .gallery-head>p{max-width:300px;font-size:12px}.embedded-gallery .control-row{display:flex}.embedded-gallery .pills{justify-content:center;gap:5px}.embedded-gallery .pills button{padding:8px 10px;font-size:10px}.embedded-gallery .rail-heading .grid-title{font-size:18px}}

/* Readable gallery labels, independent of the host's light/dark controls. */
.embedded-gallery{--sg-readable-text:#ffffff;--sg-readable-muted:#f2eafa;--sg-readable-accent:#e5c8ff;--sg-readable-surface:rgba(17,11,31,.88);color:var(--sg-readable-text)}
.embedded-gallery .gallery-head{padding:12px 16px;border-radius:14px;background:linear-gradient(90deg,transparent,rgba(17,11,31,.74) 10%,rgba(17,11,31,.74) 90%,transparent)}
.embedded-gallery .gallery-head h2{color:var(--sg-readable-text);text-shadow:0 1px 3px #080510,0 2px 10px #080510}
.embedded-gallery .gallery-head h2 em{color:var(--sg-readable-accent)}
.embedded-gallery .gallery-head>p{color:var(--sg-readable-muted);font-size:14px;line-height:1.8;text-shadow:0 1px 3px #080510}
.embedded-gallery .pills button,.embedded-gallery .category{color:var(--sg-readable-text);background:var(--sg-readable-surface);border-color:#d5b8ef80;font-size:12px;min-height:40px}
.embedded-gallery .pills button.active,.embedded-gallery .category.active{color:#160e23;background:#d9b5f7;border-color:#eddaff}
.embedded-gallery .profession-filters{color:var(--sg-readable-text);font-size:12px}
.embedded-gallery .profession-filters summary{background:var(--sg-readable-surface);border:1px solid #d5b8ef50}
.embedded-gallery .profession-panel .search-label{background:#110b1f;color:var(--sg-readable-text)}
.embedded-gallery .search-label input{color:var(--sg-readable-text);font-size:14px}.embedded-gallery .search-label input::placeholder{color:#ded2ec;opacity:1}
.embedded-gallery .rail-heading .grid-title{color:var(--sg-readable-text);background:var(--sg-readable-surface);padding:7px 10px;border-radius:9px;text-shadow:0 1px 3px #080510}
.embedded-gallery .grid-title span{color:var(--sg-readable-accent)}
.embedded-gallery .rail-progress{color:var(--sg-readable-muted);background:var(--sg-readable-surface);padding:7px 9px;border-radius:9px;font-size:12px}
.embedded-gallery .rail-arrow{color:var(--sg-readable-text);background:#251836;border-color:#dcc0f19c}
.embedded-gallery .gallery .rail .card-subtitle{color:var(--sg-readable-muted);font-size:12px;line-height:1.5;letter-spacing:0}
.embedded-gallery .gallery .rail .card-info h4,.embedded-gallery .gallery .rail .client-info h4{color:var(--sg-readable-text);font-size:18px;line-height:1.35}
@media(max-width:730px){.embedded-gallery .gallery-head>p{font-size:14px}.embedded-gallery .pills button{font-size:12px}.embedded-gallery .gallery-head{padding:10px 8px}}
