/* Keep pins and widget controls visible when the contacts grid narrows. */
.ct-map,
.ct-map iframe {
  min-height: 26rem;
}

@media (pointer: coarse) and (min-width: 641px) and (max-width: 1279px) {
  .ct-map {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }
  .ct-map iframe {
    position: static;
    height: auto;
    aspect-ratio: 2 / 1;
  }
  .ct-map__legend {
    position: static;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 12px 14px;
  }
}

/* Leave room for the office popup below the desktop address legend. */
@media (min-width: 1280px) {
  .ct-map { min-height: 610px; }
}
