/* Shared gallery visual language for static and community pages. */
.gallery-ui {
  --home-primary:#E2EDFD;
  --home-primary-hover:#D2E3FA;
  --home-primary-ink:#345C92;
  font-size:15px;
}
:root[data-theme="dark"] .gallery-ui{--home-primary:#263F60;--home-primary-hover:#304F76;--home-primary-ink:#D2E5FF}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .gallery-ui{--home-primary:#263F60;--home-primary-hover:#304F76;--home-primary-ink:#D2E5FF}}
.gallery-ui .site-header{background:var(--bg);backdrop-filter:none;border-bottom-color:transparent}
.gallery-ui .site-header .header-inner{max-width:1280px;min-height:72px;padding:10px clamp(20px,4vw,56px);gap:24px;flex-wrap:nowrap}
.gallery-ui .brand{font-size:21px;letter-spacing:-.035em;gap:8px}
.gallery-ui .brand img{width:34px;height:34px}
.gallery-ui .site-header nav{order:initial;width:auto;padding:0;gap:22px;overflow:visible}
.gallery-ui .site-header nav a{font-weight:400;padding-block:12px}
.gallery-ui .header-search{order:initial;flex-basis:auto;max-width:230px;min-width:120px;margin-left:auto;border:1px solid transparent;border-radius:8px;background:var(--surface);height:40px}
.gallery-ui .header-search:focus-within{border-color:var(--accent)}
.gallery-ui .header-actions{margin-left:0;gap:3px}
.gallery-ui .header-actions select{width:105px;height:44px;padding-left:8px;padding-right:25px;background-color:transparent;border-color:transparent;font-size:13px;background-position:calc(100% - 15px) calc(50% - 2px),calc(100% - 9px) calc(50% - 2px)}
.gallery-ui .header-actions .icon-button{width:44px;height:44px;border-color:transparent;background:transparent}
.gallery-ui .header-account:not(.is-authenticated){min-width:44px;height:44px;padding:0 8px;background:transparent;border-color:transparent;color:var(--muted);font-weight:400}
.gallery-ui .header-account:not(.is-authenticated):hover{background:var(--surface);color:var(--accent)}
.gallery-ui .home-search-link{display:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--muted)}
.gallery-ui .hero{border:0;overflow:visible}
.gallery-ui .hero-inner{min-height:0;padding-top:72px;padding-bottom:64px;grid-template-columns:1.1fr 1fr;gap:80px}
.gallery-ui .eyebrow{text-transform:none;letter-spacing:.025em;font-size:13px;font-weight:400;margin:0 0 22px}
.gallery-ui .hero h1{font-size:clamp(36px,4vw,48px);font-weight:500;line-height:1.4;letter-spacing:0;max-width:12.5em;text-wrap:balance}
.gallery-ui .hero p.lead{max-width:32em;font-size:16px;line-height:1.85;margin:22px 0 28px}
.gallery-ui .actions{align-items:center;gap:26px}
.gallery-ui .hero-browse-button{min-height:44px;padding:11px 20px;border:0;border-radius:9px;background:var(--home-primary);color:var(--home-primary-ink);font-size:14px;font-weight:500}
.gallery-ui .hero-browse-button:hover{background:var(--home-primary-hover)}
.gallery-ui .home-text-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:400;line-height:1.5}
.gallery-ui .home-text-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:5px}
.gallery-ui .hero-visual{display:block;min-height:0;margin:0;perspective:none}
.gallery-ui .home-featured-card{display:block;border-radius:14px;overflow:hidden}
.gallery-ui .home-featured-card img{display:block;width:100%;height:auto;aspect-ratio:1536/969;object-fit:contain}
.gallery-ui .hero-visual figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:14px;color:var(--muted);font-size:12px;font-weight:400}
.gallery-ui .section{padding-top:44px;padding-bottom:36px}
.gallery-ui .section-heading{align-items:center;margin-bottom:26px;gap:20px}
.gallery-ui .section-heading h2{font-size:25px;font-weight:500;line-height:1.4;letter-spacing:0}
.gallery-ui .card-grid,.gallery-ui .community-home .community-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 28px}
.gallery-ui .card-tile{transform-style:preserve-3d;transition:transform .22s ease-out}
@media(hover:hover){.gallery-ui .card-tile:hover{transition-duration:.1s}}
@media(prefers-reduced-motion:reduce){.gallery-ui .card-tile{transform:none!important;transition:none}}
.gallery-ui .card-tile-art,.gallery-ui .card-art,.gallery-ui .community-card img{border-radius:12px;box-shadow:none}
.gallery-ui .card-meta{gap:12px;padding:14px 0 0}
.gallery-ui .card-meta h3,.gallery-ui .community-card h3{font-size:15px;font-weight:500;line-height:1.55}
.gallery-ui .card-meta p{font-size:12px;margin-top:4px;line-height:1.6}
.gallery-ui .card-download,.gallery-ui .community-home .community-download{min-height:44px;transform:none;padding:0 2px;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:13px;font-weight:400}
.gallery-ui .card-download:hover,.gallery-ui .community-home .community-download:hover{background:transparent;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.gallery-ui .official-card-stats{padding:0;gap:14px;font-size:12px}
.gallery-ui .official-card-stats button{min-height:36px}
.gallery-ui .community-home:has([data-community-slot]>p){display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:36px;padding-bottom:36px}
.gallery-ui .community-home:has([data-community-slot]>p) .section-heading{display:contents}
.gallery-ui .community-home:has([data-community-slot]>p) [data-community-slot]{display:none}
.gallery-ui .story{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:56px 0 32px;grid-template-columns:1fr 260px;gap:80px}
.gallery-ui .story h2{font-size:28px;font-weight:500;line-height:1.5;letter-spacing:0;margin-bottom:14px}
.gallery-ui .story p:not(.eyebrow){font-size:15px;line-height:1.8;margin:0 0 16px}
.gallery-ui .story .eyebrow{margin-bottom:14px}
.gallery-ui .story img{width:240px;height:auto;max-height:none;object-fit:contain}
.gallery-ui .site-footer{background:var(--bg);border-color:var(--line);margin-top:36px}
.gallery-ui .site-footer .footer-inner{padding-top:40px;padding-bottom:40px}
.gallery-ui .footer-links a{font-weight:400;font-size:13px}
.gallery-ui .footer-column h2{font-weight:500;font-size:13px}
.gallery-ui #official,.gallery-ui #community{scroll-margin-top:90px}
@media(max-width:1050px){
 .gallery-ui .header-search{display:none}
 .gallery-ui .home-search-link{display:inline-flex;margin-left:auto}
 .gallery-ui .hero-inner{gap:40px}
}
@media(max-width:760px){
 .gallery-ui .site-header .header-inner{flex-wrap:wrap;gap:0 8px;padding-top:6px;padding-bottom:4px}
 .gallery-ui .header-actions{margin-left:auto}
 .gallery-ui .site-header nav{order:3;flex:1 0 calc(100% - 52px);width:auto;gap:24px;overflow-x:auto}
 .gallery-ui .home-search-link{order:4;margin-left:0}
 .gallery-ui .hero-inner{grid-template-columns:1fr;gap:34px;padding-top:40px;padding-bottom:24px}
 .gallery-ui .hero h1{font-size:32px;line-height:1.45;max-width:18em}
 .gallery-ui .hero p.lead{font-size:15px;margin:18px 0 22px}
 .gallery-ui .eyebrow{font-size:12px;margin-bottom:16px}
 .gallery-ui .hero-visual{max-width:460px;width:100%;justify-self:center}
 .gallery-ui .card-grid,.gallery-ui .community-home .community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}
 .gallery-ui .card-meta{flex-wrap:wrap;gap:0}
 .gallery-ui .card-tile-title{flex-basis:100%}
 .gallery-ui .section-heading h2{font-size:23px}
 .gallery-ui .section{padding-top:36px;padding-bottom:24px}
 .gallery-ui .story{grid-template-columns:1fr 180px;gap:30px;padding-top:36px}
 .gallery-ui .story h2{font-size:24px}
 .gallery-ui .story img{width:180px}
}
@media(max-width:480px){
 .gallery-ui .brand{font-size:18px;gap:5px}
 .gallery-ui .brand img{width:30px;height:30px}
 .gallery-ui .header-actions select{width:94px;padding-left:4px;font-size:12px}
 .gallery-ui .header-actions{gap:0}
 .gallery-ui .header-actions .icon-button{width:40px}
 .gallery-ui .site-header .header-inner{padding-inline:20px}
 .gallery-ui .hero h1{font-size:30px}
 .gallery-ui .hero-visual figcaption{font-size:11px}
 .gallery-ui .card-grid,.gallery-ui .community-home .community-grid{grid-template-columns:1fr;gap:28px}
 .gallery-ui .card-meta{flex-wrap:nowrap;gap:12px}
 .gallery-ui .card-tile-title{flex-basis:auto}
 .gallery-ui .section-heading{gap:12px;margin-bottom:20px}
 .gallery-ui .section-heading .home-text-link{font-size:12px}
 .gallery-ui .story{grid-template-columns:1fr;gap:28px}
 .gallery-ui .story img{width:160px;margin:0}
 .gallery-ui .community-home:has([data-community-slot]>p){gap:12px}
 .gallery-ui .community-home:has([data-community-slot]>p) .home-text-link{font-size:12px}
}

/* Common tokens, type and controls across both rendering paths. */
.gallery-ui{
 --bg:#FCFDFF;--surface:#F3F7FD;--panel:#F3F7FD;--ink:#29364A;--text:#29364A;--muted:#66758A;--line:#E5EBF4;--accent:#426EA8;--accent-soft:#EDF4FE;--accent-border:#DCE8F8;
 --sky:var(--surface);--accent-hover:var(--home-primary-hover);--accent-fill:var(--home-primary);--accent-fill-hover:var(--home-primary-hover);--accent-ink:var(--home-primary-ink);--on-accent:var(--home-primary-ink);
 color:var(--ink);background:var(--bg);font-family:"Avenir Next","PingFang SC","Hiragino Sans","Noto Sans CJK SC",system-ui,sans-serif;font-weight:400;line-height:1.7;
}
:root[data-theme="dark"] .gallery-ui{--bg:#111821;--surface:#192332;--panel:#192332;--ink:#E7EEF9;--text:#E7EEF9;--muted:#A7B6CD;--line:#2B3A50;--accent:#9BBFF1;--accent-soft:#1D304A;--accent-border:#314D70}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .gallery-ui{--bg:#111821;--surface:#192332;--panel:#192332;--ink:#E7EEF9;--text:#E7EEF9;--muted:#A7B6CD;--line:#2B3A50;--accent:#9BBFF1;--accent-soft:#1D304A;--accent-border:#314D70}}
.gallery-ui :is(h1,h2,h3,h4){font-weight:500;letter-spacing:0;line-height:1.45}
.gallery-ui :is(.brand,.footer-brand){font-weight:700}
.gallery-ui :is(.button,.community-primary,.community-search button,.account-publish,.auth-submit,.upload-choose){border-radius:9px;font-weight:500;font-size:14px;min-height:44px;background:var(--home-primary);border-color:transparent;color:var(--home-primary-ink);box-shadow:none}
.gallery-ui :is(.button,.community-primary,.community-search button,.account-publish,.auth-submit,.upload-choose):hover{background:var(--home-primary-hover);border-color:transparent;filter:none}
.gallery-ui :is(.button.ghost,.community-download,.auth-secondary){background:transparent;color:var(--accent);border-color:var(--line);border-radius:9px;font-weight:400}
.gallery-ui :is(.button.ghost,.community-download,.auth-secondary):hover{background:var(--accent-soft);border-color:var(--accent-border)}
.gallery-ui :is(.page-header,.community-section){background:transparent;border:0}
.gallery-ui .page-header-inner{padding-top:48px;padding-bottom:32px}
.gallery-ui :is(.page-header h1,.search-page .section-heading h1,.community-intro h1,.upload-page-intro h1,.account-heading h1,.community-work-panel h1){font-size:clamp(30px,3.3vw,40px);font-weight:500;line-height:1.4;letter-spacing:0}
.gallery-ui :is(.page-header p,.community-intro>p:not(.eyebrow),.upload-page-intro>p:last-child){font-size:16px;line-height:1.8}
.gallery-ui :is(.detail-info,.community-panel,.community-work-panel,.contact-panel){background:transparent;border:0;border-radius:0;box-shadow:none}
.gallery-ui .detail-info{padding:0 0 0 12px}
.gallery-ui .detail-layout{gap:48px}
.gallery-ui .detail-preview{box-shadow:none;border-radius:14px}
.gallery-ui :is(.detail-info h2,.versions h2,.prose h2,.info-card h2,.faq-card h2){font-weight:500;letter-spacing:0}
.gallery-ui .detail-info h2,.gallery-ui .versions h2{font-size:24px}
.gallery-ui .detail-share-button{background:transparent;border:0;min-height:44px;font-weight:400}
.gallery-ui .detail-engagement :is(button,span){padding:6px 0;min-height:40px;background:transparent;border:0;font-weight:400}
.gallery-ui .detail-engagement{gap:24px}
.gallery-ui .version{border-radius:0;border:0;padding:0;background:transparent}
.gallery-ui .catalog-controls{padding:0 0 24px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.gallery-ui :is(.search,.unified-search-form input,.filter-row select,.filter-row button,.community-search input,.community-search button){border-radius:9px;font-size:14px}
.gallery-ui .filter-row select{background-color:var(--surface);border-color:transparent}
.gallery-ui .home-catalog-filters{margin-top:0;margin-bottom:28px}
.gallery-ui .category-links a{font-weight:400;background:transparent;border:0;padding:7px 12px}
.gallery-ui .prose{font-size:16px;line-height:1.85}
.gallery-ui :is(.info-card,.faq-card,.guide-step-grid li){background:transparent;border:0;border-radius:0;padding:24px 0;min-height:0}
.gallery-ui .info-grid{gap:36px}
.gallery-ui .info-card-icon{width:36px;height:36px;border-radius:9px;background:transparent}
.gallery-ui :is(.info-card-number,.info-card a,.download-platform-file,.download-guide-note>a,.faq-number){font-weight:500}
.gallery-ui .faq-card{border-bottom:1px solid var(--line)}
.gallery-ui :is(.guide-details,.guide-detail-icon){background:transparent}
.gallery-ui :is(.guide-jump a,.guide-callout,.guide-requirement,.guide-troubleshoot,.note){border-radius:10px;border-width:1px;font-size:14px}
.gallery-ui .community-intro{padding:48px 0 30px}
.gallery-ui .community-grid{gap:36px 28px}
.gallery-ui .community-card h3{font-size:15px;font-weight:500;line-height:1.55}
.gallery-ui .community-tabs a{background:transparent;border-color:transparent;border-radius:8px;font-size:14px;font-weight:400}
.gallery-ui .community-tabs a[aria-current=page]{background:var(--accent-soft);color:var(--accent)}
.gallery-ui .community-art-stage{padding:0;background:transparent;border:0;border-radius:0}
.gallery-ui .community-detail-art{border-radius:14px;box-shadow:none}
.gallery-ui .community-detail-art .community-full-image{border-radius:14px}
.gallery-ui .community-work-panel{padding:0 0 0 16px;min-height:0}
.gallery-ui .community-detail{gap:40px;align-items:start}
.gallery-ui .community-work-kicker{font-weight:400;text-transform:none;letter-spacing:.02em}
.gallery-ui .community-work-kicker::before{display:none}
.gallery-ui .community-work-actions :is(.community-primary,button){border-radius:9px;font-weight:500}
.gallery-ui .auth-box h1{font-size:32px;font-weight:500;line-height:1.4;letter-spacing:0}
.gallery-ui .auth-tabs{border:0;border-radius:9px;background:var(--surface);padding:3px}
.gallery-ui .auth-tabs button{border:0;border-radius:7px;font-weight:400}
.gallery-ui .auth-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}
.gallery-ui :is(.auth-social,.auth-secondary,.auth-field input,.upload-fields input,.upload-fields textarea){border-radius:9px}
.gallery-ui :is(.auth-field label,.upload-fields>label:not(.community-check),.upload-empty strong){font-weight:500}
.gallery-ui .auth-side{border:0;background:var(--surface)}
.gallery-ui .auth-card{box-shadow:0 15px 25px -20px #0006;animation:none}
.gallery-ui .auth-side-copy strong{font-weight:500;font-size:24px;letter-spacing:0}
.gallery-ui :is(.upload-art-panel,.upload-details-panel){padding:0;background:transparent;border:0;border-radius:0}
.gallery-ui .upload-layout{gap:40px}
.gallery-ui .upload-dropzone{border-width:1px;border-radius:12px;background:var(--surface)}
.gallery-ui :is(.upload-step,.upload-image-icon){border:0;border-radius:9px;font-weight:500}
.gallery-ui :is(.account-summary,.account-id-block,.account-publish-gate,.account-empty){background:var(--surface);border:0;border-radius:10px;box-shadow:none}
.gallery-ui .account-tabs a{font-weight:400}
.gallery-ui .account-work-list strong{font-weight:500}
.gallery-ui.community-ui>main:not(.auth-main){max-width:1280px;padding-inline:clamp(20px,4vw,56px)}
/* Restore the approved hero motion while retaining the airy composition. */
.gallery-ui .hero-visual{display:flex;align-items:center;justify-content:center;min-height:0;perspective:1000px}
.gallery-ui .hero-tilt{width:100%;aspect-ratio:1536/969}
.gallery-ui .hero-face{border-radius:14px;box-shadow:0 14px 28px -24px #0005}
.gallery-ui .hero-glare{border-radius:14px}
@media(max-width:800px){
 .gallery-ui .community-detail{grid-template-columns:1fr}
 .gallery-ui .community-work-panel{padding:8px 0 0}
 .gallery-ui .detail-info{padding:0}
}
@media(max-width:520px){
 .gallery-ui :is(.page-header h1,.search-page .section-heading h1,.community-intro h1,.upload-page-intro h1,.account-heading h1,.community-work-panel h1){font-size:30px}
 .gallery-ui .page-header-inner{padding-top:32px;padding-bottom:24px}
 .gallery-ui .detail-layout{gap:28px}
 .gallery-ui .community-intro{padding-top:32px}
 .gallery-ui .auth-left{padding-inline:20px}
}
.gallery-ui .community-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery-ui .community-work-card h3{font-weight:500;font-size:15px;line-height:1.55}
.gallery-ui .community-work-card .community-download{background:transparent;border:0;padding:0 2px;font-size:13px;color:var(--muted)}
@media(max-width:760px){.gallery-ui .community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.gallery-ui .community-grid{grid-template-columns:1fr}}

.gallery-ui .button.ghost{padding-inline:6px;border-color:transparent;background:transparent;color:var(--muted)}
.gallery-ui .button.ghost:hover{border-color:transparent;background:transparent;color:var(--accent);text-decoration:underline;text-underline-offset:4px}

/* One quiet focus treatment for selects, fields and keyboard navigation. */
.gallery-ui{--focus-ring:color-mix(in srgb,var(--accent) 75%,var(--bg))}
.gallery-ui :focus-visible{outline:1.5px solid var(--focus-ring);outline-offset:3px}
.gallery-ui :is(input,textarea,select):focus{border-color:transparent;outline:1px solid var(--focus-ring);outline-offset:0;box-shadow:none}
.gallery-ui .header-actions select{border-radius:9px}
.gallery-ui .header-search:focus-within{border-color:transparent;outline:1px solid var(--focus-ring);outline-offset:0}
.gallery-ui .header-search input:focus{outline:0;box-shadow:none}
.gallery-ui .upload-dropzone:focus-visible{outline:1.5px solid var(--focus-ring);outline-offset:3px}
@media(forced-colors:active){.gallery-ui :focus-visible,.gallery-ui :is(input,textarea,select):focus,.gallery-ui .header-search:focus-within{outline-color:Highlight}}

/* Only JS-managed lazy images fade; the hero keeps its own crossfade. */
.gallery-ui img.image-reveal-pending{opacity:0}
.gallery-ui img.image-reveal-ready{opacity:1;transition:opacity .42s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){.gallery-ui img.image-reveal-pending,.gallery-ui img.image-reveal-ready{opacity:1;transition:none}}

/* Keep metadata and engagement on one quiet row below the title. */
.gallery-ui .card-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
.gallery-ui :is(.official-card-copy,.community-work-card .community-work-copy){display:contents}
.gallery-ui .card-meta .card-tile-title{grid-column:1;grid-row:1}
.gallery-ui .card-meta .card-download{grid-column:2;grid-row:1;min-height:24px}
.gallery-ui .card-meta :is(.card-subtitle,.community-work-subtitle){grid-column:1/-1;display:flex;align-items:center;gap:8px;overflow:visible;white-space:nowrap;margin:0;min-height:28px}
.gallery-ui :is(.card-facts,.community-work-subtitle>a){min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.gallery-ui .official-card-stats{display:inline-flex;flex:none;gap:8px;font-size:inherit}
.gallery-ui .community-work-subtitle .community-stat{margin-left:0;flex:none;gap:4px}
.gallery-ui :is(.official-like,.community-like){display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:28px;min-width:32px;padding:3px 4px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;cursor:pointer;transition:color .18s,background .18s}
.gallery-ui .official-card-stats button{min-height:28px;padding:3px 4px}
.gallery-ui :is(.official-like,.community-like):hover{background:var(--accent-soft);color:var(--accent)}
.gallery-ui :is(.official-like,.community-like)[aria-pressed=true]{color:var(--accent)}
.gallery-ui :is(.official-like,.community-like,[data-like])[aria-pressed=true] svg{fill:currentColor}
.gallery-ui :is(.official-like,.community-like):disabled{opacity:.5;cursor:wait}
.gallery-ui .section-browse{display:flex;justify-content:center;margin-top:32px}
.gallery-ui .section-browse a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:8px 22px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:14px;text-decoration:none;transition:background .18s,color .18s}
.gallery-ui .section-browse a:hover{background:var(--surface);color:var(--accent)}
#card-like-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100% - 40px);padding:12px 20px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font-size:14px;box-shadow:0 8px 24px #0001}

.gallery-ui .community-invite{font-size:14px;line-height:1.7;margin:8px 0 0;color:var(--muted)}
.gallery-ui .community-publish{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;padding:10px 18px;text-decoration:none}
@media(max-width:520px){.gallery-ui .community-home .section-heading{align-items:flex-start;flex-wrap:wrap}.gallery-ui .community-home .section-heading>div{flex:1 1 200px}.gallery-ui .community-invite{font-size:13px}}

/* Keep the mobile catalog description full width beneath its title and link. */
@media(max-width:760px){
 .gallery-ui #official .section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
 .gallery-ui #official .section-heading>div{display:contents}
 .gallery-ui #official .section-heading h2{grid-column:1;grid-row:1;min-width:0}
 .gallery-ui #official .section-heading>.home-text-link{grid-column:2;grid-row:1;white-space:nowrap}
 .gallery-ui #official .section-heading>.home-text-link svg{flex-shrink:0}
 .gallery-ui #official .community-invite{grid-column:1/-1;grid-row:2;margin:0}
}
@media(max-width:600px){
 .gallery-ui .story{grid-template-columns:minmax(0,1fr);gap:24px}
 .gallery-ui .story img{width:min(180px,55%);margin:0 auto;justify-self:center}
}

/* Give account details their own space on narrow screens. */
@media(max-width:650px){.gallery-ui .account-heading .account-heading-copy h1{font-size:26px;line-height:1.35}.gallery-ui .account-heading-copy .eyebrow{font-size:12px}.gallery-ui .account-heading-copy>p:last-child{font-size:14px}}

/* ISO ID-1 reference radius: 3.18 / 85.60 of the card width.
   Separate horizontal/vertical percentages keep the corner circular.
   The artwork loader supplies 1.5 for preserved 1536 × 1024 artwork. */
.gallery-ui :is(.hero-face,.hero-glare,.card-tile-art,.card-art,.detail-art,.detail-preview,.version img,.detail-glare,.community-detail-art,.community-detail-art .community-full-image,.community-art-glare,.account-liked-card img,.upload-preview,.auth-card,.home-featured-card,.home-featured-card img){
 border-radius:3.714953271% / calc(3.714953271% * var(--card-display-ratio,1.585139319));
}

/* One artwork preview and download action; alternate designs stay close to it. */
.gallery-ui .detail-artwork{min-width:0}
.gallery-ui .detail-download{display:flex;justify-content:center;gap:9px;width:100%;min-height:48px;margin-top:22px}
.gallery-ui .detail-download[aria-disabled="true"]{opacity:.55;cursor:wait}
.gallery-ui .detail-image-source{margin:12px 0 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
.gallery-ui .artwork-choices{display:flex;gap:10px;overflow-x:auto;padding:5px;margin:15px -5px 0;scrollbar-width:thin}
.gallery-ui .artwork-choice{flex:0 0 88px;min-height:44px;padding:3px;border:1px solid transparent;background:transparent;border-radius:7px;cursor:pointer}
.gallery-ui .artwork-choice img{display:block;width:100%;height:auto;aspect-ratio:1536/969;object-fit:cover;border-radius:3.714953271% / calc(3.714953271% * var(--card-display-ratio,1.585139319))}
.gallery-ui .artwork-choice[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.gallery-ui .artwork-choice:hover{background:var(--accent-soft)}
.gallery-ui .artwork-feedback{margin:12px 0 0;color:var(--muted);font-size:14px;text-align:center}
