#sites-map-container { position: relative; margin: 0 auto; max-width: 40vw; } #map_base { width: 100%; } #projects_icons { position: absolute; left: 0; top: 0; } #popup { background-color: white; display: none; position: absolute; padding: 0.5rem 1rem; transition: opacity 0.3s ease; opacity: 0; } #popup h3, #popup p { text-align: center; margin: 0; }