/* Keeps native image requests and the original alt text intact while their pixels are unavailable. */
img[data-static-image-state] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%234a4854'/%3E%3Cg fill='none' stroke='%23c2bfcb' stroke-width='2.5' stroke-linejoin='round'%3E%3Crect x='30' y='33' width='36' height='30' rx='4'/%3E%3Ccircle cx='41' cy='43' r='3'/%3E%3Cpath d='m31 58 10-9 8 7 6-7 10 10'/%3E%3C/g%3E%3C/svg%3E");
  background-color: #4a4854;
  object-fit: contain !important;
  object-position: center !important;
  visibility: visible !important;
}
.pc-media.is-fallback .pc-img[data-static-image-state] {
  display: block !important;
}
/* These cover containers also paint remote images through pseudo-elements or CSS variables. */
:is([style*="--pc-bg:"], [style*="--card-bg:"], [style*="--portrait-bg:"], [style*="--pa:"], [style*="--cover:"], [style*="background-image:"][style*="url("]) {
  background-color: #494650;
}

.portrait-image-status { display: none; }
[data-hero-portrait-img][data-static-image-state] ~ .portrait-image-status {
  display: flex;
  position: absolute;
  inset: auto 0 15%;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.875rem;
}
[data-static-image-state="error"] ~ .portrait-image-status .portrait-image-slow,
[data-static-image-state="slow"] ~ .portrait-image-status .portrait-image-error { display: none; }
.portrait-image-status button {
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  background: #35343f;
  color: #fff;
  cursor: pointer;
}
