@layer mobile {
  @media (max-width: 800px) {

    :root{
      --mob-tabbar-h: 72px;
      --mob-pad: 12px;
      --mob-radius: 22px;
    }

    html body{
      padding-bottom:0; /*calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom));*/
    }

    html:not([data-page="main"]) body > footer{
      display: none !important;
    }
	
	html[data-page="main"] body{ padding-bottom: 0 !important; }
	html[data-page="main"] .page{ min-height: 0 !important; }

    header.topbar > div,
    header > div{
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 2px !important;
      width: 100% !important;
      white-space: normal !important;
    }

    header .logotype > i{
      display: none !important;
    }

    header .logotype{
      font-size: 11px !important;
      line-height: 1.05 !important;
      margin-top: 0 !important;
      margin-right: 0 !important;
      gap: 6px !important;
    }

    header .logotype::before{
      width: 16px !important;
      height: 16px !important;
      top: 0 !important;
    }

    header .logotype::after{
      display: none !important;
      content: none !important;
    }

    header > div > span.breadcrumbs,
    header.topbar > div > span.breadcrumbs{
      display: block !important;
      width: 100% !important;
      margin-top: 1px !important;
    }

    header .breadcrumbs,
    header #header-crumbs > .breadcrumbs{
      font-size: 10px !important;
      line-height: 1.15 !important;
      gap: 2px 4px !important;
      white-space: normal !important;
      flex-wrap: wrap !important;
    }

    header #header-crumbs > .breadcrumbs a{
      margin: 0 !important;
      padding: 0 1px !important;
      font-size: 10px !important;
    }

    header #header-crumbs > .breadcrumbs i{
      font-size: 9px !important;
      opacity: .7;
      top: 0 !important;
    }

    html:not([data-page="main"]) header.topbar{
      position: sticky;
      top: 0;
      height: auto;
      padding: 10px var(--mob-pad);
      align-items: flex-start;
      background: rgba(0,0,0,.60);
      border-bottom: 1px solid rgba(255,255,255,.10);
      backdrop-filter: blur(16px) saturate(125%);
      -webkit-backdrop-filter: blur(16px) saturate(125%);
      z-index: 9000;
    }

    html:not([data-page="main"]) header.topbar > nav.topbar-right{
      display: none !important;
    }

    html:not([data-page="main"]) header.topbar > div{
      white-space: normal;
      width: 100%;
      flex: 1 1 auto;
      align-items: flex-start;
    }

    html:not([data-page="main"]) .page{
      padding: 12px var(--mob-pad) calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 20px);
      height: auto;
      min-height: 100svh;
      align-items: stretch;
    }

    html:not([data-page="main"]) .main{
      flex-direction: column;
      height: auto;
      min-height: 0;
      gap: 10px;
    }

    html:not([data-page="main"]) .left,
    html:not([data-page="main"]) .right{
      margin-bottom: 0;
      overflow: visible;
      min-height: 0;
    }

    html:not([data-page="main"]) #side-menu{
      left: 0;
      right: 0;
      width: 100%;
      padding: 4.5rem 1.25rem 1.25rem;
      overflow: auto;
    }


	.home-pane--bottom,
	.home-pane--search {
		display: none !important;
	}

    #mobile-tabbar{
      display: none;
    }

    html #mobile-tabbar{
      position: fixed;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;

      height: calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom));
      display: grid;
      grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
      align-items: start;
      gap: 4px;

      padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
      border-radius: 0 !important;
      border: 0 !important;
      border-top: 1px solid rgba(255,255,255,.10) !important;

      background: rgba(0,0,0,.82);
      backdrop-filter: blur(18px) saturate(130%);
      -webkit-backdrop-filter: blur(18px) saturate(130%);
      box-shadow: 0 -8px 24px rgba(0,0,0,.35) !important;

      z-index: 90000;
    }

    #mobile-tabbar .mobile-tabbar__btn{
      all: unset;
      cursor: pointer;
      height: var(--mob-tabbar-h);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: background .15s ease, transform .12s ease;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    #mobile-tabbar .mobile-tabbar__btn:active{ transform: scale(.985); }
    #mobile-tabbar .mobile-tabbar__btn:hover{ background: rgba(255,255,255,.06); }

    #mobile-tabbar .mobile-tabbar__label{
      font: 700 9px/1 Inter, system-ui, sans-serif;
      color: rgba(255,255,255,.78);
      letter-spacing: .02em;
    }

    #mobile-tabbar .mobile-tabbar__icon{
      width: 20px;
      height: 20px;
      display: block;
      background: rgba(255,255,255,.92);
      -webkit-mask: var(--mask) center/contain no-repeat;
              mask: var(--mask) center/contain no-repeat;
      opacity: .95;
    }

    #mobile-tabbar .mobile-tabbar-flag{
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-size: cover;
      background-position: center;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    }

    #mobile-tabbar [data-role="back"] .mobile-tabbar__icon{
      --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    #mobile-tabbar [data-role="search"] .mobile-tabbar__icon{
      --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M21 21l-4.35-4.35' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    }
    #mobile-tabbar [data-role="menu"] .mobile-tabbar__icon{
      --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    }

    #mobile-tabbar #ai-open-mobile{
      width: 50px !important;
      height: 50px !important;
      align-self: center;
      justify-self: center;
      margin-top: 1px;
      border-radius: 999px;
    }

    /* флаги */
    .flag-en{ background-image:url('/assets/svg/flag/us.svg'); }
    .flag-es{ background-image:url('/assets/svg/flag/es.svg'); }
    .flag-de{ background-image:url('/assets/svg/flag/de.svg'); }
    .flag-ru{ background-image:url('/assets/svg/flag/ru.svg'); }
    .flag-zh{ background-image:url('/assets/svg/flag/cn.svg'); }
    .flag-ja{ background-image:url('/assets/svg/flag/jp.svg'); }
    .flag-ko{ background-image:url('/assets/svg/flag/kr.svg'); }
    .flag-fr{ background-image:url('/assets/svg/flag/fr.svg'); }
    .flag-pt{ background-image:url('/assets/svg/flag/pt.svg'); }
    .flag-ar{ background-image:url('/assets/svg/flag/ar.svg'); }

    html:not([data-page="main"]) #home-search{ display:none; }

    html:not([data-page="main"]) body.mobile-search-open #home-search{
      display: block;
    }

    html:not([data-page="main"]) #home-search{
      position: fixed;
      left: var(--mob-pad);
      right: var(--mob-pad);
      bottom: calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 12px);
      z-index: 95000;
      max-width: 760px;
      margin: 0 auto;
    }

    html:not([data-page="main"]) #home-search .search-row{
      background: rgba(0,0,0,.70);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 8px;
      backdrop-filter: blur(18px) saturate(130%);
      -webkit-backdrop-filter: blur(18px) saturate(130%);
      box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
    }

    .mobile-sheet{
      position: fixed;
      inset: 0;
      display: none;
      z-index: 96000;
    }
    .mobile-sheet.show{ display:block; }

    .mobile-sheet__backdrop{
      position:absolute;
      inset:0;
      border:0;
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }

    .mobile-sheet__panel{
      position:absolute;
      left:0;
      right:0;
      bottom:0;
      max-height: 86svh;
      border-top-left-radius: 18px;
      border-top-right-radius: 18px;
      padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
      background: rgba(0,0,0,.86);
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(18px) saturate(130%);
      -webkit-backdrop-filter: blur(18px) saturate(130%);
      box-shadow: 0 -20px 50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .mobile-sheet__title,
    .mobile-sheet__head{
      font: 700 14px/1.2 'Unbounded', sans-serif;
      color: #fff;
      margin: 2px 2px 6px;
    }

    .mobile-lang-list{
      overflow:auto;
      display:flex;
      flex-direction:column;
      gap:8px;
      padding-bottom: 6px;
    }

    .mobile-lang-list button{
      all: unset;
      cursor:pointer;
      display:flex;
      align-items:center;
      gap:10px;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
    }
    .mobile-lang-list button:active{ transform: scale(.99); }

    .mobile-lang-list .flag{
      width: 22px;
      height: 22px;
      border-radius: 7px;
      background-size: cover;
      background-position:center;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
      flex: 0 0 auto;
    }

    .mobile-lang-list .label{
      font: 700 13px/1.2 Inter, system-ui, sans-serif;
      color:#fff;
    }

    /* dropdown modal (крошки/меню) */
    .dropdown-modal{
      position: fixed;
      inset: 0;
      display: none;
      z-index: 97000;
    }
    .dropdown-modal--show{ display:block; }

    .dropdown-modal__backdrop{
      position:absolute;
      inset:0;
      border:0;
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }

    .dropdown-modal__panel{
      position:absolute;
      left:0;
      right:0;
      bottom:0;
      max-height: 86svh;
      border-top-left-radius: 18px;
      border-top-right-radius: 18px;
      padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
      background: rgba(0,0,0,.86);
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(18px) saturate(130%);
      -webkit-backdrop-filter: blur(18px) saturate(130%);
      box-shadow: 0 -20px 50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .dropdown-modal__title{
      font: 700 14px/1.2 'Unbounded', sans-serif;
      color:#fff;
      margin: 2px 2px 0;
    }

    .dropdown-modal__list{
      overflow:auto;
      display:flex;
      flex-direction:column;
      gap:6px;
      padding-top: 4px;
    }

    .dropdown-modal__list a{
      display:block;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
      font: 600 13px/1.2 Inter, system-ui, sans-serif;
      color:#fff;
    }

    .dropdown-modal__list a.active{
      border-color: rgba(144,238,144,.65);
      color:#90ee90;
    }

    html:not([data-page="main"]) .content-modal__dialog{
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      transform: none;
      width: auto;
      max-height: none;
      border-radius: 0;
      padding: 16px 14px calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 18px);
    }

    html:not([data-page="main"]) .content-modal__body{
      grid-template-columns: 1fr;
      overflow: auto;
      max-height: none;
    }

    html:not([data-page="main"]) .ai-modal__dialog{
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      transform: none;
      width: auto;
      max-height: none;
      border-radius: 0;
      padding: 16px 14px calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 18px);
    }

    html:not([data-page="main"]) .ai-gallery{
      grid-template-columns: repeat(2, 1fr);
    }

    html[data-page="main"] header.topbar{
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: auto;
      padding: 10px var(--mob-pad);
      align-items: flex-start;
      background: rgba(0,0,0,.45);
      border-bottom: 1px solid rgba(255,255,255,.10);
      backdrop-filter: blur(14px) saturate(120%);
      -webkit-backdrop-filter: blur(14px) saturate(120%);
      z-index: 9000;
    }

    html[data-page="main"] header.topbar > nav.topbar-right{
      display: none !important;
    }

    html[data-page="main"] header.topbar > div{
      width: 100%;
      flex: 1 1 auto;
      align-items: flex-start;
      white-space: normal;
    }

    html[data-page="main"] .main{
      display: block !important;
      height: auto !important;
      padding: 0 !important;
    }

    html[data-page="main"] #map{
      position: fixed !important;
      inset: 0;
      width: 100%;
      height: 100svh !important;
      border-radius: 0;
      z-index: 0;
      background: #000;
    }

    html[data-page="main"] #map > div{
      margin-top: 0 !important;
    }

    html[data-page="main"] .map-tags{
      display: none !important;
    }

    html[data-page="main"] .home-left-col{
      position: relative !important;
      top: auto !important;
      left: auto !important;
      width: 100% !important;
      height: auto !important;

      display: flex !important;
      flex-direction: column !important;
      gap: 12px;

      margin-top: 40svh;
	  margin-bottom: -40svh;
	  padding: 0 var(--mob-pad) 0!important;

      z-index: 3;
      pointer-events: none;
    }
	
	html[data-page="main"] .page{
	  display: block !important;
	  height: auto !important;
	  min-height: 100svh !important;
	  padding: 0 !important;
	}
	
	html[data-page="main"] #home-about,
	html[data-page="main"] #home-search{
	  display: none !important;
	}

	html[data-page="main"] .home-left-col{
	  gap: 0 !important;
	  padding-bottom: 0 !important;
	}

	html[data-page="main"] #home-feature{
	  order: 1 !important;
	  margin: 0 !important;
	}

    html[data-page="main"] .home-pane{
      pointer-events: auto;
      border-radius: 16px;
      padding: 12px;
      width: 100%;
    }

    /* порядок */
    html[data-page="main"] #home-about{
      order: 1;
      grid-row: auto;
    }

    html[data-page="main"] #home-search{
      order: 2;
      position: relative !important;
      top: auto !important;
      right: auto !important;
      bottom: auto !important;
      width: 100% !important;
      max-width: none !important;
      z-index: auto;
      margin: 0;
      padding: 10px 12px;
    }

    html[data-page="main"] #home-feature{
      order: 3;
      grid-row: auto;
      height: auto !important;
      min-height: 0;
      padding: 0;
    }

    html[data-page="main"] #home-about .author{
      grid-template-columns: 68px 1fr;
      gap: 10px;
      align-items: start;
    }

    html[data-page="main"] #home-about .author__avatar{
      width: 68px;
      height: 68px;
    }

    html[data-page="main"] #home-about .author__name{
      font-size: 13px;
      line-height: 1.2;
    }

    html[data-page="main"] #home-about .author__stats{
      font-size: 11px;
      line-height: 1.35;
      opacity: .92;
    }

    html[data-page="main"] #home-about .author__years{
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 2px;
      font-size: 11px;
      line-height: 1.2;
    }

    html[data-page="main"] #home-about .shift-long{
      display: none;
    }

    html[data-page="main"] #home-about .about__toggle,
    html[data-page="main"] #home-about .about-link{
      font-size: 10px;
      padding: 4px 8px;
      border-radius: 999px;
    }

    html[data-page="main"] #home-about .about__text{
      font-size: 12.5px;
      line-height: 1.45;
      -webkit-line-clamp: 6;
      max-height: 8.8em;
    }

    /* Search block */
    html[data-page="main"] #home-search .search-row{
      grid-template-columns: 44px 1fr;
      gap: 8px;
      align-items: center;
    }

    html[data-page="main"] #home-search .siri-btn{
      width: 44px;
      height: 44px;
    }

    html[data-page="main"] #home-search .tag-search input{
      height: 40px;
      font-size: 12px;
      padding: 0 12px;
    }

    html[data-page="main"] #home-search .tag-dropdown{
      top: calc(100% + 8px) !important;
      bottom: auto !important;
      transform-origin: top center !important;
      max-height: min(42svh, 280px);
      z-index: 120;
    }

    html[data-page="main"] #home-feature .feature-slider{
      height: min(58svh, 500px);
      min-height: 260px;
	  
	  height: min(46svh, 400px); /* было 58svh / 500px */
	    min-height: 240px;         /* было 300px */
	  
      border-radius: 14px;
    }

    html[data-page="main"] #home-feature .feature-slide{
      grid-template-rows: minmax(150px, 48%) minmax(0,1fr);
      padding: 10px;
      gap: 10px;
    }

    html[data-page="main"] #home-feature .feature-media{
      border-radius: 10px;
    }

    html[data-page="main"] #home-feature .feature-title{
      font-size: 15px !important;
      line-height: 1.1;
    }

    html[data-page="main"] #home-feature .feature-sub{
      font-size: 12px !important;
      line-height: 1.2;
    }

    html[data-page="main"] #home-feature .feature-desc{
      font-size: 12px !important;
      line-height: 1.4;
      margin: 0;
      max-height: 5.6em;
      overflow: hidden !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
    }

    html[data-page="main"] #home-feature .feature-nav{
      padding: 0 10px 10px;
      gap: 10px;
    }

    html[data-page="main"] #home-feature .controls{
      gap: 8px;
      padding-right: 0;
    }

    html[data-page="main"] #home-feature .counter{
      min-width: 48px;
      font-size: 12px;
    }

    html[data-page="main"] #home-feature button.circle{
      width: 26px;
      height: 26px;
    }

    html[data-page="main"] #home-about.is-overlay{
      position: fixed !important;
      left: 8px !important;
      right: 8px !important;
      top: 8px !important;
      bottom: calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 10px) !important;
      width: auto !important;
      height: auto !important;
      max-height: none !important;

      display: grid !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: auto auto 1fr !important;
      grid-template-areas:
        "hero"
        "left"
        "right" !important;

      gap: 10px !important;
      padding: 12px !important;
      border-radius: 14px !important;
      overflow: hidden !important;
      z-index: 96000 !important;
      background: rgba(0,0,0,.82) !important;
    }

    html[data-page="main"] #home-about.is-overlay.has-extra{
      width: auto !important;
      grid-template-columns: 1fr !important;
      grid-template-areas:
        "hero"
        "left"
        "right" !important;
    }

    html[data-page="main"] #home-about.is-overlay .about-hero{
      display: block;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      overflow: hidden;
    }

    html[data-page="main"] #home-about.is-overlay .about-col{
      overflow: auto;
      min-height: 0;
      font-size: 13px;
      line-height: 1.45;
      padding-right: 2px;
    }

    html[data-page="main"] #home-about.is-overlay .about-col p{
      margin: 0 0 .75em;
    }

    html[data-page="main"] #home-about.is-overlay .hero-thumbs{
      display: none;
    }

    html[data-page="main"] #home-about.is-overlay .about__close{
      top: 8px;
      right: 8px;
      width: 34px;
      height: 34px;
    }

    html[data-page="photo"] footer.photo-footer{
      display:none !important;
    }

	html[data-page="photo"] .left{
	  order: 1;
	  flex: 0 0 auto;
	  width: 100%;
	  height: auto;              /* вместо fixed height */
	  aspect-ratio: 1 / 1;       /* квадрат */
	  border-radius: 14px;
	  overflow: hidden;
	}
	
	html[data-page="photo"] .photo-wrap{
	  width: 100%;
	  height: 100%;
	  border-radius: inherit;
	  overflow: hidden;
	  position: relative;
	}

	html[data-page="photo"] .photo-wrap .photo{
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
	  object-position: center;
	  cursor: zoom-in;
	}

	html[data-page="photo"] .thumbs{
	  order: 2;
	  width: 100%;
	  height: 78px;
	  flex-direction: row;
	  overflow-x: auto;
	  overflow-y: hidden;
	  margin: 0;
	  padding: 2px 0;
	  gap: 8px;
	  border-radius: 14px;
	  background: rgba(255,255,255,.02);

	  -webkit-overflow-scrolling: touch;
	  overscroll-behavior-x: contain;
	  scroll-snap-type: x mandatory;

	  scrollbar-width: none;
	  -ms-overflow-style: none;
	}
	
	html[data-page="photo"] .thumbs::-webkit-scrollbar{
	  display: none;
	  width: 0;
	  height: 0;
	}

	html[data-page="photo"] .thumbs a,
	html[data-page="photo"] .thumbs .top-map{
	  flex: 0 0 auto;
	  scroll-snap-align: start;
	  scroll-snap-stop: always;
	}

	html[data-page="photo"] .thumbs img{
	  width: 94px;
	  height: 70px;
	  aspect-ratio: auto;
	  object-fit: cover;
	}

	html[data-page="photo"] .right{
	  order: 3;
	  flex: 0 0 auto;
	  overflow: visible;
	  gap: 10px;
	  padding-bottom: 0;
	}

	html[data-page="photo"] .right::after{
	  content: "";
	  display: block;
	  flex: 0 0 calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 26px);
	  width: 100%;
	  pointer-events: none;
	}

	html[data-page="photo"] .right > :last-child{
	  margin-bottom: 8px !important;
	}

    html[data-page="photo"] .top-map{
      height: 200px;
      min-height: 200px;
      max-height: none;
      border-radius: 14px;
    }

    html[data-page="photo"] .wrap.top-sections{
      overflow: visible;
      text-align: left;
    }

    html[data-page="photo"] .right .top.pp{
      margin-top: 0;
    }

    html[data-page="photo"] .right > .top-map{
      display:none !important;
    }

	html[data-page="photo"] .thumbs .top-map{
	  flex: 0 0 auto;
	  width: 94px;
	  height: 70px;
	  border-radius: 10px;
	  overflow: hidden;
	  position: relative;
	  background: rgba(255,255,255,.03);
	  border: 1px solid rgba(255,255,255,.10);
	}
	
    html[data-page="photo"] .thumbs .top-map .wrap,
    html[data-page="photo"] .thumbs .top-map #map{
      height: 100%;
      width: 100%;
    }
	
	html[data-page="photo"] .top-map .map-thumb-open{
	  position:absolute;
	  inset:0;
	  border:0;
	  background: transparent;
	  cursor: pointer;
	}

    html[data-page="photo"] .thumbs .top-map #map{
      pointer-events: none;
    }

    html[data-page="photo"] .thumbs .top-map .gmfix{
      display:none;
    }

    html[data-page="photo"] .top-map .map-thumb-open{
      position:absolute;
      inset:0;
      border:0;
      background: transparent;
      cursor: pointer;
    }

	html[data-page="photo"] .top-map .map-thumb-open::after{
	  content:"MAP";
	  position:absolute;
	  left:6px;
	  bottom:6px;
	  font: 800 9px/1 Inter, system-ui, sans-serif;
	  padding: 5px 7px;
	  border-radius: 999px;
	  background: rgba(0,0,0,.55);
	  border: 1px solid rgba(255,255,255,.14);
	  color:#fff;
	  backdrop-filter: blur(10px);
	  -webkit-backdrop-filter: blur(10px);
	}

body.map-fullscreen-open .top-map{
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  z-index: 98000 !important;
  background: rgba(0,0,0,.92);
}

body.map-fullscreen-open .top-map #map{
  pointer-events: auto;
}

body.map-fullscreen-open .top-map .map-thumb-open{
  display:none;
}

body.map-fullscreen-open .top-map .map-modal-close{
  display:flex;
}

html[data-page="photo"] .top-map .map-modal-close{
  display:none;
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.55);
  color:#fff;
  font: 900 18px/1 Inter, system-ui, sans-serif;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* приятнее горизонтальный drag у ленты миниатюр */
html[data-page="photo"] .thumbs{
  touch-action: pan-x;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
}

html[data-page="photo"] .thumbs:active{
  cursor: grabbing;
}

/* чуть аккуратнее карточки миниатюр */
html[data-page="photo"] .thumbs a img,
html[data-page="photo"] .thumbs .top-map{
  border-radius: 10px;
}

html[data-page="photo"] .thumbs a{
  display: block;
  line-height: 0;
}

html[data-page="photo"] .thumbs a.active img,
html[data-page="photo"] .thumbs a[aria-current="true"] img{
  outline: 2px solid rgba(255,255,255,.38);
  outline-offset: 0;
}

	@media (max-width: 380px){
	  html[data-page="photo"] .thumbs{
	    height: 72px;
	    gap: 7px;
	  }

	  html[data-page="photo"] .thumbs img,
	  html[data-page="photo"] .thumbs .top-map{
	    width: 88px;
	    height: 66px;
	  }
  }
}







