.gallery {
  background: var(--kz-accent, #cfe2fe);
}
.gallery h2 {
  color: var(--kz-primary, #1e3a5e);
  font-family: var(--kz-font, Gilroy);
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
@media (max-width: 768px) {
  .gallery h2 {
    font-size: 28px;
    text-align: center;
  }
}
.gallery__header {
  display: flex;
  justify-content: space-between;
  padding-right: 64px;
  padding-bottom: 64px;
}
@media (max-width: 768px) {
  .gallery__header {
    padding-bottom: 34px;
  }
}
@media (max-width: 768px) {
  .gallery {
    padding-bottom: 25px;
  }
}
.gallery__buttons {
  display: flex;
  gap: 20px;
}
@media (max-width: 1024px) {
  .gallery__buttons {
    display: none;
  }
}
.gallery__bg {
  border-radius: 56px 56px 0 0;
  padding: 64px 0 64px 64px;
  background: #fff;
}
@media (max-width: 768px) {
  .gallery__bg {
    border-radius: 24px 24px 0 0;
    padding: 25px 25px 25px 25px;
  }
}
.gallery__item {
  display: flex;
  flex-wrap: wrap;
  width: 500px;
  flex: none;
  gap: 20px;
}
.gallery__item--group {
  width: 757px;
}
.gallery__item--group .gallery__img {
  width: 48%;
  height: auto;
}
.gallery__item--group .gallery__img:nth-child(1) {
  width: 37%;
}
.gallery__item--group .gallery__img:nth-child(2) {
  width: 60%;
}
.gallery__item--group .gallery__img:nth-child(3) {
  width: 60%;
}
.gallery__item--group .gallery__img:nth-child(4) {
  width: 37%;
}
.gallery__item--group .gallery__img img {
  height: 279px;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery__img {
  display: flex;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  max-height: 100%;
}
.gallery__img img {
  max-width: 100%;
}
.gallery__wrapper {
  display: inline-flex;
  gap: 20px;
  white-space: nowrap;
  max-width: 100%;
  height: 583px;
  width: 100%;
  overflow-x: scroll;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: transform 0.2s ease-in-out;
}
.gallery__wrapper::-webkit-scrollbar {
  display: none;
}
.gallery .button {
  background: none;
  border: none;
  cursor: pointer;
}
.gallery .button:active {
  opacity: 0.5;
}/*# sourceMappingURL=style.css.map */
/* Одиночная плитка: та же высота и кроп, что у фото в стеках (иначе выпадает из ряда) */
.gallery__item--single {
  height: 100%;
}
.gallery__item--single .gallery__img {
  width: 100%;
  height: 100%;
}
.gallery__item--single .gallery__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
