/* Scope to reviewed Schleich galleries; preserve original product photos and the existing save button. */
.kgi-detail-media.has-schleich-gallery{display:block;align-self:start;min-height:0!important;aspect-ratio:auto!important;background:#fff;overflow:visible;position:relative}
.has-schleich-gallery .kgi-gallery-stage{aspect-ratio:1;border:1px solid #e1e9ec;border-radius:12px;background:#fff;overflow:hidden}
.has-schleich-gallery .kgi-gallery-open{display:block;width:100%;height:100%;padding:12px;border:0;background:#fff;cursor:zoom-in;border-radius:12px}
.has-schleich-gallery .kgi-gallery-open img{display:block;width:100%;height:100%;object-fit:contain!important;background:#fff}
.has-schleich-gallery>.kgi-save{z-index:2}
.kgi-detail-media.has-schleich-gallery .kgi-gallery-caption{font-size:14px;line-height:1.5;color:#405662;background:#f0f5f7;border-radius:8px;padding:10px 12px;margin:12px 0 8px;min-height:3em;overflow-wrap:anywhere}
.kgi-detail-media.has-schleich-gallery .kgi-gallery-caption[data-kind=scene]{background:#fff2df;border-left:4px solid #ef7509}
.kgi-detail-media.has-schleich-gallery .kgi-gallery-status{font-size:13px;line-height:1.4;color:#526a77;margin:8px 0 12px}
.kgi-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:8px}
.has-schleich-gallery .kgi-gallery-thumb{aspect-ratio:1;min-width:0;min-height:44px;padding:4px;border:2px solid #dce5e9;border-radius:8px;background:white;cursor:pointer}
.has-schleich-gallery .kgi-gallery-thumb[aria-pressed=true]{border-color:#096981;box-shadow:0 0 0 1px #096981}
.has-schleich-gallery .kgi-gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain!important;background:white}
.has-schleich-gallery button:focus-visible,.kgi-gallery-dialog button:focus-visible{outline:3px solid #ef7509;outline-offset:3px}
.kgi-gallery-dialog{padding:0;border:0;border-radius:14px;width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:#203947;background:white;overflow:auto;box-shadow:0 15px 80px #0006}
.kgi-gallery-dialog::backdrop{background:#102a38cf}
.kgi-gallery-dialog-frame{padding:18px}
.kgi-gallery-dialog-bar,.kgi-gallery-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;font:600 15px/1.4 system-ui,sans-serif}
.kgi-gallery-dialog button{border:1px solid #bdd0d8;border-radius:8px;background:#fff;color:#075d77;padding:10px 15px;min-height:44px;font:600 15px/1.4 system-ui,sans-serif;cursor:pointer}
.kgi-gallery-dialog .kgi-gallery-large{display:block;width:100%;height:min(66dvh,730px);object-fit:contain;background:white;margin:12px 0}
.kgi-gallery-dialog-caption{font:15px/1.5 system-ui,sans-serif;padding:10px 12px;border-radius:8px;background:#f0f5f7;overflow-wrap:anywhere}
.kgi-gallery-dialog-caption[data-kind=scene]{background:#fff2df;border-left:4px solid #ef7509}
@media(max-width:600px){.kgi-gallery-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.kgi-gallery-dialog-frame{padding:12px}.kgi-gallery-dialog .kgi-gallery-large{height:48dvh}.kgi-gallery-nav button{padding:10px;flex:1}.kgi-gallery-thumbs{gap:6px}.has-schleich-gallery .kgi-gallery-open{padding:8px}}
