/* Mobile Publication Card Text Standard V1 · Tema 9.5.55.335.
 * Todas las miniaturas públicas V291 en móvil:
 * título máx. 2 líneas + descripción máx. 2 líneas, centradas y apoyadas desde la base.
 */
@media (max-width:760px) {
  body.jc-publication-tiles-v291 :is(
    .jc-msbase-card__body,
    .jc-cjc-card__body,
    .jc-cls270-card__body,
    .jc-commerce-v3-card__body,
    .jc-result-content,
    .jc-router-card__copy,
    .jc-news-v3__card-body
  ) {
    position:absolute!important;
    z-index:2!important;
    left:9px!important;
    right:9px!important;
    bottom:9px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  body.jc-publication-tiles-v291 :is(
    .jc-msbase-card h2,
    .jc-cjc-card h2,
    .jc-cls270-card h2,
    .jc-commerce-v3-card h3,
    .jc-result-card h2,
    .jc-router-card h3,
    .jc-news-v3__card h3
  ) {
    display:-webkit-box!important;
    width:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    color:#fff!important;
    font-size:12px!important;
    line-height:1.16!important;
    font-weight:850!important;
    text-align:center!important;
    text-wrap:balance;
    text-shadow:0 1px 3px rgba(0,0,0,.48)!important;
  }

  body.jc-publication-tiles-v291 :is(
    .jc-msbase-card h2 a,
    .jc-cjc-card h2 a,
    .jc-cls270-card h2 a,
    .jc-commerce-v3-card h3 a,
    .jc-result-card h2 a,
    .jc-router-card h3 a,
    .jc-news-v3__card h3 a
  ) {
    color:#fff!important;
    text-align:center!important;
    text-decoration:none!important;
  }

  /* V276 ocultaba estas descripciones en móvil. V335 las recupera como estándar global. */
  body.jc-publication-tiles-v291 :is(
    .jc-msbase-card__body > p,
    .jc-cjc-card__body > p,
    .jc-cls270-card__body > p,
    .jc-commerce-v3-card__excerpt,
    .jc-result-content > p,
    .jc-router-card__copy > p,
    .jc-news-v3__card-excerpt
  ) {
    display:-webkit-box!important;
    width:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:4px 0 0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    color:rgba(255,255,255,.91)!important;
    font-size:9.6px!important;
    line-height:1.22!important;
    font-weight:550!important;
    text-align:center!important;
    text-shadow:0 1px 3px rgba(0,0,0,.52)!important;
  }

  /* Cuatro líneas posibles necesitan una base algo más profunda, sin tapar la foto. */
  body.jc-publication-tiles-v291 :is(
    .jc-msbase-card,
    .jc-cjc-card,
    .jc-cls270-card,
    .jc-commerce-v3-card,
    .jc-result-card,
    .jc-router-card,
    .jc-news-v3__card
  )::after {
    background:linear-gradient(to top,rgba(4,10,20,.95) 0%,rgba(4,10,20,.82) 31%,rgba(4,10,20,.34) 58%,rgba(4,10,20,.03) 82%)!important;
  }
}
