/* Keep the reviewed map and gallery layout, with readable text at browser zoom. */
.searchbox input, .filter-field select { font-size: 1rem; }
.item-title, .scene-title { font-size: 1rem; }
.item-meta, .item-scene, .detail-source, .location-status, .results-header { font-size: .8125rem; }
.detail p, #aboutDialog p, #tipPublicDialog p { font-size: 1rem; }
.info-row, .detail-cta a, .filter-field, .filter-toggle { font-size: .875rem; }
.leaflet-control-attribution { font-size: .6875rem !important; }
.map-actions { bottom: 0; }
.location-status {
  position: absolute; bottom: 1.4rem; left: -60px; max-width: min(15rem, 58vw);
  pointer-events: none;
}
.location-status button { pointer-events: auto; }
.detail.open { z-index: 660; }
@media (max-width: 800px) {
  .detail.open { z-index: 2100; }
}

@media (max-height: 500px) and (orientation: landscape) {
  /* Leave room to scroll the catalogue on a phone turned sideways. */
  .app { flex-direction: row; }
  .sidebar { order: 0; flex: 0 0 41%; min-width: 0; }
  .map-shell { flex: 1; height: 100%; }
  .split-handle { display: none; }
  .masthead { padding: 4px 10px; }
  .masthead h1 { font-size: 1rem; }
  .masthead .eyebrow, .masthead p, .sidebar-foot, .results-header span { display: none; }
}
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .detail.open {
    position: fixed; left: 0; top: 0; width: 41%; height: 100dvh; max-height: none;
    border-radius: 0; border-right: 1px solid var(--line);
    z-index: 2100;
  }
  body.map-expanded .detail.open {
    left: auto; right: 0; top: 56px; width: min(45%, 26rem); height: calc(100dvh - 76px);
  }
}
