/* One shared radius for photographic frames at every viewport width. */
:root { --cb-image-radius: 16px; }

/* Cards clip their image and text together; their internal photo stays flush. */
body :is(.cb-dest-card, .cb-guide-card, .cb-hub__card, .cb-card,
          .cb-region-index__card) {
  border-radius: var(--cb-image-radius) !important;
  overflow: hidden;
}
body.cb-portal-active :is(.interest, .region, .story, .editorial) {
  border-radius: var(--cb-image-radius) !important;
  overflow: hidden;
}

/* The full-width hero must retain its visible overflow for the search panel. */
body.cb-portal-active .hero {
  border-radius: var(--cb-image-radius) !important;
}
body.cb-portal-active :is(.hero-image, .hero-shade) {
  border-radius: inherit;
}

/* Article photographs, including standalone classic and block images. */
body .cb-article__media > img,
body .cb-article__media > a > img,
body .cb-prose img:not(.avatar),
body .cb-prose .cb-media-gallery.cb-media-gallery img {
  border-radius: var(--cb-image-radius) !important;
}
body .cb-prose .cb-media-gallery.cb-media-gallery a:has(> img) {
  border-radius: var(--cb-image-radius) !important;
}
