.gallery-section-template .gallery-tabs {
  overflow-y: auto;
  border-bottom: 1px solid rgba(155, 156, 158, 0.2);
  margin: 35px 0;
  padding-right: 15px;
  padding-left: 15px;
  text-align: center;
}
.gallery-section-template .gallery-tabs .gallery-tabs-list {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 15px 0;
}
.gallery-section-template .gallery-tabs .gallery-tabs-list .button {
  outline: 0;
}
.gallery-section-template .gallery-tabs .gallery-tabs-list .button.active {
  pointer-events: none;
}
.gallery-section-template .gallery-tabs .gallery-tabs-list .button:not(.active):not(:hover) {
  border-color: transparent;
  color: #9b9c9e;
}
.gallery-section-template .gallery-tabs .gallery-tabs-list .button:not(:last-child) {
  margin-right: 10px;
}
.gallery-section-template .gallery {
  margin-top: 35px;
}
.gallery-section-template .gallery .gallery-col .gallery-item {
  border-radius: 5px;
  position: relative;
  width: 100%;
  height: 390px;
  display: block;
}
.gallery-section-template .gallery .gallery-col .gallery-item img {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
width: 100%;
  height: 100%; /* Задайте нужную вам фиксированную высоту */
  object-fit: cover; /* Картинка заполнит блок, сохраняя пропорции, лишнее обрежется */
  display: block;
}
.gallery-section-template .gallery .gallery-col .gallery-item .gallery-hover {
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 1;
}
.gallery-section-template .gallery .gallery-col .gallery-item:hover .gallery-hover {
  opacity: 0.7;
}
.gallery-section-template .gallery .gallery-col .gallery-item:not(.no-full-image) {
  cursor: pointer;
}
.gallery-section-template .gallery .gallery-col .gallery-item:not(:last-child) {
  margin-bottom: 30px;
}
.gallery-section-template .gallery .owl-nav .owl-prev {
  left: -50px;
}
.gallery-section-template .gallery .owl-nav .owl-next {
  right: -50px;
}
.gallery-section-template .gallery .owl-dots {
  margin-top: 30px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  height: auto;
}
@media (max-width: 1360px) {
  .gallery-section-template .gallery .owl-nav {
    display: none;
  }
}
