/* V23 — full, uncropped popup artwork and a polished standalone news item */

/* Image + text: artwork uses the complete card width, content follows below. */
.site-popup-card.mode-image_text {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  width: min(1080px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 28px !important;
  background: #fff !important;
}

.site-popup-card.mode-image_text .site-popup-image {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f3f5f1 !important;
}

.site-popup-card.mode-image_text .site-popup-image img,
.site-popup-card.mode-image_only .site-popup-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.site-popup-card.mode-image_text .site-popup-content {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: clamp(24px, 4vw, 44px) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(201,164,79,.12), transparent 28%),
    #fff !important;
}

.site-popup-card.mode-image_text .site-popup-content > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.site-popup-card .site-popup-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 6 !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 10px 30px rgba(10,39,31,.18) !important;
  backdrop-filter: blur(12px);
}

/* Direct news item: visually distinct, but consistent with the navigation. */
.learn-news-link {
  position: relative;
  color: var(--primary) !important;
}

.learn-news-link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 11px;
  height: 2px;
  border-radius: 99px;
  background: var(--secondary);
  opacity: 0;
  transform: scaleX(.45);
  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-layer {
    padding: 10px !important;
    align-items: center !important;
  }

  .site-popup-card.mode-image_text {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 20px !important;
  }

  .site-popup-card.mode-image_text .site-popup-content {
    padding: 24px 20px 28px !important;
  }

  .site-popup-card .site-popup-close {
    top: 10px !important;
    right: 10px !important;
  }

  .learn-news-link::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-news-link::after {
    transition: none;
  }
}
