/* Approved photo examples. No labels, captions, frames, or sheet artwork.
   Each sheet window is a 330px square entirely inside its source photo.
   The original 1024 x 1536 source is unchanged; CSS clips all sheet text. */
.memory-gallery {
  padding: 12px 6% 64px;
}
.memory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  max-width: 1040px;
  margin: 0 auto;
}
.memory-gallery-photo {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #e4ded1;
}
.memory-gallery-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memory-gallery-sheet > img {
  position: absolute;
  width: 310.303030303%;
  height: 465.454545455%;
  max-width: none;
  object-fit: fill;
  left: var(--sheet-left);
  top: var(--sheet-top);
}
.memory-gallery-portrait { --sheet-left: -33.9393939394%; --sheet-top: -58.7878787879%; }
.memory-gallery-work { --sheet-left: -176.3636363636%; --sheet-top: -58.7878787879%; }
.memory-gallery-family { --sheet-left: -33.3333333333%; --sheet-top: -194.5454545455%; }
.memory-gallery-women { --sheet-left: -176.9696969697%; --sheet-top: -194.5454545455%; }
.memory-gallery-men { --sheet-left: -33.3333333333%; --sheet-top: -329.3939393939%; }
.memory-gallery-childhood { --sheet-left: -176.9696969697%; --sheet-top: -329.3939393939%; }
@media (max-width: 760px) {
  .memory-gallery { padding: 4px 6% 40px; }
  .memory-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
    gap: 12px;
  }
  .memory-gallery-photo { border-radius: 9px; }
}

