/* Anchor the fade to the card, so changes in excerpt length cannot move it. */
.pma-news-loop .pma-news-loop__copy::before {
  content: none;
}

.pma-news-loop a.pma-news-loop__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 44%,
    rgb(0 0 0 / 12%) 52%,
    rgb(0 0 0 / 36%) 63%,
    rgb(0 0 0 / 60%) 75%,
    rgb(0 0 0 / 76%) 88%,
    rgb(0 0 0 / 84%) 100%);
}

.pma-news-loop .pma-news-loop__copy {
  z-index: 2;
  text-shadow: 0 1px 5px rgb(0 0 0 / 80%);
}

.pma-news-loop img.pma-news-loop__photo {
  object-position: var(--news-photo-position, center center);
}

/* These wide photographs place the people low and to the left. */
.pma-news-loop img.pma-news-loop__photo:is(
  [src*="pma-newsroom-nov-2026-11-alkalinity-0"],
  [data-pma-image*="pma-newsroom-nov-2026-11-alkalinity-0"],
  [src*="pma-newsroom-nov-2026-08-coagulation-0"],
  [data-pma-image*="pma-newsroom-nov-2026-08-coagulation-0"]
) {
  --news-photo-position: 13% center;
  inset-block-start: auto;
  height: 150%;
}

@media (max-width: 480px) {
  .pma-news-loop img.pma-news-loop__photo:is(
    [src*="pma-newsroom-nov-2026-11-alkalinity-0"],
    [data-pma-image*="pma-newsroom-nov-2026-11-alkalinity-0"],
    [src*="pma-newsroom-nov-2026-08-coagulation-0"],
    [data-pma-image*="pma-newsroom-nov-2026-08-coagulation-0"]
  ) {
    --news-photo-position: 16% center;
    height: 200%;
  }
}

.pma-news-loop img.pma-news-loop__photo:is(
  [src*="pma-newsroom-nov-2026-05-phosphate-0"],
  [data-pma-image*="pma-newsroom-nov-2026-05-phosphate-0"]
) {
  --news-photo-position: 15% center;
}
