.gallery {
  position: relative;
  z-index: 1;
  padding-top: 115px;
  padding-bottom: 127px;
  background-color: #fff4dc;
}

.gallery__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 363px;
  background: url("../img/gallery-bg1.webp") center repeat;
}

.gallery__slider {
  position: relative;
}

.gallery-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.gallery-item__wrap1 {
  max-width: 885px;
  width: 100%;
  padding: 80px 0;
}

.gallery-item__title {
  font-size: 120px;
  letter-spacing: -0.02em;
  margin-bottom: 38px;
}

.gallery-item__text {
  font-weight: 500;
}

.gallery-item__text p {
  margin-bottom: 15px;
}

.gallery-item__text p:last-child {
  margin-bottom: 0;
}

.gallery-item__wrap2 {
  max-width: 505px;
  width: 100%;
}

.gallery-item__img {
  position: relative;
  padding-top: 144%;
}

.gallery-item__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

@media (max-width: 1500px) {
  .gallery-item__wrap1 {
    width: calc(100% - 525px);
    max-width: none;
  }
}

@media (max-width: 1200px) {
  .gallery {
    padding-top: 200px;
  }

  .gallery__slider {
    padding-bottom: 70px;
  }

  .gallery__slider .slider-nav1 {
    bottom: 0;
  }

  .gallery-item__wrap1 {
    padding: 0;
    width: 100%;
    margin-bottom: 24px;
  }

  .gallery-item__title {
    font-size: 80px;
  }

  .gallery-item__wrap2 {
    max-width: 720px;
  }
}

@media (max-width: 750px) {
  .gallery {
    padding-top: 178px;
    padding-bottom: 23px;
  }

  .gallery__bg {
    height: 232px;
    background-image: url("../img/gallery-bg1-mob.webp");
  }

  .gallery__slider {
    padding-bottom: 55px;
  }

  .gallery-item__title {
    font-size: 56px;
    margin-bottom: 4px;
  }

  .gallery-item__img img {
    border-radius: 16px;
  }
}