/* AIRES NUEVOS NQN — Marcos editoriales de escritorio 2026
   Regla: conservar la fotografía completa sin perder la composición de grilla.
   Solo aplica desde 993px. Publicidades quedan fuera.
*/

@media (min-width: 993px) {
  /* Portada moderna: marco editorial limpio + fotografía completa. */
  .anqn-home-lead__image {
    width: 100% !important;
    height: clamp(360px, 32vw, 560px) !important;
    min-height: 0 !important;
    max-height: 560px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
    border-radius: 26px !important;
  }

  .anqn-home-lead__image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    background: transparent !important;
  }

  /* Rail: miniaturas consistentes sin recortar la fotografía. */
  .anqn-home-rail-card img {
    width: 118px !important;
    height: 98px !important;
    max-width: 118px !important;
    max-height: 98px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 15px !important;
  }

  /* Selección editorial: marco limpio, fotografía completa. */
  .anqn-card-modern img {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 18px !important;
  }

  /* Grillas profesionales antiguas: mantienen alturas previsibles sin recortar. */
  .main-featured-article img {
    width: 100% !important;
    height: 390px !important;
    max-height: 390px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  .small-article-card img {
    width: 100% !important;
    height: 160px !important;
    max-height: 160px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  .latest-news-card .image-wrapper,
  .article-card .image-wrapper {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
  }

  .latest-news-card .image-wrapper img,
  .article-card .image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  /* Tarjetas de sección actuales. */
  .category-page .latest-news-card .image-wrapper {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }

  .category-page .latest-news-card:first-of-type .image-wrapper {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }

  .category-page .latest-news-card:first-of-type .image-wrapper img,
  .category-page .latest-news-card .image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  /* Módulos de especiales. */
  .home-special-report-media {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
  }

  .home-special-report-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  /* Relacionadas de las notas. */
  .single-post-page .related-thumb {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
  }

  .single-post-page .related-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  /* Foto principal de nota: marco amplio, imagen completa. */
  .single-post-page .post-image-container {
    height: min(70vh, 720px) !important;
    min-height: 360px !important;
    max-height: 720px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 8px !important;
  }

  .single-post-page .post-featured-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  /* Familias legacy que todavía pueden aparecer en páginas secundarias. */
  .section-news-card img,
  .news-card img,
  .post-card img,
  .post-image img,
  .article-image img,
  .featured-image img {
    width: 100% !important;
    height: 225px !important;
    max-height: 225px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }
}
