/**
 * Event + collaboration DETAIL hero: ≤1366 —
 * like / comment / share UNDER star rating (column stack).
 *
 * Scope: .event-detail-page / .collaboration-detail-page
 *   .pet__top_image > .card-stars__wrapper
 *
 * Matches the stacked bar used on entity details when the photo
 * column is too narrow for stars+icons in one row.
 * ≥1367 (wide PC) untouched. Does not edit custom.css / mobile-card-fixes / footer.php.
 */

@media (max-width: 1366.98px) {
  .pet .event-detail-page .pet__top .pet__top_image > .card-stars__wrapper,
  .pet .collaboration-detail-page .pet__top .pet__top_image > .card-stars__wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    row-gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pet .event-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .entity-star-rating,
  .pet .event-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card-stars,
  .pet .collaboration-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .entity-star-rating,
  .pet .collaboration-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card-stars {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    margin: 0 !important;
  }

  .pet .event-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card__buttons,
  .pet .collaboration-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card__buttons {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-left: 0 !important;
    order: 2 !important;
    position: static !important;
  }
}
