/**
 * Tablet 768–1199.98: equalize feed card heights in a row.
 * Scope: ONLY .cotinder-index-feed (index). No bare .tabs__content[data-target].
 * Skips canals. Video 3:4 preserved.
 * Note: 820–912 use natural height (cotinder-feed-last-tall / 820-912 override)
 * so height:100% here is excluded for that band (was clipping text/actions).
 */
@media (min-width: 768px) and (max-width: 819.98px),
       (min-width: 913px) and (max-width: 1199.98px) {
  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts,
  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts,
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts {
    align-items: stretch !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part) {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  /* Photo/community cards only — video must NOT stretch (black gap under 3:4 media) */
  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide:not(.card__video),
  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide:not(.card__video),
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide:not(.card__video) {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide.card__video {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide:not(.index__community-card) > .card-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post > .card.user-slide.index__community-card > .card-desc,
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post > .card.user-slide.index__community-card > .card-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: none !important;
    margin-top: auto !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide.card__video > .card__media-wrap {
    aspect-ratio: 3 / 4 !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full),
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full),
  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full),
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full),
  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full) {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .cotinder-index-feed[data-cotinder-feed-tab="comunity"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full) > img,
  .cotinder-index-feed[data-cotinder-feed-tab="nko"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full) > img,
  .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post.index__post_feed-banner:not(.index__post_full) > a.card.card__cotinder:not(.card__cotinder_full) > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 20px !important;
  }
}
