.contact-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.contact-info {
  flex: 0 0 260px;
  margin-right: 20px;
}

.map-frame {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  container-type: inline-size;
}

.map-frame img {
  max-width: 100%;
  border-radius: 4px;
}

.map-frame iframe {
  width: 100%;
  height: 400px;
}

.map-frame h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* main h1, main h2 (main.css) sizes these at 32px for page-level headings -
   these are small in-content subsection labels, not page headings, so
   override back down to match the h3 styling they used before being
   promoted to h2 to fix a skipped heading level (h1 -> h3 with no h2). */
.contact-info h2 {
  font-size: 21px;
  margin-top: 21px;
  margin-bottom: 10px;
}

.map-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

/* Below this, the two links no longer comfortably fit side by side -
   stack and center them instead of leaving one pinned to the edge. */
@container (max-width: 380px) {

  .map-links {
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 46rem) {

  .contact-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-info {
    flex: 0 0 auto;
    margin-right: 0;
  }

}
