.map-section {
  overflow: visible;
}

.map-container {
  position: relative;
  margin-top: 2rem;
}

.project-map {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
}

@media (min-width: 601px) {
  .project-map {
    margin-bottom: 8%;
    transform: scale(1.08);
    transform-origin: center top;
  }
}

.project-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-dot {
  position: absolute;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333745;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.project-dot:hover,
.project-dot:focus-visible,
.project-dot[aria-expanded="true"] {
  color: #068a4f;
  transform: translate(-50%, -100%) scale(1.2);
}

.project-popups {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.project-popup {
  position: absolute;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 1.5rem;
  background: #fff;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 50px));
}

.project-popup::after {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  background: #fff;
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

.view-project-link {
  display: inline-block;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .project-map {
    width: 108%;
    margin-left: -4%;
  }

  .project-dot {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.75rem;
  }
}