.content_page_title .title_branches_content p {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  margin: 0 0 15px;
}
.gallery_sub_section {
  padding: 80px 0 40px;
}
.gallery_sub_section .gallery_sub_block {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}
.gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 32%;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0 9px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery_sub_section .gallery_sub_block .gallery_sub_item__square:after {
  content: '';
  display: block;
  padding-top: 100%;
}
.gallery_sub_section
  .gallery_sub_block
  .gallery_sub_item__square
  .gallery_sub_item__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-content: center;
}
.gallery_sub_section
  .gallery_sub_block
  .gallery_sub_item__square
  .gallery_sub_item__content
  img {
  width: 97%;
  height: 97%;
  object-fit: cover;
  transition: transform 0.4s ease;
  box-shadow: 0px 5px 12px -8px rgba(0,0,0,0.57);
  -webkit-box-shadow: 0px 5px 12px -8px rgba(0,0,0,0.57);
  -moz-box-shadow: 0px 5px 12px -8px rgba(0,0,0,0.57);
}
.gallery_sub_section
  .gallery_sub_block
  .gallery_sub_item__square:hover
  .gallery_sub_item__content
  img {
  transform: scale(1.2);
}

@media screen and (max-width: 1400px) {
  .gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
    max-width: 31%;
    margin: 0 13px 40px;
  }
}
@media screen and (max-width: 1180px) {
  .gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
    max-width: 30%;
    margin: 0 15px 40px;
  }
  .content_page_title .titile_branches h1 {
    font-size: 26px;
  }
}
@media screen and (max-width: 992px) {
  .gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
    margin: 0 12px 20px;
  }
}
@media screen and (max-width: 767px) {
  .gallery_sub_section {
    padding: 60px 0 40px;
  }
  .gallery_sub_section .gallery_sub_block {
    justify-content: space-between;
  }
  .gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
    max-width: 48%;
    margin: 0 0 20px;
  }
}
@media screen and (max-width: 568px) {
  .content_page_title .titile_branches h1 {
    font-size: 24px;
  }
  .content_page_title .titile_branches object {
    max-width: 110px;
    width: 100%;
  }
  .content_page_title .title_branches_content p {
    margin: 0 0 5px;
  }
}
@media screen and (max-width: 415px) {
  .gallery_sub_section .gallery_sub_block .gallery_sub_item__square {
    max-width: 100%;
  }
}
