/* CDM-116 | Desktop-only feed card alignment.
 * All approved mobile/tablet styling remains byte-for-byte untouched. */
@media (min-width: 1024px) {
  .discovery-app-shell .post-list.discovery-list--feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px 20px;
    grid-auto-flow: row;
  }
  .discovery-app-shell .discovery-list--feed > .discovery-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
  .discovery-app-shell .discovery-list--feed .discovery-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: clamp(210px, 21vw, 330px);
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--color-surface-alt, #202024);
  }
  .discovery-app-shell .discovery-list--feed .discovery-photo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }
  .discovery-app-shell .discovery-list--feed .discovery-photo-link > img,
  .discovery-app-shell .discovery-list--feed .discovery-photo-link img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .discovery-app-shell .discovery-list--feed .discovery-photo .post-card-video-wrap,
  .discovery-app-shell .discovery-list--feed .discovery-photo .link-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .discovery-app-shell .discovery-list--feed .discovery-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 12px 3px 3px;
    gap: 8px;
  }
  .discovery-app-shell .discovery-list--feed .discovery-title {
    min-height: 2.9em;
    max-height: 2.9em;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .discovery-app-shell .discovery-list--feed .post-action-bar {
    margin-top: auto;
    margin-bottom: 0;
    min-width: 0;
  }
  .discovery-app-shell .discovery-list--feed .post-action-segment {
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
  }
}
@media (min-width: 1600px) {
  .discovery-app-shell .post-list.discovery-list--feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
