#moments {
  --album-ink: #263d34;
  --album-paper: #f9edda;
  --print-paper: #fffcf4;
  color: var(--album-ink);
}

#moments .memory-heading { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
#moments .memory-heading > p {
  max-width: 23rem;
  color: #4d5c48;
  font-size: 1rem;
  line-height: 1.6;
}

#moments .memory-album {
  display: grid;
  grid-template-columns: 1fr 1.07fr 1fr;
  align-items: start;
  gap: clamp(1rem, 4.3vw, 3.5rem);
  padding: clamp(2rem, 4.7vw, 4rem) clamp(1.2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.35rem);
  border: 1px solid #dfceb0;
  border-radius: 4px;
  background:
    radial-gradient(circle, #65482f18 .55px, transparent .75px) 0 0 / 4px 4px,
    repeating-linear-gradient(0deg, transparent 0 26px, #a98a631b 26px 27px),
    linear-gradient(110deg, #f9efdb, var(--album-paper) 66%, #f1e1c8);
  box-shadow: 0 7px 0 -3px #f1dfc3, 0 8px 0 -3px #d2c1a7, 0 12px 24px #66462f13;
}

#moments .memory-print {
  --print-angle: -3deg;
  --tape-color: #df9a6fce;
  --tape-angle: -12deg;
  position: relative;
  min-width: 0;
  margin: .55rem 0 0;
  padding: clamp(.5rem, 1.15vw, .85rem);
  border: 1px solid #e3d6be;
  border-radius: 2px;
  background: var(--print-paper);
  box-shadow: 0 1px 1px #4a382119, 1px 7px 12px #4a382126;
  transform: rotate(var(--print-angle));
}

#moments .memory-print:nth-child(2) {
  --print-angle: 2.25deg;
  --tape-color: #b3c69fd6;
  --tape-angle: 8deg;
  margin-top: 0;
}

#moments .memory-print:nth-child(3) {
  --print-angle: -2deg;
  --tape-color: #abc2c4dc;
  --tape-angle: -7deg;
  margin-top: 1.35rem;
}

#moments .memory-print::before {
  position: absolute;
  z-index: 1;
  top: -.65rem;
  left: 50%;
  width: clamp(3.3rem, 7.5vw, 5.65rem);
  height: 1.35rem;
  background:
    repeating-linear-gradient(32deg, #fff7e64d 0 3px, transparent 3px 7px),
    var(--tape-color);
  clip-path: polygon(2% 0, 98% 3%, 100% 19%, 96% 35%, 100% 57%, 96% 76%, 99% 100%, 0 96%, 4% 78%, 0 57%, 4% 32%);
  transform: translateX(-50%) rotate(var(--tape-angle));
  content: "";
  pointer-events: none;
}

#moments .memory-photo {
  aspect-ratio: 1.08;
  overflow: hidden;
  background: #dce7cf;
}

#moments .memory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

#moments .memory-print:nth-child(2) img { object-position: center 52%; }
#moments .memory-print:nth-child(3) img { object-position: 51% center; }

#moments .memory-print figcaption {
  display: grid;
  gap: .23rem;
  padding: .65rem .3rem .2rem;
  color: var(--album-ink);
  font-size: .875rem;
  line-height: 1.55;
}

#moments .memory-hand {
  font: 600 clamp(1.05rem, 2vw, 1.65rem)/1.2 "Caveat", "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
}

#moments .memory-credit {
  margin-top: 1.3rem;
  color: #4d5c48;
  font-size: .825rem;
  line-height: 1.55;
}

@media (max-width: 50rem) {
  #moments .memory-album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.2rem, 6.5vw, 3rem);
    row-gap: 1.15rem;
  }
  #moments .memory-print:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(1.2rem, 6.5vw, 3rem)) / 2);
    margin-top: .35rem;
  }
}

@media (max-width: 35rem) {
  #moments .memory-heading > p { margin-top: .45rem; }
  #moments .memory-album {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.5rem;
    padding-inline: 1.4rem;
  }
  #moments .memory-print,
  #moments .memory-print:nth-child(3) {
    grid-column: auto;
    width: min(100%, 20rem);
    margin-top: .25rem;
  }
  #moments .memory-print { --print-angle: -1.8deg; }
  #moments .memory-print:nth-child(2) { --print-angle: 1.5deg; }
  #moments .memory-print:nth-child(3) { --print-angle: -1.2deg; }
  #moments .memory-hand { font-size: 1.275rem; }
}
