/* V22 — professional popup image fidelity and standalone news navigation */
.site-popup-card.mode-image_text .site-popup-image,
.site-popup-card.mode-image_text .site-popup-image a{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}

.site-popup-card.mode-image_text .site-popup-image img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:min(76vh,820px)!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
}

.site-popup-card.mode-image_only .site-popup-image img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:calc(100dvh - 44px)!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
}

.site-popup-card{
  max-height:calc(100dvh - 36px);
  box-shadow:0 32px 90px rgba(5,31,24,.35);
}

.learn-news-link{
  position:relative;
  isolation:isolate;
}
.learn-news-link::after{
  content:"";
  position:absolute;
  inset:auto 18px 10px;
  height:2px;
  border-radius:99px;
  background:var(--secondary);
  opacity:0;
  transform:scaleX(.35);
  transition:opacity .2s ease,transform .2s ease;
}
.learn-news-link:hover::after,
.learn-news-link:focus-visible::after{
  opacity:1;
  transform:scaleX(1);
}

@media (max-width:760px){
  .site-popup-card.mode-image_text .site-popup-image img{
    max-height:42dvh!important;
  }
  .site-popup-card.mode-image_text .site-popup-image{
    padding:8px!important;
  }
  .site-popup-card{
    max-height:calc(100dvh - 20px);
    overflow:auto;
    overscroll-behavior:contain;
  }
}
