.fg-place-map-modal-container {
  display: flex;
  overflow: hidden;

  width: 100vw;
  height: 100vh;

  cursor: default;
}

.fg-place-map-container {
  flex: 0 0 calc(100% - 315px);
}

.fg-place-map-modal-figures-container {
  display: flex;
  flex-direction: column;

  flex: 0 0 315px;
  max-width: 315px;
}

.fg-place-map-modal-figures-header {
  display: flex;

  height: 60px;

  background-color: #FFFFFF;
  border-bottom: 1px solid #dddddd;
}

.fg-place-map-modal-figures-header-pin-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  flex: 0 0 50px;
  min-width: 50px;

  color: #E84F89;

  font-size: 17px;
  line-height: 1;
}

.fg-place-map-modal-figures-header-title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;

  flex: 0 0 calc(100% - 95px);
  max-width: 218px;
}

.fg-place-map-modal-figures-header-title {
  width: calc(100% - 50px);
}

.fg-place-map-modal-figures-header-title:after {
  right: -5px;
}

.fg-place-map-modal-figures-header-title--primary {
  color: #5C68A4;

  font-size: 15px;
}

.fg-place-map-modal-figures-header-title--secondary {
  color: #555555;

  font-size: 10px;
}

.fg-place-map-modal-close-button {
  flex: 0 0 45px;

  padding: 0 20px 0 0;

  background: none;
  border: none;
  color: #777777;

  font-size: 25px;
  line-height: 1;

  transition: color .4s ease;
}

.fg-place-map-modal-close-button:hover {
  color: #000000;
}

.fg-place-map-modal-figures {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-y: auto;

  height: calc(100vh - 60px);

  padding-bottom: 20px;
}

.fg-place-map-modal-figure {
  display: inline-block;
  overflow: hidden;

  margin: 15px auto 0;

  cursor: pointer;

  border-radius: 5px;
}

.fg-place-map-modal-figure-image {
  position: relative;

  border-radius: 5px;
}

.fg-place-map-modal-loader-icon-container {
  width: 100%;
  height: 45px;
  flex: 0 1 auto;

  margin: 5px 0 2px;

  background-size: cover;
}

.fg-place-map-modal-loader-icon {
  position: relative;

  width: 35px;

  margin: 10px auto 0;

  background-image: none;
}

@media screen and (max-width: 768px) {
  .fg-place-map-modal-figures-header-pin-icon,
  .fg-place-map-modal-figures-header-title-container {
    display: none;
  }
}

@media screen and (min-width: 500px) and (max-width: 768px) {
  .fg-place-map-container {
    flex: 0 0 calc(100% - 215px);
  }

  .fg-place-map-modal-figures-container {
    flex: 0 0 215px;
    max-width: 215px;
  }

  .fg-place-map-modal-figures-header {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 499px) {
  .fg-place-map-modal-container {
    flex-direction: column;
  }

  .fg-place-map-modal-figures-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;

    justify-content: flex-start;

    width: 100%;

    background-color: #2D2F31;
    border-bottom: none;
  }

  .fg-place-map-modal-close-button {
    padding: 0 0 0 20px;
  }

  .fg-place-map-container {
    flex: 0 0 calc(100% - 215px);

    margin-top: 60px;
  }

  .fg-place-map-modal-figures-container {
    flex: 0 0 215px;
    max-width: 100vw;
  }

  .fg-place-map-modal-figures {
    flex-direction: column;

    width: calc(100% - 30px);
    margin: auto;
  }

  .fg-place-map-modal-figure {
    width: 125px;
    height: 125px;

    margin-left: 15px;
  }

  .fg-place-map-modal-figure:first-of-type {
    margin-left: 0;
  }

  .fg-place-map-modal-figure-image {
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
  }
}
