.artstation-grid .artstation-card{aspect-ratio:16/9}
.artstation-card .gallery-preview{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;border-radius:inherit}
@media(max-width:720px){.realm-work .artstation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Keep desktop arrows beside the artwork; on mobile, leave the comparison handle clear. */
.gallery-player{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:14px;align-items:center}
.gallery-player .comparison-stage{min-width:0}
.gallery-arrow{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #b4a0c266;border-radius:50%;background:#211d35e6;color:#fff;cursor:pointer;box-shadow:0 3px 14px #100d2226;transition:background .18s,border-color .18s}
.gallery-arrow:hover{background:#514061;border-color:#d2bbdf}
.gallery-arrow:focus-visible{outline:3px solid #f5c695;outline-offset:3px}
.gallery-arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:720px){.gallery-player{display:block}.gallery-arrow{position:absolute;z-index:4;top:10px;width:44px;height:44px;background:#211d35e6}.gallery-arrow[data-gallery-direction="previous"]{left:10px}.gallery-arrow[data-gallery-direction="next"]{right:10px}}
@media(prefers-reduced-motion:reduce){.gallery-arrow{transition:none}}

/* Center the upload itself; identity and secondary links sit outside that focal point. */
.reference-hero{height:100svh;min-height:720px;max-height:none;aspect-ratio:auto}
.reference-hero .hero-copy{top:50%;left:50%;width:min(720px,88%);max-width:none;transform:translate(-50%,-50%)}
.hero-identity{position:absolute;bottom:calc(100% + 36px);left:0;right:0}
.reference-hero .hero-identity h1{width:300px;max-width:75%;margin:0 auto;padding:0}
.hero-identity>p{font-family:var(--font);font-size:18px;font-weight:400;line-height:1.5;letter-spacing:.05em;color:#fff;margin:16px 0 0;text-shadow:0 1px 7px #15264155}
.reference-hero .hero-actions{position:relative;width:100%;gap:0;margin:0}
.reference-hero .hero-secondary-actions{position:absolute;top:calc(100% + 18px);left:0;right:0;width:100%;display:flex;justify-content:center;gap:12px}
.reference-hero .hero-actions .hero-secondary{width:auto;min-width:0;min-height:44px;padding:10px 20px;background:#1b304b66;border:1px solid #ffffff42;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff0d;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:15px;font-weight:500;letter-spacing:0;text-shadow:0 1px 4px #10223955}
.reference-hero .hero-actions .hero-secondary:hover{background:#263f5e99;border-color:#ffffff80;color:#fff;text-decoration:none}
.hero-artwork-drop{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;width:100%;min-height:260px;padding:36px;text-align:center;color:#fff;border:1px dashed #ffffffa6;border-radius:20px;background:linear-gradient(115deg,#ffffff30,#ffffff14);box-shadow:inset 0 1px 0 #ffffff38,0 8px 28px #0a172214;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;transition:background .18s,border-color .18s}
.hero-artwork-drop:hover,.hero-artwork-drop.dragging{background:linear-gradient(115deg,#ffffff40,#ffffff24);border-color:#fff}
.hero-artwork-drop:focus-within{outline:2px solid #fff;outline-offset:4px}
.hero-upload-choose{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:12px 24px;border-radius:11px;background:#fff;color:#263c54;font-size:16px;font-weight:500;box-shadow:0 3px 14px #10223918}
.hero-upload-icon{display:grid;place-items:center;flex:none;color:inherit}
.hero-upload-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hero-upload-copy{display:flex;flex-direction:column;gap:10px;min-width:0}
.hero-upload-title{font-size:28px;font-weight:500;line-height:1.35;letter-spacing:0;color:#fff;text-shadow:0 1px 7px #10243d80}
.hero-upload-help{font-size:13px;line-height:1.5;color:#fff;letter-spacing:.01em;text-shadow:0 1px 5px #10243d80}
.hero-artwork-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.hero-upload-status{position:absolute;top:100%;left:0;right:0;font-size:13px;line-height:1.4;color:#fff1d2;margin:12px 0 0;text-shadow:0 1px 4px #102033}
.hero-upload-status:empty{display:none}
.hero-upload-status:not(:empty)+.hero-secondary-actions{top:calc(100% + 70px)}
@media(max-width:720px){.reference-hero{min-height:680px}.reference-hero .hero-copy{top:50%;width:90%}.hero-identity{bottom:calc(100% + 30px)}.reference-hero .hero-identity h1{width:240px}.hero-identity>p{font-size:16px;letter-spacing:.02em;margin-top:14px}.hero-artwork-drop{min-height:230px;padding:28px 16px;gap:20px;border-radius:17px}.hero-upload-title{font-size:23px}.hero-upload-help{font-size:12px}.hero-upload-choose{min-height:48px;font-size:15px;padding:12px 22px}.reference-hero .hero-secondary-actions{gap:10px}.reference-hero .hero-actions .hero-secondary{font-size:14px;padding:10px 15px}}
@media(prefers-reduced-motion:reduce){.hero-artwork-drop{transition:none}}
.hero-upload-help{display:flex;flex-direction:column;gap:5px}
.hero-upload-help small{font:inherit;font-size:11px;color:#edf3fc}
.portfolio-case-link{text-align:center;margin:18px 0 0}
.portfolio-case-link a{display:inline-flex;align-items:center;min-height:44px;color:#e7d5b9;font-size:15px;text-decoration:underline;text-underline-offset:5px}

/* Give comparison playback a visible control on mouse, touch and keyboard. */
.gallery-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.gallery-playback{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #b5c6d14d;border-radius:8px;background:#3b4b6080;color:#eef3f8;font:inherit;font-size:14px;cursor:pointer}
.gallery-playback:hover{background:#4c5e73}
.gallery-playback:focus-visible{outline:3px solid #e7d5b9;outline-offset:3px}
.commission-delivery-note{grid-column:1/-1;width:100%;max-width:none!important;margin:0;text-align:center;color:#c9d3df;font-size:14px;line-height:1.6}
.commission-delivery-note a{display:inline-flex;align-items:center;min-height:44px;margin-left:12px;color:#f0e4d0;text-decoration:underline;text-underline-offset:4px}
.section.realm-shop#shop:not(.shop-nearby):before{background-image:none}
@media(max-width:720px){
  .realm-work .artstation-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:112px;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:5px 4px 12px;margin-inline:-4px;scrollbar-width:thin;scrollbar-color:#9db0c180 transparent}
  .realm-work .artstation-grid .artstation-card{scroll-snap-align:center}
  .realm-work figcaption{flex-wrap:wrap;gap:10px}
  .gallery-controls{gap:12px}
  .gallery-playback{font-size:12px;padding:7px 10px}
  .commission-delivery-note{font-size:13px}
  .commission-delivery-note a{margin-left:8px}
}
