.container {
    background-image: url(../files/bg.jpg);
}
.webp .container {
    background-image: url(../files/bg.webp);
}

@media (max-width:800px) {
  .container {
    background-image: url(/files/bg-800.jpg)
  }
  .webp .container {
    background-image: url(/files/bg-800.webp)
  }
}

.map-gallery-wrapper {
  position:fixed;
  left:0;
  right:0;
  top:0;
  bottom:0;
  overflow-y:hidden;
  margin: auto;
  display: flex;
  flex-direction: row;
}
.map-gallery {
  position: relative;
  box-sizing: border-box;
  height: 0;
  width: 0;
}

/* cluster caption styles are not configurable in map api directly */
.cc-img {
  width: 50px;
}

.map-icon {
  position: absolute;
  width: 50px;
  height: 33px;
  left: -25px;
  top: -16px;
  border: solid 2px white;
  object-fit: cover;
}
/*.org-icon {
  position: relative;
  width: 40px;
  height: 40px;
  left: -20px;
  top: -20px;
  object-fit: cover;
}*/
.map-icon-mark {
  position: absolute;
  left: 10px;
  top: 2px;
  width: 16px;
}
.is-selected .map-icon {
  border-color: #FF6C00;
}
.balloon-content {
  position: relative;
  height: 167px;
  cursor: pointer;
}
/* provide exact value to avoid blink when browser calculates size */
.balloon-content img {
  display: block;
  width: 250px;
  height: 167px;
}
.balloon-content .item-type-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 30px;
  height: 30px;
}
.balloon-content.photo-cluster-balloon {
  width: auto;
  height: auto;
  max-width: 255px;
}
.photo-cluster-balloon img {
  display: inline;
  width: 46px;
  height: 30px;
}
.photo-balloon-ending {
  margin-left: 10px;
  vertical-align: super;
  font-size: 24px;
}
.tour-balloon-mark {
  position: absolute;
  right: 8px;
  bottom: 26px;
  opacity: 0.8;
}
.cluster-icon {
  color: white;
  font-weight: bold;
}
.is-selected .cluster-icon {
  position: relative;
  left: -20px;
  padding: 10px 20px;
  box-shadow: 0 0 15px 10px rgba(144, 238, 144, 0.8), inset 0 0 15px 8px rgba(144, 238, 144, 0.8)
}
.map {
  width: 100%;
  height: 100%;
}

.angle-tip {
  position: absolute;
  right: 0;
  top: 0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border-style: solid;
  border-width: 10px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.pnrm-balloon .angle-tip {
  border-right-color: #E1FE57;
  border-top-color: #E1FE57;
}

.balloon-close {
  position: absolute;
  top: -.1em;
  right: .1em;
  font-size: 1.2em;
  color: gray;
  cursor: pointer;
}
.balloon-close:hover {
  color: black;
}
.balloon-arrow {
  position: absolute;
  left: 50%;
  margin-left: -10px;
  border: solid transparent 10px;
  border-bottom-width: 0;
}

.map-placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
}
.image-caption {
  text-align: center;
}
.image-caption h4 {
  margin: 0.2em;
  font-size: 1.2em;
  font-weight: bold;
}

.cluster-icon.org-cluster {
  display: block;
  width: 40px;
}
.cluster-icon.place-cluster {
  display: block;
  width: 40px;
}
.cluster-icon.hghlt-cluster {
  display: block;
  width: 40px;
}

.org-balloon {
  position: relative;
  min-width: 280px;
  max-width: 300px;
  max-height: 400px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15),0 5px 15px -7px rgba(0,0,0,.5);
}
.org-balloon-content {
  padding: .8em;
  border-radius: 2px;
  background-color: white;
  font-family: Open sans;
}
.org-balloon-content div {
  margin-bottom: .5em;
}
.org-balloon-content .org-name {
  font-size: 1.4em;
}
.org-balloon-content .org-img {
  float: right;
  width: 80px;
}
.org-balloon-content .org-act_type {
  color: cadetblue;
}
.org-balloon-content .org-addr span {
  font-size: .9em;
  margin-left: .4em;
  color: gray;
}
.org-balloon-content .org-addr img {
  width: 1.2em;
}
.org-balloon-content .org-desc {
  margin-top: 1em;
  margin-bottom: 1em;
  overflow: hidden;
  font-size: .8em;
}
.org-balloon .balloon-arrow {
  border-top-color: white;
}
/*.org-balloon-content p span:first-child {
  font-weight: bold;
}*/
/*.org-balloon-content p img {
  width: 46px;
  height: 30px;
  cursor: pointer;
}*/
.org-rating::before {
  --percent: calc(var(--rating) / 5 * 100%);
  content: '★★★★★';
  background: linear-gradient(90deg, #fc0 var(--percent), lightgray var(--percent));
  color: transparent;
  background-clip: text;
}

.place-info {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: .4em;
  font-size: 2em;
  z-index: 1;
  box-sizing: border-box;
  pointer-events: none;
}
.place-name {
  color: white;
}
.place-rating {
  line-height: 1em;
}
  /*--rating: attr(data-rating number, 0);*/
.place-rating::before {
  --percent: calc(var(--rating) / 5 * 100%);
  content: '★★★★★';
  background: linear-gradient(90deg, #fc0 var(--percent), white var(--percent));
  color: transparent;
  background-clip: text;
}

.balloon-content .hghlt-info {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: .4em;
  font-size: 2em;
  z-index: 1;
  box-sizing: border-box;
  pointer-events: none;
}
.balloon-content .hghlt-name {
  color: white;
}
.balloon-content .hghlt-rating {
  line-height: 1em;
}
  /*--rating: attr(data-rating number, 0);*/
.balloon-content .hghlt-rating::before {
  --percent: calc(var(--rating) / 5 * 100%);
  content: '★★★★★';
  background: linear-gradient(90deg, #fc0 var(--percent), white var(--percent));
  color: transparent;
  background-clip: text;
}


html.ios-scroll-fix,
.ios-scroll-fix body {
  position: fixed;
  overflow: hidden;
}

.ios-fix .navtopmob {
  display: none;
}
.ios-fix .map-gallery-wrapper {
  height: 100vh;
  margin-top: 0;
}

.pswp--items-stretched .pswp__zoom-wrap {
  transform: scale(1) !important;
  text-align: center;
}
.pswp--items-stretched .pswp__img {
  height: 100%;
  position: relative;
  cursor: default !important;
}

/* slide transiton animate */
.slideshow-on {
  transition: transform 0.5s ease-in-out;
}

.pswp__button.pswp__button--inc {
    display: none;
    float: left;
    background: url("/css/icons/plus-16.png") 14px 14px no-repeat;
}
.pswp__button.pswp__button--dec {
    display: none;
    float: left;
    background: url("/css/icons/minus-2-16.png") 14px 14px no-repeat;
}
.pswp__button.pswp__button--interval {
    display: none;
    float: left;
    background: none;
    color: white;
    font-size: 1.2em;
}
.slideshow-on+.pswp__ui .pswp__button--inc,
.slideshow-on+.pswp__ui .pswp__button--dec,
.slideshow-on+.pswp__ui .pswp__button--interval {
  display: block;
}

.pswp__button--playpause.play, .pswp__button--playpause.play:before {
    background: url('/css/icons/play-wh.png') 12px 12px/20px 20px no-repeat;
}
.pswp__button--playpause.pause, .pswp__button--playpause.pause:before {
    background: url('/css/icons/pause-wh.png') 12px 12px/20px 20px no-repeat;
}
.pswp__button.pswp__button--text {
    background: url("/css/icons/text-file-3-16.png") 14px 14px no-repeat;
}
.pswp__button.pswp__button--pnrm {
    background: url("/css/icons/3d_rotation_w.png") 8px 8px/28px no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) { /*serve if resolution high enough & browser supports */
    .pswp--svg .pswp__button--playpause.play, .pswp--svg .pswp__button--playpause.play:before {
        background-image: url('/css/icons/play-wh.svg');
    }
    .pswp--svg .pswp__button--playpause.pause, .pswp--svg .pswp__button--playpause.pause:before {
        background-image: url('/css/icons/pause-wh.svg');
    }
    .pswp--svg .pswp__button.pswp__button--text {
        background: url("/css/icons/texticon1rs.svg") 14px 14px no-repeat;
    }
    .pswp--svg .pswp__button.pswp__button--inc {
        background: url("/css/icons/icon_plus.svg") 11px 10px no-repeat;
    }
    .pswp--svg .pswp__button.pswp__button--dec {
        background: url("/css/icons/icon_minus.svg") -1px -2px no-repeat;
    }
    .pswp--svg .pswp__button.pswp__button--interval {
        background: none;
    }
    .pswp--svg .pswp__button.pswp__button--pnrm {
        background: url("/css/icons/3d_rotation_w.svg") 8px 8px/28px no-repeat;
    }
}

.pswp__img {
  object-fit: cover;
}
.pswp--fs .pswp__img {
  object-fit: contain;
}

.pswp__share-tooltip a.pswp__share--vk:hover {
  background: #0099e5;
  color: #FFF;
}
.pswp__share-tooltip a.pswp__share--copylink:hover {
  background: #E9E9E9;
}
.pswp__share-tooltip a.pswp__share--copylink:active {
  background: #C6C6C6;
}

.map-gallery-wrapper.gallery-on .map-gallery {
  width: auto;
}
@media screen and (min-width: 1601px) {
  .map-gallery-wrapper {
    margin-top: 60px; /*.navtopmob*/
    height: calc(100vh - 60px);
  }
  .map-gallery-wrapper.gallery-on .map-gallery {
    width: calc((100vh - 60px)*1.5); /* зависит от высоты и пропорций фотографии */
  }
  .map-gallery {
    height: 100%;
  }
  .map {
    flex: 1;
  }
}
@media screen and (max-width: 900px) and (orientation: landscape) {
  .map-gallery-wrapper {
    margin-top: 50px; /*.navtopmob*/
    height: calc(100vh - 50px);
  }
  .map-gallery-wrapper.gallery-on .map-gallery {
    width: calc((100vh - 50px)*1.5); /* зависит от высоты и пропорций фотографии */
  }
  .map-gallery-wrapper.gallery-on {
  }
  .map-gallery {
    height: 100%;
  }
  .map {
    flex: 1;
  }
}

@media screen and (orientation: portrait)  {
  .map-gallery-wrapper {
    margin-top: 50px; /*.navtopmob*/
    flex-direction: column;
  }
  .map-gallery-wrapper.gallery-on .map-gallery {
    margin-top: 0;
  }
  .map-gallery {
    padding-bottom: 66.66%;
    margin-top: -66.66%;
  }
}

@media screen and (min-width: 901px) and (max-width: 1600px) {
  .map-gallery-wrapper {
    margin-top: 60px; /*.navtopmob*/
    flex-direction: column;
    width: 60%;
  }
  .map-gallery-wrapper.gallery-on .map-gallery {
    margin-top: 0;
  }
  .map-gallery {
    padding-bottom: 66.66%;
    margin-top: -66.66%;
  }
}

.text {
  margin-top: 60px;
  font-size: 11pt;
  width: 100%;
  height: 100%;
}
.text_p {
  margin-left: 10px;
  margin-right: 10px;
}
.lang {
  position: absolute;
  right: 80px;
  top: 19px;
}

.info-text-footer {
}
.info-text-footer a img {
  width: 120px;
  height: 40px;
}


@media screen and (max-width: 900px) {

  .lang {
  	right: 50px;
  	top: 9px;
  }
  .text {
  	margin-top: 50px;
  	font-size: 11pt;
  }
  .navtopmob {
  	height: 50px;
  }

}

.thumb-wrap {
  position: relative;
  padding-bottom: 56.25%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}
.thumb-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-shared-wrapper {
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  background-color: black;
}
.img-shared {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
.img-shared-close {
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  width: 2em;
  height: 2em;
  cursor: pointer;
}

.spinner {
  height: 100%;
  width: 100%;
  opacity: 1;
  position: absolute;
 /* transition: opacity linear 0.1s;*/
  z-index: 10;
  background-color: white;
}
.spinner::before {
  animation: 2s linear infinite spinner;
  border: solid 5px #eee;
  border-bottom-color: #EF6565;
  border-radius: 50%;
  content: "";
  display: block;
  position: absolute;
  height: 40px;
  width: 40px;
  left: 50%;
  top: 50%;
  opacity: 1;
}
/*fix overriding transform by keyframes*/
div.spinner::before {
  transform-origin: center;
  transform: translate3d(-50%, -50%, 0);
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}




.info-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;

}
  /*font-family: 'Source Sans Pro', sans-serif;
  color: #2F4F4F;*/
.info-text-main {
  margin: 2em;
  max-width: 800px;
}
/*.info-text-main ul li {
  margin: .5em 0;
}*/
/*.info-text-main h1 {
  color: #696969;
}*/
/*.info-text-main p:first-letter {
  margin-left: 1em;
}*/
/*.info-text-footer {
  text-align: center;
}*/


.info-text-main {
  white-space: pre-wrap;
}

.info-text-main .ql-indent-1 { padding-left: 3em; }
.info-text-main .ql-indent-2 { padding-left: 6em; }
.info-text-main .ql-indent-3 { padding-left: 9em; }
.info-text-main .ql-indent-4 { padding-left: 12em; }
.info-text-main .ql-indent-5 { padding-left: 15em; }
.info-text-main .ql-indent-6 { padding-left: 18em; }
.info-text-main .ql-indent-7 { padding-left: 21em; }
.info-text-main .ql-indent-8 { padding-left: 24em; }

.info-text-main p,
.info-text-main ol,
.info-text-main ul,
.info-text-main pre,
.info-text-main blockquote,
.info-text-main h1,
.info-text-main h2,
.info-text-main h3,
.info-text-main h4,
.info-text-main h5,
.info-text-main h6 {
  margin: 0;
  padding: 0;
}

.info-text-main ol, .info-text-main ul { padding-left: 1.5em;}
