/* Hero media settings and optional automatic 3D preview. */
.stamchar-hero-grid:not(:has(.stamchar-portrait-column)){grid-template-columns:minmax(0,1fr)!important;max-width:1080px!important;margin-inline:auto}
.stamchar-hero-grid:not(:has(.stamchar-portrait-column))>.wp-block-column:first-child{max-width:980px}
.stamchar-hero-photo img{object-position:var(--st-portrait-x,50%) var(--st-portrait-y,10%)!important}
.stamchar-hero-model{position:relative;display:grid;place-items:center;background:#ddd2bc}
.stamchar-hero-model-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.stamchar-hero-model model-viewer{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;background:transparent}
.stamchar-hero-model model-viewer:focus-visible{outline:3px solid var(--wp--preset--color--primary);outline-offset:3px}
.stamchar-hero-model-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;background:linear-gradient(180deg,#17171518,#17171566);color:#fff}
.stamchar-hero-model-overlay[hidden]{display:none}
.stamchar-hero-model-overlay>span{font-family:var(--wp--preset--font-family--ibm-plex-mono),monospace;font-size:11px;letter-spacing:.18em}
.stamchar-hero-model-trigger{min-height:52px;padding:12px 22px;background:#d2b885;color:#171715;border:2px solid #171715;border-radius:3px;font-weight:600;font-size:16px;font-family:inherit;cursor:pointer}
.stamchar-hero-model-trigger:hover{background:#f3ddaf}
.stamchar-hero-model-trigger:focus-visible{outline:3px solid #fff;outline-offset:4px}
.stamchar-hero-model-trigger:disabled{opacity:.65;cursor:wait}
.stamchar-hero-model-overlay small{font-size:11px;line-height:1.5}
.stamchar-hero-model-overlay p{font-size:12px;margin:0}

/* Without the decorative frame, the model uses the hero's own background. */
.stamchar-portrait-column:has(.stamchar-hero-no-frame){transform:none!important}
.stamchar-portrait-column:has(.stamchar-hero-no-frame)::before,
.stamchar-portrait-column:has(.stamchar-hero-no-frame)::after{display:none!important;content:none!important}
.stamchar-hero-no-frame{background:transparent!important;box-shadow:none!important;border:0!important}
.stamchar-hero-no-frame .stamchar-hero-model-overlay{background:transparent;color:var(--wp--preset--color--contrast)}
.stamchar-hero-model[data-auto-display="1"] .stamchar-hero-model-overlay{background:transparent}
.stamchar-hero-model[data-auto-display="1"] .stamchar-hero-model-overlay>span,
.stamchar-hero-model[data-auto-display="1"] .stamchar-hero-model-trigger,
.stamchar-hero-model[data-auto-display="1"] .stamchar-hero-model-overlay>small{display:none}
.stamchar-hero-model[data-auto-display="1"].is-model-error .stamchar-hero-model-trigger{display:block}

/* More vertical room for the model and its ground shadow. */
.stamchar-portrait.stamchar-hero-model{aspect-ratio:2/3!important;overflow:visible!important}
