.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.feed-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: var(--inset);
  padding-bottom: 24px;
}

.feed-card > :not(.feed-media) {
  margin-inline: 12px;
}

.feed-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ececec;
}

.feed-media[data-tone="dark"] {
  background: linear-gradient(135deg, #1c1c1e, #0d0d0e);
}

.feed-media img {
  max-width: 62%;
  max-height: 70%;
  object-fit: contain;
  transition: transform 0.9s var(--ease-out);
}

.feed-media img[data-fit="cover"] {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.feed-card:hover .feed-media img {
  transform: scale(1.06);
}

.feed-shot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-meta {
  margin-top: auto;
  font-size: 14px;
}

.feed-card .text-heading {
  text-wrap: pretty;
}

@media (max-width: 67.999rem) {
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
