.gallery-intro {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--green-dark);
}

.gallery-intro > img,
.gallery-intro-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-intro > img {
  object-fit: cover;
  object-position: center 58%;
}

.gallery-intro-shade {
  background:
    linear-gradient(90deg, rgba(29, 27, 29, .82) 0%, rgba(29, 27, 29, .48) 45%, rgba(29, 27, 29, .06) 78%),
    linear-gradient(0deg, rgba(29, 27, 29, .64), transparent 58%);
}

.gallery-intro-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 58px;
}

.gallery-intro h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-family: Oswald, sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .98;
  text-transform: uppercase;
}

.gallery-intro-copy > p:last-child {
  max-width: 590px;
  margin: 0;
  color: #e7e6e5;
  font-size: 1.05rem;
}

.gallery-page {
  background: #f4f4f2;
}

.gallery-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.gallery-cards figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(40, 35, 41, .09);
}

.gallery-cards img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.gallery-cards figure:nth-child(4) img,
.gallery-cards figure:nth-child(7) img {
  object-position: center 58%;
}

.gallery-cards figure:nth-child(6) img {
  object-position: left bottom;
}

.gallery-cards figcaption {
  display: grid;
  gap: 5px;
  padding: 22px 24px 25px;
  border-top: 4px solid var(--green);
}

.gallery-cards figcaption strong {
  color: var(--green);
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-cards figcaption span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .gallery-intro {
    min-height: 440px;
  }

  .gallery-intro > img {
    object-position: 62% center;
  }

  .gallery-intro-shade {
    background:
      linear-gradient(90deg, rgba(29, 27, 29, .78), rgba(29, 27, 29, .18)),
      linear-gradient(0deg, rgba(29, 27, 29, .78), transparent 72%);
  }

  .gallery-intro-copy {
    padding-bottom: 36px;
  }

  .gallery-page {
    padding: 48px 0;
  }

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

  .gallery-cards img {
    height: min(72vw, 440px);
  }

  .gallery-cards figcaption {
    padding: 16px 18px 18px;
  }
}
