.gallery-block {
  padding: 100px 0px 50px;
}
.gallery-block .title {
  margin-bottom: 40px;
}
.gallery-block .gallery {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
  flex-direction: row;
  flex-align: stretch;
  align-items: stretch;
  flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
}
.gallery-block .gallery.odd {
  -webkit-box-pack: start;
  -moz-box-pack: start;
  -ms-flex-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}
.gallery-block .gallery.odd .gallery-item {
  margin-right: 30px;
}
.gallery-block .gallery.odd .gallery-item:last-child {
  margin-right: 0px;
}
.gallery-block .gallery.even {
  -webkit-box-pack: justify;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.gallery-block .gallery .gallery-item {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  max-height: 360px;
  aspect-ratio: 1/1;
  width: calc(25% - 15px);
  margin-bottom: 30px;
  max-width: 360px;
  order: 2;
}
.gallery-block .gallery .gallery-item:nth-child(7n) {
  margin-right: 0px;
}
.gallery-block .gallery .gallery-item:nth-child(10n) {
  margin-right: 0px;
}
.gallery-block .gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}
.gallery-block .gallery .gallery-item.text-item {
  width: calc(50% - 15px);
  max-width: none;
  border-radius: 0px;
  height: auto;
  aspect-ratio: auto;
  margin-right: 0px;
}
.gallery-block .gallery .gallery-item.text-item .text__holder {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  flex-align: start;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 60px;
  background-color: #feffff;
}
.gallery-block .gallery .gallery-item.text-item .text__holder .gallery-title {
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  color: #1d1d1b;
  margin-bottom: 20px;
}
.gallery-block .gallery .gallery-item.text-item .text__holder .descr {
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  color: #606060;
}
.gallery-block .gallery .gallery-item.text-item.full {
  width: 100%;
  order: 1;
}
.gallery-block .gallery .gallery-item.text-item.full .text__holder {
  height: auto;
}
.gallery-block .gallery .gallery-item.text-item.one {
  width: calc(75% - 15px);
}
@media screen and (max-width: 1221px) {
  .gallery-block .gallery.odd {
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
  .gallery-block .gallery.odd .gallery-item {
    margin-right: 0px;
  }
  .gallery-block .gallery .gallery-item {
    width: calc((100% / 3) - 15px);
  }
  .gallery-block .gallery .gallery-item.two {
    width: calc(50% - 15px);
  }
  .gallery-block .gallery .gallery-item.text-item {
    order: 1;
    width: 100%;
    max-height: none;
  }
  .gallery-block .gallery .gallery-item.text-item.one {
    width: 100%;
  }
}
@media screen and (max-width: 767px) {
  .gallery-block .gallery .gallery-item {
    width: calc(50% - 15px);
  }
  .gallery-block .gallery .gallery-item.text-item .text__holder {
    padding: 30px;
  }
  .gallery-block .gallery .gallery-item.text-item .text__holder .gallery-title {
    font-size: 24px;
  }
  .gallery-block .gallery .gallery-item.text-item .text__holder .descr {
    font-size: 16px;
  }
}
@media screen and (max-width: 578px) {
  .gallery-block .gallery .gallery-item {
    width: 100%;
    margin: 0 auto 30px;
  }
  .gallery-block .gallery .gallery-item:nth-child(7n),
  .gallery-block .gallery .gallery-item:nth-child(10n) {
    margin: auto;
  }
  .gallery-block .gallery .gallery-item.two {
    width: 100%;
  }
}
