@layer controller {
  
}

@media (max-width: 800px){

  html[data-page="citygallery"] .page{
    padding-top: 10px;
  }

  html[data-page="citygallery"] .main{
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto !important;
    min-height: 0;
  }

  html[data-page="citygallery"] .left.map-section{
    order: 1;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
  }

  html[data-page="citygallery"] .left.map-section #map{
    width: 100%;
    height: 34svh !important;
    min-height: 188px;
    max-height: 320px;
    border-radius: 16px;
    overflow: hidden;
  }

  html[data-page="citygallery"] .right{
    order: 2;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
  }

  html[data-page="citygallery"] .right > .top,
  html[data-page="citygallery"] .right > .bottom{
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-page="citygallery"] .right .top .wrap.top-sections{
    border-radius: 12px;
    padding: 12px;
  }

  html[data-page="citygallery"] .right .section-title{
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.05;
  }

  html[data-page="citygallery"] .right .section-text{
    font-size: 14px;
    line-height: 1.5;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-page="citygallery"] aside{
    order: 3;
    flex: 0 0 auto !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 12px 12px !important;
  }

  html[data-page="citygallery"] aside > div,
  html[data-page="citygallery"] aside > div > div{
    height: auto !important;
    max-height: none !important;
  }

  html[data-page="citygallery"] aside > div > div{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  html[data-page="citygallery"] aside .gallery-card{
    margin: 0;
    min-width: 0;
  }

  html[data-page="citygallery"] aside .gallery-row{
    gap: 10px;
    padding: 2px 0;
    align-items: flex-start;
  }

  html[data-page="citygallery"] aside .gallery-thumb{
    width: 59px;
    height: 44px;
    margin-right: 0;
    flex-shrink: 0;
  }

  html[data-page="citygallery"] aside .gallery-info{
    min-width: 0;
  }

  html[data-page="citygallery"] aside .gallery-name{
    font-size: 13px;
    line-height: 1.28;
    max-height: 3.84em;
    -webkit-line-clamp: 3;
  }

  html[data-page="citygallery"] aside .gallery-meta{
    font-size: 10px;
    line-height: 1.35;
    margin-top: 3px;
  }

  html[data-page="citygallery"] .citygallery-adv-mobile{
    order: 4;
    margin: 0 12px 0 !important;
  }

  html[data-page="citygallery"] .citygallery-adv-mobile .wrap.middle{
    border-radius: 12px;
    min-height: 96px;
  }
}
