.masterbig-real-projects-gallery {
  padding: clamp(64px, 7vw, 112px) 0;
  background: #f0f3f0;
}

.masterbig-real-projects-gallery__head {
  max-width: 980px;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.masterbig-real-projects-gallery__head h2 {
  max-width: 18ch;
  margin: 12px 0 22px;
  color: #5e615f;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.masterbig-real-projects-gallery__head > p:last-child {
  max-width: 860px;
  margin: 0;
  color: #52605a;
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  line-height: 1.58;
}

.masterbig-real-projects-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.masterbig-real-projects-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 69, 52, .18);
  background: #fff;
}

.masterbig-real-projects-gallery__item a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.masterbig-real-projects-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe5e1;
  transition: transform .28s ease;
}

.masterbig-real-projects-gallery__item--portrait img {
  object-fit: contain;
}

.masterbig-real-projects-gallery__item a:hover img,
.masterbig-real-projects-gallery__item a:focus-visible img {
  transform: scale(1.018);
}

.masterbig-real-projects-gallery__item figcaption {
  padding: 20px 22px 22px;
  color: #33423d;
  font-size: 1rem;
  line-height: 1.5;
}

.masterbig-real-projects-gallery__item figcaption span {
  display: block;
  margin-top: 10px;
  color: #174534;
  font-weight: 700;
}

@media (max-width: 720px) {
  .masterbig-real-projects-gallery {
    padding: 52px 0;
  }

  .masterbig-real-projects-gallery__head h2 {
    max-width: none;
    font-size: clamp(2rem, 10.5vw, 3.35rem);
    line-height: 1.03;
  }

  .masterbig-real-projects-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .masterbig-real-projects-gallery__item figcaption {
    padding: 18px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masterbig-real-projects-gallery__item img {
    transition: none;
  }
}

