/* SILVER_MAP_FULL_IMAGE_20261004: original ratio, scoped to the existing map. */
#visit .silver-studio-map .map-open { display:block; padding:0; width:100%; max-width:100%; border:0; background:transparent; }
#visit .silver-studio-map .map-open img { display:block; width:100%; height:auto!important; max-height:none!important; aspect-ratio:auto!important; object-fit:contain!important; object-position:center!important; }
#visit .silver-studio-map .st-map-zoom { position:static!important; display:block; margin:6px 0 0; padding:6px 2px; background:transparent; text-align:right; font-size:14px; }
/* SILVER_MAP_VIEWPORT_FIT_20261004: keep intrinsic grid size within the viewport. */
#studio-map-dialog { box-sizing:border-box; position:fixed!important; inset:0!important; margin:auto!important; padding:0!important; border:0!important; width:min(1120px,86vw)!important; height:80vh!important; height:80dvh!important; max-width:86vw!important; max-height:80vh!important; max-height:80dvh!important; min-width:0!important; min-height:0!important; border-radius:10px; background:transparent!important; box-shadow:none!important; overflow:hidden; }
#studio-map-dialog:not([open]) { display:none!important; }
#studio-map-dialog[open] { display:grid!important; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); place-items:center; }
#studio-map-dialog img { display:block; width:100%!important; height:100%!important; min-width:0!important; min-height:0!important; max-width:100%!important; max-height:100%!important; object-fit:contain!important; object-position:center!important; border-radius:10px; }
#studio-map-dialog::backdrop { background:rgba(35,29,24,.78); }
#studio-map-dialog .st-map-close { position:absolute; top:8px; right:8px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #af9780; border-radius:50%; background:#fff9f1f2; color:#352b24; font:32px/1 system-ui,sans-serif; cursor:pointer; z-index:2; }
#studio-map-dialog .st-map-close:focus-visible { outline:3px solid #765237; outline-offset:3px; }
body.map-viewing { overflow:hidden; }
@media(max-width:600px) { #studio-map-dialog { width:92vw!important; max-width:92vw!important; height:76vh!important; height:76dvh!important; max-height:76vh!important; max-height:76dvh!important; } }

/* SILVER_MAP_DIALOG_ASPECT_20261011_V2: keep the closing control next to the visible 3:2 map.
   Preserve the same image size maximums and backdrop, but do not allocate
   empty dialog height on tall/narrow mobile viewports. */
#studio-map-dialog {
  width:min(1120px, 86vw, 120dvh)!important;
  height:auto!important;
  aspect-ratio:3 / 2;
}
#studio-map-dialog[open] {
  grid-template-rows:minmax(0, 1fr);
}
#studio-map-dialog .st-map-close {
  top:8px; right:8px;
}
@media(max-width:600px) {
  #studio-map-dialog {
    width:min(92vw, 114dvh)!important;
    height:auto!important;
    aspect-ratio:3 / 2;
  }
}
