#myModal {
  z-index: 999 !important;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.92);
}

#myModal,
#myModal .container-fluid,
#myModal .container-fluid > .h-100 {
  height: 100vh !important;
  min-height: 100vh;
}

.modal-content {
  margin-top: 0px !important;
}

#closex {
  position: fixed;
  top: 10px;
  right: 18px;
  z-index: 10000;
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.imgcon {
  padding-right: 0px;
  padding-left: 0px;
}

.iimg {
  height: 100% !important;
  min-height: 0;
  padding: 0;
  max-height: none;
  overflow: hidden;
  position: relative;
}

.icon-box {
  font-size: 14px;
  position: absolute;
  top: 0px;
  right: 50px;
}

#topheader {
  font-size: 40px;
}

#figcap {
  text-align: center;
}

.img-responsive {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.flex-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 5px;
}

#svgbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

#svgbox:active {
  cursor: grabbing;
}

#svgcontainer {
  display: block;
  visibility: visible;
}

#loadimg {
  pointer-events: none;
}

.feld {
  cursor: pointer;
}

#HistoLocation {
  justify-content: space-around;
}

.left_panel {
  position: absolute;
  width: auto;
  min-width: 400px;
  max-width: calc(100vw - 40px);
  z-index: 9999;
  background-color: #35384d;
  border-radius: 5px;
  height: auto;
  bottom: 0px;
  transition: 0.5s;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  margin-bottom: 10px;
  color: white;
}

.right_panel {
  right: 0px;
  left: unset;
  transition: right 0.5s;
}

.prev,
.nex {
  position: fixed;
  z-index: 9999;
  cursor: pointer;
  color: white;
  font-size: 40px;
  text-decoration: none;
  user-select: none;
}

.copyr {
  position: relative;
  bottom: auto;
  color: #686b9c;
}

.copyr > div {
  width: 100%;
  text-align: center;
}

#tooltip {
  z-index: 50000;
}

.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#desktop-overlay[hidden],#wiki-overlay[hidden] {
  display: none;
}

#desktop-overlay, #wiki-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
}

#desktop-overlay-inner, #wiki-overlay-inner {
  position: absolute;
  inset: 0vh 0vw;
  background: #111;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

#desktop-close-btn, #wiki-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: white;
}

#desktop-frame, #wiki-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bottext,
.toptext {
  position: relative;
}

@media (min-width: 1200px) {
  .top-text {
    float: left;
    height: auto;
  }

  .iimg {
    height: 100vh;
    max-height: none;
  }

  .icon-box {
    right: 0px;
  }

  #figcap {
    padding: 5px;
    word-wrap: break-word;
  }
}

@media (max-width: 768px) {
  #topheader {
    font-size: 28px;
  }

  .left_panel {
    min-width: unset;
    width: calc(100% - 20px);
  }
}


/* SVG image darf nicht durch globale responsive-Regeln verzerrt werden */
#svgcontainer image {
  width: auto;
  height: auto;
}
