/* ═══════════════════════════════════════════════════════════════
   Image Placeholders & Aspect Ratios
   ═══════════════════════════════════════════════════════════════ */

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3  { aspect-ratio: 4 / 3; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

.responsive-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: var(--gray-100, #f1f5f9);
  border-radius: var(--radius-md, 8px);
}

.responsive-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: placeholder-pulse 1.5s infinite linear;
}

@keyframes placeholder-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .img-placeholder {
    animation: none;
  }
}
