/* Сетка с элементами галереи и встроенной формой */
.gallery-grid-items-wrap {
  /* В пределаъ этого блока позиционирует себя quickform */
  position: relative;
}
.gallery-grid-items {
  overflow: hidden;
  width: 1200px;
  min-height: 705px;
  /* 235px * 3 место под форму */
  margin: 0 auto;
}
@media (max-width: 567px) {
  .gallery-grid-items {
    width: auto;
    min-height: 0;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-grid-items {
    width: auto;
    min-height: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid-items {
    width: auto;
    min-height: calc(100vw / 768.0 * 924.0 / 16.0 * 12);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid-items {
    width: auto;
    min-height: calc(100vw / 1024.0 * 668.0 / 12.0 * 10);
  }
}
.gallery-grid-item {
  /* Цвета и бордеры не добавляем, потому что этот класс используется также для заглушки */
  display: block;
  float: left;
  position: relative;
  overflow: hidden;
  /* reset <a> style */
  color: inherit;
  text-decoration: none;
  width: 300px;
  height: 235px;
}
@media (max-width: 567px) {
  .gallery-grid-item {
    width: calc(100vw / 6.0 * 6);
    height: calc(100vw / 320.0 * 460.0 / 8.0 * 3);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-grid-item {
    width: calc(100vw / 12.0 * 6);
    height: calc(100vw / 568.0 * 320.0 / 8.0 * 4);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid-item {
    width: calc(100vw / 12.0 * 6);
    height: calc(100vw / 768.0 * 924.0 / 16.0 * 4);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid-item {
    width: calc(100vw / 16.0 * 4);
    height: calc(100vw / 1024.0 * 668.0 / 12.0 * 5);
  }
  .gallery-grid-item.item-tl-last-right {
    float: right;
  }
}
.gallery-grid-item-image {
  display: block;
  vertical-align: top;
  border: 0;
  width: 100%;
}
.gallery-grid-item-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  text-align: center;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: 'PT Sans', Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
  /* text valign */
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 59px;
}
@media (max-width: 567px) {
  .gallery-grid-item-name {
    min-height: calc(100vw / 320.0 * 460.0 / 8.0);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-grid-item-name {
    min-height: calc(100vw / 568.0 * 320.0 / 8.0);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid-item-name {
    min-height: calc(100vw / 768.0 * 924.0 / 16.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid-item-name {
    min-height: calc(100vw / 1024.0 * 668.0 / 12.0);
  }
}
.gallery-grid-item:focus .gallery-grid-item-name,
.gallery-grid-item:hover .gallery-grid-item-name {
  background-color: rgba(0, 0, 0, 0.65);
}
@supports (object-fit: cover) {
  .gallery-grid-item-image {
    height: 100%;
    object-fit: cover;
  }
}
/* Заглушки под форму быстрого заказа */
@media (max-width: 567px) {
  .gallery-grid-item.item-stub-desktop {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-grid-item.item-stub-desktop {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid-item.item-stub-desktop {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid-item.item-stub-desktop {
    display: none;
  }
}
.gallery-grid-item.item-stub-tablet-portrait {
  display: none;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid-item.item-stub-tablet-portrait {
    display: block;
  }
}
.gallery-grid-item.item-stub-tablet-landscape {
  display: none;
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid-item.item-stub-tablet-landscape {
    display: block;
  }
}
/* Кнопка подгрузки элементов */
.gallery-category-morebtn {
  position: relative;
  display: block;
  border-top: 1px solid #ccc;
  padding: 0 59px;
  font-size: 16px;
  text-align: center;
  /* reset <a> style */
  background-color: white;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  height: 59px;
  line-height: 59px;
}
.gallery-category-morebtn .pm-button {
  width: 59px;
  height: inherit;
  line-height: inherit;
  position: absolute;
  right: 0;
  top: 0;
}
.gallery-category-morebtn.state-loading {
  pointer-events: none;
}
.gallery-category-morebtn.state-default .if-state-loading {
  display: none;
}
.gallery-category-morebtn.state-loading .if-state-default {
  display: none;
}
/* ФОРМА БЫСТРОГО ЗАКАЗА НА ГЛАВНОЙ */
.quickform.grid-gallery-index {
  position: absolute;
  right: 0;
  top: 235px;
  width: 300px;
}
@media (max-width: 567px) {
  .quickform.grid-gallery-index {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100vw / 6.0 * 6);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .quickform.grid-gallery-index {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100vw / 12.0 * 12);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .quickform.grid-gallery-index {
    top: calc(100vw / 768.0 * 924.0 / 16.0 * 4);
    width: calc(100vw / 12.0 * 6);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .quickform.grid-gallery-index {
    position: absolute;
    top: calc(100vw / 1024.0 * 668.0 / 12.0 * 5);
    right: auto;
    left: calc(100vw / 16.0 * 4);
    width: calc(100vw / 16.0 * 8);
    height: calc(100vw / 1024.0 * 668.0 / 12.0 * 5);
    margin: 0 auto;
  }
}
@media (min-width: 1200px) {
  .quickform.grid-gallery-index .quickform-fields {
    float: none;
    width: auto;
    margin-top: 235px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .quickform.grid-gallery-index .quickform-fields {
    float: none;
    width: auto;
    margin-top: calc(100vw / 768.0 * 924.0 / 16.0 * 4);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .quickform.grid-gallery-index .quickform-fields {
    width: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
}
@media (min-width: 1200px) {
  .quickform.grid-gallery-index .quickform-dropzone-header {
    float: none;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .quickform.grid-gallery-index .quickform-dropzone-header {
    float: none;
    width: auto;
    height: calc(100vw / 768.0 * 924.0 / 16.0 * 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .quickform.grid-gallery-index .quickform-dropzone-header {
    float: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 50%;
    width: auto;
  }
}
.quickform.grid-gallery-index .quickform-dropzone {
  font-size: 13px;
  color: inherit;
  padding: 25px;
}
@media (min-width: 1200px) {
  .quickform.grid-gallery-index .quickform-dropzone {
    height: 180px;
    float: none;
    width: auto;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .quickform.grid-gallery-index .quickform-dropzone {
    height: calc(100vw / 768.0 * 924.0 / 16.0 * 3);
    float: none;
    width: auto;
    position: absolute;
    top: calc(100vw / 768.0 * 924.0 / 16.0 * 1);
    left: 0;
    right: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .quickform.grid-gallery-index .quickform-dropzone {
    float: none;
    position: absolute;
    right: 0;
    top: 0;
    left: 50%;
    width: auto;
    height: calc(100vw / 1024.0 * 668.0 / 12.0 * 2);
    padding: 0;
    z-index: 1;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .quickform.grid-gallery-index .qi-fio {
    width: 50%;
  }
}
@media (min-width: 1200px) {
  .quickform.grid-gallery-index .qi-phone,
  .quickform.grid-gallery-index .qi-email {
    height: 62px;
  }
}
@media (min-width: 1200px) {
  .quickform.grid-gallery-index .qi-captcha-img,
  .quickform.grid-gallery-index .qi-captcha {
    height: 63px;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
}
/* Краткое описание, только на десктопе */
.gallery-item-shortdesc {
  position: absolute;
  right: 50px;
  top: 130px;
  bottom: 0;
  /* height is set in shop-product-gallery */
  width: 200px;
}
.gallery-item-shortdesc.no-header {
  top: 48px;
}
@media (max-width: 567px) {
  .gallery-item-shortdesc {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-shortdesc {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-shortdesc {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-shortdesc {
    display: none;
  }
}
.gallery-item-shortdesc:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 148px;
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0), white 60%, white 100%);
  /* rgba instead of "transparent" for safari */
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), white 60%, white 100%);
  background: -o-linear-gradient(top, rgba(255, 255, 255, 0), white 60%, white 100%);
  background: -ms-linear-gradient(top, rgba(255, 255, 255, 0), white 60%, white 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white 60%, white 100%);
  pointer-events: none;
}
.gallery-item-shortdesc-title {
  font-size: 22px;
  font-weight: inherit;
}
.gallery-item-shortdesc-text {
  margin-top: 22px;
  white-space: pre-wrap;
  hyphens: auto;
}
.gallery-item-shortdesc.no-header .gallery-item-shortdesc-text {
  margin-top: 0;
}
/* ГАЛЕРЕЯ ГАЛЕРЕИ (простите за каламбур) */
/* Внешний слой, двигается влево-вправо на десктопе */
.gallery-item-slider-wrap {
  overflow: hidden;
  min-height: 480px;
  height: 500px;
  height: calc(100vh - 97px);
  /* height of fixed-header */
  max-height: 1200px;
  position: relative;
  left: -300px;
}
@media (min-width: 1200px) {
  .gallery-item-slider-wrap {
    /* поддержка @media браузерами почти совпадает с поддержкой transform; */
    /* оборачивая CSS в @media, мы типа определяем, умеет ли браузер в transform */
    transition-property: transform, -webkit-transform;
    transition-duration: 250ms;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
}
@media (max-width: 567px) {
  .gallery-item-slider-wrap {
    min-height: 0;
    position: relative;
    left: 0;
    height: calc(100vw / 320.0 * 460.0 / 8.0 * 4);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-slider-wrap {
    min-height: 0;
    position: relative;
    left: 0;
    height: calc(100vw / 568.0 * 320.0 / 8.0 * 6);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-slider-wrap {
    min-height: 0;
    position: relative;
    left: 0;
    height: calc(100vw / 768.0 * 924.0 / 16.0 * 10);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-slider-wrap {
    min-height: 0;
    position: relative;
    left: 0;
    height: calc(100vw / 1024.0 * 668.0 / 12.0 * 10);
  }
}
.gallery-item.mode-gallery .gallery-item-slider-wrap {
  left: 0;
  /* для браузеров, не умеющих в transform */
}
@media (min-width: 1200px) {
  .gallery-item.mode-gallery .gallery-item-slider-wrap {
    left: -300px;
    -webkit-transform: translateX(300px);
    transform: translateX(300px);
  }
}
/* Внутренний слой, выравнивает содержимое по центру видимой части верхнего слоя */
.gallery-item-slider {
  position: absolute;
  overflow: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  /* reset <ul> style */
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1200px) {
  .gallery-item-slider {
    transition-property: transform, -webkit-transform;
    transition-duration: 250ms;
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
  }
}
@media (min-width: 1200px) {
  .gallery-item.mode-gallery .gallery-item-slider {
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
}
/* Слайды галереи */
.gallery-item-slider > li {
  margin: 0;
  padding: 0;
  text-align: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  transition-property: transform, -webkit-transform;
  /* transition-duration is set by js */
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
  /* gallery-bg-custom is inline css */
}
.gallery-item-slider > li.gallery-bg-black {
  background-color: black;
}
.gallery-item-slider > li.gallery-bg-white {
  background-color: white;
}
.gallery-item-slider > li.current {
  display: block;
}
.gallery-item-slider > li.prev {
  display: block;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}
.gallery-item-slider > li.next {
  display: block;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}
.gallery-item-slider-image,
.gallery-item-slider-video {
  border: 0;
  display: inline-block;
  vertical-align: top;
  height: 100%;
}
@supports (object-fit: contain) {
  .gallery-item-slider-image {
    /* not video! */
    width: 100%;
    /* may be overridden by django-admin */
    object-fit: contain;
    object-position: center center;
  }
}
/* Верхние кнопки управления страницей */
.gallery-item-top-control {
  position: absolute;
  top: 0;
  right: 300px;
  transition-property: transform, -webkit-transform;
  transition-duration: 250ms;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  overflow: hidden;
  height: 48px;
  line-height: 48px;
}
@media (max-width: 567px) {
  .gallery-item-top-control {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-top-control {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-top-control {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-top-control {
    display: none;
  }
}
.gallery-item.mode-gallery .gallery-item-top-control {
  right: 0;
}
@media (min-width: 1200px) {
  .gallery-item.mode-gallery .gallery-item-top-control {
    right: 300px;
    -webkit-transform: translateX(300px);
    transform: translateX(300px);
  }
}
.gallery-item-slider-togglebtn {
  background-color: #f2eee9;
  background-color: rgba(197, 176, 151, 0.21);
  width: 48px;
  height: inherit;
  line-height: inherit;
  display: block;
  float: left;
  cursor: pointer;
  text-align: center;
}
.gallery-item-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
@media (max-width: 567px) {
  .gallery-item-controls {
    bottom: auto;
    top: calc(100vw / 320.0 * 460.0 / 8.0 * 3);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-controls {
    bottom: auto;
    top: calc(100vw / 568.0 * 320.0 / 8.0 * 5);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-controls {
    bottom: auto;
    top: calc(100vw / 768.0 * 924.0 / 16.0 * 9);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-controls {
    bottom: auto;
    top: calc(100vw / 1024.0 * 668.0 / 12.0 * 9);
  }
}
.gallery-item-controls > li {
  margin: 0;
  padding: 0;
  float: left;
  cursor: pointer;
  font-size: 20px;
  background-color: #999;
  background-color: rgba(160, 160, 160, 0.45);
  font-weight: 400;
  width: 48px;
  height: 48px;
  line-height: 48px;
}
@media (max-width: 567px) {
  .gallery-item-controls > li {
    width: calc(100vw / 6.0);
    height: calc(100vw / 320.0 * 460.0 / 8.0);
    line-height: calc(100vw / 320.0 * 460.0 / 8.0);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-controls > li {
    width: calc(100vw / 12.0);
    height: calc(100vw / 568.0 * 320.0 / 8.0);
    line-height: calc(100vw / 568.0 * 320.0 / 8.0);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-controls > li {
    width: calc(100vw / 12.0);
    height: calc(100vw / 768.0 * 924.0 / 16.0);
    line-height: calc(100vw / 768.0 * 924.0 / 16.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-controls > li {
    width: calc(100vw / 16.0);
    height: calc(100vw / 1024.0 * 668.0 / 12.0);
    line-height: calc(100vw / 1024.0 * 668.0 / 12.0);
  }
}
.gallery-item-controls > li:hover {
  background-color: #888;
  background-color: rgba(160, 160, 160, 0.65);
}
@media (max-width: 567px) {
  .gallery-item-controls-infotogglebtn {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-controls-infotogglebtn {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-controls-infotogglebtn {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-controls-infotogglebtn {
    display: none;
  }
}
/* Кнопка-плюсик разворачивания полной инфы */
.gallery-item-info-togglebtn {
  position: absolute;
  right: 0;
  bottom: 155px;
  cursor: pointer;
}
@media (max-width: 567px) {
  .gallery-item-info-togglebtn {
    display: none;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-info-togglebtn {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-info-togglebtn {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-info-togglebtn {
    display: none;
  }
}
.gallery-item-info-togglebtn.z-index-kostyl {
  z-index: 1;
}
/* Подробная информация, на десктопе раскрывается плюсиком */
.gallery-item-info {
  overflow: hidden;
  background-color: white;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  left: calc(100% + 167px);
  right: -100%;
}
@media (min-width: 1200px) {
  .gallery-item-info {
    transition-property: transform, -webkit-transform;
    transition-duration: 250ms;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
}
@media (max-width: 567px) {
  .gallery-item-info {
    position: static;
    left: 0;
    right: 0;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-info {
    position: static;
    left: 0;
    right: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-info {
    position: static;
    left: 0;
    right: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-info {
    position: static;
    left: 0;
    right: 0;
  }
}
.gallery-item.mode-info .gallery-item-info {
  left: 0;
  /* для браузеров, не умеющих в transform, а также мобильная версия */
  right: 0;
}
@media (min-width: 1200px) {
  .gallery-item.mode-info .gallery-item-info {
    left: 100%;
    left: calc(100% + 167px);
    right: -100%;
    -webkit-transform: translateX(calc(-100% - 167px));
    transform: translateX(calc(-100% - 167px));
  }
}
.gallery-item-desc {
  float: left;
  margin-left: 50px;
  width: 300px;
  height: 100%;
}
@media (max-width: 567px) {
  .gallery-item-desc {
    float: none;
    width: auto;
    margin: 0;
    padding: calc(100vw / 320.0 * 460.0 / 8.0) calc(100vw / 6.0);
    background-color: #f2f2f2;
    min-height: calc(100vw / 320.0 * 460.0 / 8.0 * 2);
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-desc {
    float: none;
    width: auto;
    margin: 0;
    padding: calc(100vw / 568.0 * 320.0 / 8.0) calc(100vw / 12.0);
    background-color: #f2f2f2;
    min-height: calc(100vw / 568.0 * 320.0 / 8.0 * 2);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-desc {
    margin: calc(100vw / 768.0 * 924.0 / 16.0) calc(100vw / 12.0);
    width: calc(100vw / 12.0 * 4);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-desc {
    margin: calc(100vw / 1024.0 * 668.0 / 12.0) calc(100vw / 16.0);
    width: calc(100vw / 16.0 * 7);
  }
}
.gallery-item-desc.full-width {
  float: none;
  width: auto;
  margin-right: 50px;
}
@media (max-width: 567px) {
  .gallery-item-desc.full-width {
    margin: 0;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-desc.full-width {
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-desc.full-width {
    margin: calc(100vw / 768.0 * 924.0 / 16.0) calc(100vw / 12.0);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-desc.full-width {
    margin: calc(100vw / 1024.0 * 668.0 / 12.0) calc(100vw / 16.0);
  }
}
.gallery-item-title-wrap {
  /* Для хитрого позиционирования многострочного заголовка */
  height: 100px;
  line-height: 100px;
}
@media (max-width: 567px) {
  .gallery-item-title-wrap {
    height: auto;
    line-height: inherit;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-title-wrap {
    height: auto;
    line-height: inherit;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-title-wrap {
    height: auto;
    line-height: inherit;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-title-wrap {
    height: auto;
    line-height: inherit;
  }
}
.gallery-item-title {
  font-size: 22px;
  font-weight: inherit;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  /* Хитрое выравнивание многострочного заголовка */
  display: inline-block;
  vertical-align: bottom;
}
.gallery-item-desc-text {
  margin-top: 15px;
  white-space: pre-wrap;
  hyphens: auto;
  height: 65%;
  height: calc(100% - 100px - 55px - 15px);
}
.gallery-item-desc-text.no-header {
  margin-top: 0;
  padding-top: 48px;
  height: calc(100% - 48px - 48px);
}
@media (max-width: 567px) {
  .gallery-item-desc-text {
    height: auto;
    font-size: 14px;
    line-height: 24px;
  }
  .gallery-item-desc-text.no-header {
    padding-top: 0;
    height: auto;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-desc-text {
    height: auto;
    font-size: 14px;
    line-height: 24px;
  }
  .gallery-item-desc-text.no-header {
    padding-top: 0;
    height: auto;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-desc-text {
    height: auto;
    font-size: 14px;
  }
  .gallery-item-desc-text.no-header {
    padding-top: 0;
    height: auto;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-desc-text {
    height: auto;
    font-size: 14px;
  }
  .gallery-item-desc-text.no-header {
    padding-top: 0;
    height: auto;
  }
}
.gallery-item-desc.full-width .gallery-item-desc-text {
  column-count: 3;
  column-fill: auto;
  overflow: hidden;
  /* На случай невлезания четвёртой колонки */
}
@media (max-width: 567px) {
  .gallery-item-desc.full-width .gallery-item-desc-text {
    column-count: 1;
  }
}
@media (min-width: 568px) and (max-width: 767px) {
  .gallery-item-desc.full-width .gallery-item-desc-text {
    column-count: 1;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item-desc.full-width .gallery-item-desc-text {
    column-count: 2;
    column-fill: balance;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-item-desc.full-width .gallery-item-desc-text {
    column-count: 2;
    column-fill: balance;
  }
}
