.gallery {
  position: relative;
  z-index: 1;
  background-color: #FFF4DC;
  padding-top: 72px;
  padding-bottom: 214px;
  margin-top: -1px;
}

.gallery::after {
  content: "";
  position: absolute;
  z-index: -2;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../img/gallery-bg1.webp") center repeat;
  height: 812px;
}

.gallery::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -1px;
  left: 0;
  right: 0;
  background: url("../img/gallery-bg2.svg") center repeat;
  height: 229px;
}

.gallery__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-right: 96px;
}

.gallery__wrap1 {
  width: calc(100% - 705px);
}

.gallery__wrap1 .title1 {
  margin-bottom: 36px;
}

.gallery__text {
  font-weight: 500;
}

.gallery__text p {
  margin-bottom: 18px;
}

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

.gallery__wrap2 {
  max-width: 504px;
  width: 100%;
}

.gallery__slider {
  position: relative;
}

.gallery-item {
  cursor: pointer;
}

.gallery-item__img-wrap {
  overflow: hidden;
  position: relative;
  padding-top: 145%;
  border-radius: 32px;
}

.gallery-item__img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

@media (max-width: 1500px) {
  .gallery__container {
    padding-right: 0;
  }

  .gallery__wrap1 {
    width: calc(100% - 550px);
  }
}

@media (max-width: 1200px) {
  .gallery__wrap1 {
    width: 100%;
    margin-bottom: 24px;
  }

  .gallery__wrap2 {
    max-width: none;
  }
}

@media (max-width: 750px) {
  .gallery {
    z-index: 2;
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .gallery::after {
    display: none;
  }

  .gallery::before {
    bottom: auto;
    top: 100%;
    height: 42px;
    background-image: url("../img/gallery-bg2-mob.svg");
  }

  .gallery__wrap1 .title1 {
    margin-bottom: 4px;
  }

  .gallery__text p {
    margin-bottom: 10px;
  }

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

@media (hover: hover) {
  .gallery-item:hover .gallery-item__img-wrap img {
    transform: scale(1.03);
  }
}