[data-atlas-points] { position: relative; }
.atlas-dialog-map {
  width: min(100%, 900px, 125svh);
  aspect-ratio: 786 / 455;
  margin: 0 auto 1rem;
}
.atlas-dialog .atlas-dialog-map img[src$="cremapa.png"] {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.atlas-points { position: absolute; inset: 0; pointer-events: none; }
.atlas-painting:not(:focus-within) .atlas-points { visibility: hidden; }
.atlas-point {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(14px, 2.9cqw, 24px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #333;
  border-radius: 50%;
  background: #faf8f3;
  color: #171713;
  font: 600 clamp(8px, 1.4cqw, 12px)/1 Inter, Arial, sans-serif;
  pointer-events: auto;
  cursor: pointer;
}
[data-atlas-points] { container-type: inline-size; }
.atlas-point:is(:hover, [aria-expanded="true"], :focus-visible) {
  z-index: 1;
  background: #171713;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 2px #171713;
  outline: none;
}
.atlas-tooltip {
  position: fixed;
  inset: auto;
  width: min(250px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 15px 17px 17px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #fcfaf5;
  color: #171713;
  pointer-events: auto;
  box-shadow: 0 5px 14px #17120d26;
  font: 400 13px/1.5 Inter, Arial, sans-serif;
}
.atlas-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font: 400 24px/1.05 var(--serif);
}
.atlas-tooltip-hint {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #c8c3b6;
  font-size: 11px;
  letter-spacing: .04em;
}
.atlas-tooltip-link {
  display: inline-block;
  margin-top: 10px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.atlas-tooltip-link::after { content: " ↗"; }
.atlas-tooltip-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* The native cursor is visible above the popover's top layer. */
html.cursor-active:has(.atlas-tooltip:hover) .cursor { display: none; }
html.cursor-active .atlas-tooltip,
html.cursor-active .atlas-tooltip * { cursor: auto !important; }
html.cursor-active .atlas-tooltip .atlas-tooltip-link { cursor: pointer !important; }
