#map { width: 100%; height: calc(100% - 40px); z-index: 1; } .leaflet-container { cursor: crosshair; } #panorama { position: absolute; z-index: 1; visibility: hidden; } #noPano { display: flex; justify-content: center; align-items: center; position: absolute; z-index: 2; visibility: hidden; background: #cccccc; } #noPano>p { text-align: center; } #control { position: absolute; top: 50px; right: 10px; width: 125px; z-index: 3; } #placeControl { position: absolute; right: 10px; z-index: 3; width: 100px; visibility: hidden; } #deleteButton { display: none; } @media screen and (max-width: 999px) and (min-height: 600px) { #map.selected { height: calc(50% - 20px); } #panorama, #noPano { left: 0; bottom: 0; right: 0; height: calc(50% - 20px); } #placeControl { top: calc(50% + 30px); } } @media screen and (min-width: 1000px), (max-height: 599px) { #map.selected { width: 50%; } #panorama, #noPano { top: 40px; bottom: 0; right: 0; width: 50%; } #placeControl { top: 50px; } #modified.selected { right: calc(50% + 10px); } #control.selected { right: calc(50% + 10px); } }