html.oribe-viewing-map { overflow: hidden; }
dialog.oribe-map-viewer[open] { position:fixed; inset:0; margin:auto; display:flex; flex-direction:column; width:min(96vw,78rem); height:90vh; height:90dvh; max-height:96dvh; box-sizing:border-box; padding:0; border:0; background:white; color:#25322e; }
.oribe-map-viewer::backdrop { background:rgb(14 22 29 / 82%); }
.oribe-map-viewer .map-controls { display:flex; align-items:center; gap:.5rem; padding:.5rem .8rem; border-bottom:1px solid #ced3cf; }
.map-controls strong { flex:1; line-height:1.4; }
.oribe-map-viewer button { background:white; border:1px solid #7d8983; padding:.4rem .7rem; min-height:44px; white-space:nowrap; color:#25322e; cursor:pointer; }
.oribe-map-viewer :focus-visible { outline:3px solid #365947; outline-offset:-3px; }
.oribe-map-viewer .map-viewport { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.oribe-map-viewer .map-viewport img { display:block; width:100%; height:100%; object-fit:contain; cursor:zoom-in; }
.oribe-map-viewer.is-enlarged .map-viewport img { height:auto; max-width:none; margin-inline:auto; cursor:zoom-out; }
/* Keep the image controls legible even when WordPress themes style all buttons. */
body dialog.oribe-map-viewer .map-controls {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px;
  padding:10px 14px; background:#fff; color:#1c3028;
}
body dialog.oribe-map-viewer .map-controls button {
  appearance:none; width:auto; min-width:5em; min-height:46px; height:auto;
  padding:8px 14px; font-family:inherit;
  font-size:16px; font-weight:700; line-height:1.35; letter-spacing:normal;
  text-indent:0; text-shadow:none; box-shadow:none; opacity:1; border-radius:4px;
  background:#fff !important; color:#182d26 !important; border:2px solid #344d42 !important;
}
body dialog.oribe-map-viewer .map-controls button[data-close] {
  background:#243c32 !important; color:#fff !important;
}
body dialog.oribe-map-viewer .map-controls button:hover { text-decoration:underline; }
body dialog.oribe-map-viewer .map-controls button:focus-visible {
  outline:3px solid #152a66; outline-offset:2px;
}
@media(max-width:480px) {
  body dialog.oribe-map-viewer .map-controls {grid-template-columns:minmax(0,1fr) auto; padding:10px 12px;}
  body dialog.oribe-map-viewer .map-controls strong {grid-column:1/-1;}
  body dialog.oribe-map-viewer .map-controls button {min-width:5.5em;}
  body dialog.oribe-map-viewer .map-controls [data-zoom] {justify-self:start;}
}

