.keepsakes-page {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.keepsakes-head {
  margin-bottom: clamp(4rem, 7vw, 6rem) !important;
}

.keepsakes-head h1 {
  margin: 0;
}

.keepsake {
  display: grid;
  grid-template-columns: minmax(12rem, .42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line-strong);
}

.keepsake-label {
  align-self: start;
}

.keepsake-label h2 {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.3;
}

.keepsake-label p {
  margin: .9rem 0 0;
  color: var(--muted);
  font: .95rem/1.8 var(--serif);
}

.keepsake figure {
  margin: 0;
}

.rings-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
}

.ring-photo {
  overflow: hidden;
  background: #ddd8cf;
}

.ring-photo-first {
  aspect-ratio: 4 / 4.7;
}

.ring-photo-second {
  aspect-ratio: 4 / 4.1;
  margin-bottom: clamp(1.5rem, 4vw, 3rem) !important;
}

.ring-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ring-photo-first img {
  object-position: center 35%;
}

.ring-photo-second img {
  object-position: center 44%;
}

.certificate-photo {
  justify-self: center;
  text-align: center;
}

.certificate-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.tree-photo {
  width: min(100%, 20rem);
}

.pixel-photo {
  width: min(100%, 40rem);
}

.pixel-crop {
  aspect-ratio: 1237 / 945;
  overflow: hidden;
}

.certificate-photo figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font: .75rem/1.6 var(--serif);
  letter-spacing: .04em;
}

.keepsake-pixel {
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.keepsakes-back {
  margin-top: 0;
}

@media (max-width: 760px) {
  .keepsake {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rings-gallery {
    gap: .7rem;
  }

  .ring-photo-first {
    aspect-ratio: 4 / 5;
  }

  .ring-photo-second {
    aspect-ratio: 4 / 4.5;
    margin-bottom: 1.2rem !important;
  }

  .tree-photo {
    width: min(64%, 19rem);
  }
}
