html.main-news-popup-open, html.main-news-popup-open body { overflow: hidden; }
#main-news-popup {
  width: min(1000px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #202124;
  box-shadow: 0 12px 48px #0004;
  overscroll-behavior: contain;
}
#main-news-popup::backdrop { background: rgb(0 0 0 / 40%); }
#main-news-popup .main-news-popup-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 64px;
  background: #fff;
}
#main-news-popup h2 { margin: 0; font: 700 26px/1.25 Roboto, sans-serif; text-align: center; }
#main-news-popup .main-news-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333;
  font: 32px/1 sans-serif;
  cursor: pointer;
}
#main-news-popup :focus-visible { outline: 3px solid #1769aa; outline-offset: -3px; }
#main-news-popup .main-news-popup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 20px 20px; }
#main-news-popup .news-card { position: relative; display: block; min-width: 0; overflow: hidden; border: 0; border-radius: 8px; aspect-ratio: 4/3; color: #fff; text-decoration: none; background: #333; }
#main-news-popup .news-card-media-frame { display: block; width: 100%; height: 100%; }
#main-news-popup .news-card-media { display: block; width: 100%; height: 100%; object-fit: cover; }
#main-news-popup .news-card-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; align-items: stretch; gap: 8px; padding: 16px 12px 12px; min-height: 0; background: linear-gradient(transparent 20%, rgb(0 0 0 / 85%)); }
#main-news-popup .news-card-title { margin: 0; color: #fff; font: 500 19px/1.25 Roboto, sans-serif; overflow-wrap: anywhere; }
#main-news-popup .news-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: #fff; font: 400 13px/1.2 Roboto, sans-serif; }
#main-news-popup .news-card-meta span { white-space: nowrap; }
@media (max-width: 900px) {
  #main-news-popup .news-card-title { font-size: 16px; }
  #main-news-popup .main-news-popup-grid { gap: 12px; padding: 0 16px 16px; }
}
