/* Shared photo-card mechanics reused by catalog, my-listings and profile
   (own-listings + garage). Each page still owns its own image filter,
   background-position, badges and info-block typography — only the
   structural/gallery pieces live here so they don't drift between pages. */

.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(155deg, #1C2026 0%, #14171B 55%, #0D0F12 100%);
}

.card-photo.has-photo {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-photo.has-photo::-webkit-scrollbar { display: none; }

.card-photo-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.card-photo .photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo--pending {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-photo--pending .pending-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text-muted);
}

.card-photo-dots {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.card-photo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245, 245, 243, 0.4);
  transition: background 0.2s ease;
}

.card-photo-dot.is-active { background: var(--text-primary); }
