﻿/**
 * Widths 820–912: 2 cards per row on
 * /events/, /collaborations/, /expert-articles/ («Просвещение»),
 * /personal/posts/, and index feed tab knowlige («Просвещение»).
 *
 * At 820–912 the default 3-col ladder (calc((100% - 40px) / 3)) is too tight;
 * match the 768 2-col pattern. Other widths untouched.
 *
 * Does not edit custom.css / custom.min.css / mobile-card-fixes / footer.php.
 */

@media (min-width: 820px) and (max-width: 912.98px) {
  /* /events/ */
  .index__posts.events-page-cards > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
  }

  /* /collaborations/ */
  .index__posts.collaborations-page-cards > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
  }

  /* /expert-articles/ — «Просвещение» list */
  .index__posts.expert-articles-page-cards > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
  }

  /* /personal/posts/ */
  .person__form-content .index__posts.personal-publications-posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner),
  .person__form-content .index__posts.personal-publications-articles > .index__post:not(.index__post_full):not(.index__post_be-part) {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
  }

  /* Index feed tab «Просвещение» (knowlige) */
  .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner),
  .tabs__content[data-target="knowlige"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.index__post_feed-banner) {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    box-sizing: border-box !important;
  }
}
