body {
  font: 14px/20px Roboto, -apple-system, BlinkMacSystemFont, "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
  color: #222;
}
#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.model {
  width: 48px;
  height: 48px;
}
.model.is-visible:hover {
  z-index: 1;
}
.model__icon-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 48px;
  height: 48px;
  opacity: 0;
  transition-duration: 300ms;
  transition-property: opacity;
}
.model.is-visible .model__icon-wrapper {
  cursor: pointer;
  opacity: 1;
}
.model.is-visible .model__dot, .model.is-visible .model__line {
  opacity: 1;
}
.model__icon {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 64px;
  height: 64px;
  background-size: 100%;
  background-position: center;
  transition-duration: 500ms;
  transition-property: transform;
}
.model.is-visible .model__icon-wrapper:hover .model__icon {
  transform: scale(3);
}
.model__line {
  position: absolute;
  top: 23px;
  left: 27px;
  width: 24px;
  height: 1px;
  border: 1px solid #fff;
  border-left: none;
  border-radius: 2px;
  background: #7d95b0;
  transform-origin: -2px 2px;
  opacity: 0;
}
.model__dot {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #7d95b0;
  opacity: 0;
}
.model.is-active .model__line {
  border-color: crimson;
}
#params {
  background: #ffffff;
  border-top-left-radius: 15px;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  padding: 10px;
  padding-bottom: 30px;
  display: none;
}
#params input[type=range] {
  width: 300px;
}
#popup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: transparent;
  transition: ease-in-out 0.25s all;
}
#popup__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.02);
  transform-origin: center center;
  opacity: 0;
  transition: ease-in-out 0.25s all;
}
#popup__box {
  position: relative;
  width: 90%;
  max-width: 900px;
  /*height: 440px;*/
  /*background: #192024;*/
  background: radial-gradient(ellipse 525px 555px at top 240px right 230px, #434343, #1c1c1c 44%);
  color: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}
#popup.is-visible {
  z-index: 2;
  background: rgba(0,0,0,0.3);
}
#popup.is-visible #popup__wrapper {
  opacity: 1;
  transform: none;
}
#popup__image {
  width: 420px;
  height: 360px;
  margin-left: 20px;
  background-position: center;
  background-repeat: no-repeat;
}
#popup__image iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
#popup__body {
  display: flex;
  padding: 0 20px 20px;
}
#popup__title {
  font-weight: 500;
  font-size: 22px;
  padding: 0;
  text-align: center;
  height: 60px;
  /* vertical-align: middle; */
  line-height: 60px;
}
#popup__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#popup__about {
  margin-bottom: 10px;
}
#popup__date, #popup__place {
  margin-top: 8px;
  color: #aaa;
  font-style: italic;
}
#popup__date-value, #popup__place-value {
  color: #fff;
}
#popup__date {
  margin-top: auto;
}
#popup__close {
  position: absolute;
  top: 14px;
  right: 17px;
  /* background: rgba(0, 0, 0, 0); */
  padding: 8px;
  border-radius: 20px;
  font-size: 24px;
  line-height: 15px;
  width: 15px;
  text-align: center;
  cursor: pointer;
}
#popup__close:hover {
  background: rgba(0,0,0,0.3);
}

@media only screen and (max-width: 850px) {
  #popup__box {
    width: 460px;
    background: radial-gradient(ellipse 525px 555px at 50% 240px, #434343, #1c1c1c 44%);
  }

  #popup__body {
    flex-direction: column-reverse;
  }

  #popup__image {
    width: 100%;
    margin: 0 0 20px;
  }
}
@media only screen and (max-width: 500px) {
  #popup__box {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
    background: radial-gradient(ellipse 156% 78% at 50% 240px, #434343, #1c1c1c 44%);
  }
}