/**
 * /pets/… «Последние посты» — ONLY large PC ≥1800.
 * Gap between photo/video and .card-user by shrinking media inside the wrap.
 * Card outer size unchanged.
 * Does not edit custom.css / custom.min.css / mobile-card-fixes / footer.php.
 * Marker: petpostsgap180020260814e
 */

@media (min-width: 1800px) {
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card__media-wrap,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card-img-wrap {
    box-sizing: border-box !important;
  }

  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card__media-wrap > a,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card-img-wrap > a,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card__media-wrap--gallery > .card__gallery-swiper {
    height: calc(100% - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100% - 12px) !important;
  }

  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) .card-img,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card__media-wrap img,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide:not(.card__video) > .card-img-wrap img {
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  /* Video: wrap size stays (3/4). Author below video; video shrinks inside wrap. */
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide.card__video > .card__media-wrap,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide.card__video > .card-img-wrap {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide.card__video > .card__media-wrap > a,
  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide.card__video > .card-img-wrap > a {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .pet .pet-detail-page .tabs__content_pet[data-target="last"] > .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) > .card.user-slide.card__video > .card__media-wrap > .card-video-author {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 12px 0 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
}
