.hero {
  background:
    linear-gradient(90deg, rgba(20, 33, 24, .82), rgba(20, 33, 24, .18)),
    url('../assets/stores/renheng/entrance.webp') center / cover;
}

.photo-story {
  background: var(--cream);
}

.photo-story-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: 38px;
}

.photo-story-head h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.2;
}

.photo-story-head p {
  margin: 0;
  color: #58645b;
  font-size: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.photo-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #d8d0bf;
}

.photo-grid figure:nth-child(1) {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.photo-grid figure:nth-child(2) {
  grid-column: span 4;
  aspect-ratio: 8 / 9;
}

.photo-grid figure:nth-child(3),
.photo-grid figure:nth-child(4),
.photo-grid figure:nth-child(5) {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.photo-grid figure:hover img {
  transform: scale(1.035);
}

.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 18px 14px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  background: linear-gradient(transparent, rgba(15, 23, 17, .72));
}

@media (max-width: 760px) {
  .photo-story-head {
    grid-template-columns: 1fr;
  }

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

  .photo-grid figure:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .photo-grid figure:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid figure:nth-child(n) {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }
}
