@media (max-width: 700px) {
  body.is-shelf-view #mapFront:not(.hidden) {
    display: block;
    box-sizing: border-box;
    height: 100dvh;
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
  }

  body.is-shelf-view .map-front-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.is-shelf-view .map-front-heading,
  body.is-shelf-view #mapShelfSummary {
    margin-block: 10px;
  }

  body.is-shelf-view #mapShelfContext {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.is-shelf-view .map-front-grid {
    display: block;
    height: auto;
  }

  body.is-shelf-view .map-shelf-panel,
  body.is-shelf-view .map-shelf-scroll {
    display: block;
    height: auto;
    min-height: 0;
  }

  body.is-shelf-view #mapPhotoViewport {
    width: 100%;
    height: clamp(220px, 47dvh, 420px);
    overflow: auto;
  }

  body.is-shelf-view .map-shelf-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
    overflow: visible;
  }

  body.is-shelf-view .map-shelf-aside > .panel {
    margin: 0;
  }
}
