#images {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

#images div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#images div:first-child {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

#images div:first-child {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

#images div:not(:first-child) {
  flex: 0 1 auto;
  max-width: calc(33% - 3px);
  height: 100%;
}

#images div:not(:first-child) {
  flex: 0 1 auto;
  max-width: calc(33% - 3px);
  height: 100%;
}

#title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

#openstreetmap,
#wikidata,
#description {
  margin: 0 0 10px 0;
}

dt {
  font-weight: bold;
  margin-top: 6px;
}

dd {
  margin: 0 0 0 12px;
}

#links {
  margin-top: 10px;
}

#links a {
  display: block;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

#container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

#map {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

#sidebar {
  width: 300px;
  max-width: 100vw;
  min-width: 220px;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
  overflow: auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.sidebar-visible #sidebar {
  display: block;
}

.sidebar-visible #map {
  flex: 1 1 0%;
}

.mapbox-ctrl-styles button {
  width: 100%;
  padding: 2px 8px;
}

@media (max-width: 800px) {
  #container {
    flex-direction: column;
    height: 100vh;
    width: 100vw;
  }

  #sidebar {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    height: 50vh;
    position: relative;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    box-sizing: border-box;
    padding: 10px;
    overflow: auto;
  }

  #map {
    width: 100vw;
    height: 50vh;
    min-width: 0;
    min-height: 0;
    position: relative;
  }
}