/*
 * ===== Campaign Card — reads --cg-* variables set by CampaignGrid =====
 * Slider: fixed height, width from the ratio (--cg-w: auto).
 * Grid: full column width, height from the ratio (--cg-h: auto).
 */
.cc_P9TFLHKOgp_AmdFCFeJ9C .cc {
  box-sizing: border-box;
  display: block;
  width: var(--cg-w, 100%);
  height: var(--cg-h, auto);
  overflow: hidden;
  border: var(--cg-bw, 1px) solid var(--cg-bc, #f1f1f1);
  border-radius: var(--cg-br, 8px);
  background: var(--cg-img-bg, #ffffff);
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}

/* Linked card: pointer (also over the slider's grab cursor), never underlined */
.cc_P9TFLHKOgp_AmdFCFeJ9C a.cc {
  cursor: pointer;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc:hover, .cc_P9TFLHKOgp_AmdFCFeJ9C .cc:focus, .cc_P9TFLHKOgp_AmdFCFeJ9C .cc:active, .cc_P9TFLHKOgp_AmdFCFeJ9C .cc:visited, .cc_P9TFLHKOgp_AmdFCFeJ9C .cc :is(span, img) {
  text-decoration: none;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc:focus-visible {
  outline: 2px solid var(--mu-ink, #383838);
  outline-offset: 2px;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-media {
  display: block;
  width: var(--cg-w, 100%);
  height: var(--cg-media-h, auto);
  aspect-ratio: var(--cg-mratio, 3 / 2);
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-img {
  display: block;
  width: var(--cg-img-mw, 100%);
  max-width: none;
  height: 100%;
  object-fit: var(--cg-fit, cover);
  -webkit-user-drag: none;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-placeholder {
  aspect-ratio: var(--cg-ph-mratio, 3 / 2);
  background: linear-gradient(135deg, var(--mu-gray-100, #f1f1f1) 0%, var(--mu-gray-200, #cccccc) 100%);
}

/*
 * Footer (logo + caption). Its height is fixed (--cg-foot-h) so the slider can
 * give the image "card height − footer" and derive the width from the ratio.
 */
.cc_P9TFLHKOgp_AmdFCFeJ9C .cc--footer .cc-media {
  height: var(--cg-foot-media-h, auto);
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-footer {
  /* No say in the card width: the image (height × ratio) decides it. */
  contain: inline-size;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--cg-foot-h, 56px);
  padding: 8px 12px;
  min-width: 0;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--mu-gray-50, #f8f8f8);
  object-fit: cover;
}

.cc_P9TFLHKOgp_AmdFCFeJ9C .cc-caption {
  min-width: 0;
  overflow: hidden;
  color: var(--mu-ink, #383838);
  font-family: var(--mu-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 821px) {
  .cc_P9TFLHKOgp_AmdFCFeJ9C .cc-footer {
    gap: 12px;
    padding: 16px 12px;
  }

  .cc_P9TFLHKOgp_AmdFCFeJ9C .cc-caption {
    font-size: 16px;
    line-height: 24px;
  }

  .cc_P9TFLHKOgp_AmdFCFeJ9C .cc-media {
    aspect-ratio: var(--cg-ratio, 3 / 2);
  }

  .cc_P9TFLHKOgp_AmdFCFeJ9C .cc-img {
    width: var(--cg-img-w, 100%);
  }

  .cc_P9TFLHKOgp_AmdFCFeJ9C .cc-placeholder {
    aspect-ratio: var(--cg-ph-ratio, 3 / 2);
  }
}
