.memory-news-link {
  margin-block: 1rem 2rem;
}
.memory-news-link a {
  color: var(--blue);
  font-weight: 650;
  text-underline-offset: 0.2em;
}
.memory-gallery {
  padding: clamp(2rem, 5vw, 4rem) max(1rem, calc((100% - 72rem) / 2));
  background: #eeeade;
}
.memory-gallery-heading,
.memory-albums-heading {
  max-width: 52rem;
  margin: 0 auto 2rem;
}
.memory-gallery-heading h2,
.memory-albums-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0.5rem 0;
}
.memory-gallery-heading em,
.memory-albums-heading em {
  font-family: "Newsreader Variable", serif;
}
.memory-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 72rem;
  margin-inline: auto;
}
.memory-photo {
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  background: #fffef9;
  border-radius: 1rem;
  box-shadow: 0 0.35rem 1rem #32271418;
}
.memory-photo > a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.65rem;
}
.memory-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
}
.memory-photo > a:focus-visible,
.memory-gallery-more > summary:focus-visible,
.photo-gallery-collection > summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.memory-photo-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #fffffff0;
  color: var(--blue);
}
.memory-photo-zoom svg {
  width: 1.25rem;
  height: 1.25rem;
}
.memory-photo figcaption {
  padding: 0.75rem 0.25rem 0.3rem;
}
.memory-photo h3 {
  margin: 0;
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
}
.memory-photo-alias {
  display: block;
}
.memory-gallery-more {
  max-width: 72rem;
  margin: 1.5rem auto 0;
}
.memory-gallery-more > .memory-photo-grid {
  padding-top: 1.5rem;
}
.memory-albums {
  max-width: 72rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  scroll-margin-top: 6rem;
}
.memory-albums-heading {
  margin-inline: 0;
}
.memory-albums .photo-gallery-collection {
  margin: 0 0 1.25rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #e7ebf6;
}
.memory-albums .photo-gallery-collection > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 2rem;
}
.memory-albums .native-collection-cover {
  grid-row: span 3;
}
.memory-albums .photo-gallery-collection > summary img {
  display: block;
  width: 100%;
  max-width: none;
  height: 19rem;
  object-fit: cover;
  border-radius: 1rem;
}
.memory-albums .photo-gallery-collection h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.memory-albums .gallery-collection-grid {
  display: grid;
  padding-bottom: 0;
}
.memory-albums .gallery-collection-grid > .native-photo {
  margin: 0;
  width: 100%;
}
.memory-albums .gallery-collection-grid > .native-photo img {
  width: 100%;
  max-height: none;
}
@media (max-width: 52rem) {
  .memory-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 38rem) {
  .memory-gallery {
    padding-inline: 1rem;
  }
  .memory-photo-grid {
    gap: 1rem 0.75rem;
  }
  .memory-photo {
    padding: 0.4rem;
    border-radius: 0.75rem;
  }
  .memory-photo > a {
    border-radius: 0.5rem;
  }
  .memory-photo figcaption {
    padding: 0.55rem 0.15rem 0.25rem;
  }
  .memory-photo h3 {
    font-size: 0.875rem;
  }
  .memory-photo-zoom {
    width: 1.9rem;
    height: 1.9rem;
    top: 0.4rem;
    right: 0.4rem;
  }
  .memory-albums .photo-gallery-collection > summary {
    display: block;
  }
  .memory-albums .photo-gallery-collection > summary img {
    height: 14rem;
  }
}
