/* A single photo adapts to the feed column and keeps all of its pixels in view. */
.post-photo-frame,
.post-detail-body .post-media-grid.single > .media-item.image {
  display: flex;
  justify-content: center;
  aspect-ratio: auto;
}

.post-photo-frame > .post-photo,
.post-detail-body .post-media-grid.single > .media-item.image > .post-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(760px, 82vh);
  max-height: min(760px, 82svh);
  object-fit: contain;
}

.post-media-grid > .post-media-item:has(> .post-photo) {
  display: flex;
  min-width: 0;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
}
.post-media-grid:not(.single) .post-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post-media-grid .media-item:hover > .post-photo {
  transform: none;
}
