/* MyCitySound v1.6: responsive fix for the existing Citysound News cards.
   The original NextGen news component has a two-column layout even when
   source stories have NO image. At phone widths, the only content can be
   left in the narrow image column, producing one-word lines and giant
   empty cards. This stylesheet changes presentation only. */
@media screen and (max-width: 820px) {
  body .news-section .csc-news-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: clamp(14px, 4vw, 22px) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body .news-section .csc-news-grid > article.csc-news-story {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: clamp(18px, 5vw, 26px) !important;
    gap: 0 !important;
  }
  /* A missing article image must never reserve a phantom grid column. */
  body .news-section article.csc-news-story > div,
  body .news-section article.csc-news-story > div:only-child {
    display: block !important;
    flex: 1 1 auto !important;
    order: 2 !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body .news-section article.csc-news-story > a.csc-news-image {
    display: block !important;
    flex: 0 0 auto !important;
    order: 1 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 16px !important;
    border-radius: 14px;
    overflow: hidden;
  }
  body .news-section article.csc-news-story > a.csc-news-image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  body .news-section article.csc-news-story > div > span {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 11px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
  }
  body .news-section article.csc-news-story h3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    font-size: clamp(20px, 5.2vw, 27px) !important;
    line-height: 1.24 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  body .news-section article.csc-news-story h3 a,
  body .news-section article.csc-news-story p,
  body .news-section article.csc-news-story a.csc-source-link {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  body .news-section article.csc-news-story p {
    margin: 0 0 16px !important;
    font-size: clamp(14px, 3.8vw, 16px) !important;
    line-height: 1.6 !important;
  }
  body .news-section article.csc-news-story .csc-source-link {
    display: inline-block !important;
    line-height: 1.5 !important;
  }
}
/* If a viewer requests reduced motion, existing decorative snowfall is already
   disabled by the seasonal plugin. This layout correction has no animation. */
