img.community-featured-photo {
  object-fit: cover;
  object-position: center;
}

img.eg-media-loading,
.pd-lightbox-stage[data-state="loading"]::before {
  background-color: #201a25;
  background-image: linear-gradient(105deg, transparent 35%, #ffffff12 50%, transparent 65%);
  background-size: 220% 100%;
  animation: eg-media-loading-sweep 1.7s ease-in-out infinite;
}

img.eg-media-loading {
  color: transparent;
}

.pd-lightbox-stage[data-state="loading"]::before {
  position: absolute;
  inset: 7% 9%;
  border-radius: 12px;
  pointer-events: none;
  content: "";
}

@keyframes eg-media-loading-sweep {
  from { background-position: 115% 0; }
  to { background-position: -115% 0; }
}

body.motion-paused img.eg-media-loading,
body.motion-paused .pd-lightbox-stage[data-state="loading"]::before {
  animation-play-state: paused;
}

body.eg-motion-off img.eg-media-loading,
body.eg-motion-off .pd-lightbox-stage[data-state="loading"]::before {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  img.eg-media-loading,
  .pd-lightbox-stage[data-state="loading"]::before {
    animation: none;
  }
}
