/* Внешний контейнер рекламы */
.dynamic-rsy-slot,
.auto-inserted-rsy-slot {
  display: block !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 32px auto !important;
  padding: 0 !important;
  clear: both !important;
  float: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* Всё внутри рекламного слота */
.dynamic-rsy-slot > div,
.auto-inserted-rsy-slot > div,
[id^="rsy_"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* Центрирование внутренних элементов Яндекса */
.dynamic-rsy-slot iframe,
.dynamic-rsy-slot ins,
.dynamic-rsy-slot img,
.dynamic-rsy-slot video,
.dynamic-rsy-slot canvas,
.dynamic-rsy-slot object,
.dynamic-rsy-slot embed,
.auto-inserted-rsy-slot iframe,
.auto-inserted-rsy-slot ins,
.auto-inserted-rsy-slot img,
.auto-inserted-rsy-slot video,
.auto-inserted-rsy-slot canvas,
.auto-inserted-rsy-slot object,
.auto-inserted-rsy-slot embed {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  max-width: 100% !important;
}

/* Если Яндекс создаёт дополнительные div-обёртки */
.dynamic-rsy-slot div,
.auto-inserted-rsy-slot div {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* На случай, если родитель статьи задаёт выравнивание влево */
.t-feed__post-popup__text-wrapper .dynamic-rsy-slot,
.t-feed__post-popup__text-wrapper .auto-inserted-rsy-slot,
[itemprop="articleBody"] .dynamic-rsy-slot,
[itemprop="articleBody"] .auto-inserted-rsy-slot {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  clear: both !important;
}

/* Мобильная версия */
@media screen and (max-width: 740px) {
  .dynamic-rsy-slot,
  .auto-inserted-rsy-slot {
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto !important;
  }
}