.gallery {
  background: #f7f8f6;
  border-top: 1px solid #e2e5e3;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 65px 0 45px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -4px;
}

.gallery-heading p {
  max-width: 430px;
  margin: 0;
  color: #69716f;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}

.gallery-photo {
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #dfe4e2;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-photo:hover img {
  transform: scale(1.025);
}

@media (max-width: 800px) {
  .gallery-heading {
    display: block;
    margin: 50px 0 30px;
  }

  .gallery-heading h2 {
    font-size: 44px;
    letter-spacing: -3px;
  }

  .gallery-heading p {
    margin-top: 22px;
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-photo img {
    transition: none;
  }
}
