/* ==========================================================================
   Leads-by-Make Gallery — horizontal scrollable circular thumbnails
   Rendered inside .listings-section on brand landing pages.
   ========================================================================== */

/* ---- Gallery container ---- */
.leads-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  margin-top: 16px;

  /* Hide scrollbar on touch devices while keeping it functional */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c0c0c0 transparent;
}

/* WebKit scrollbar styling */
.leads-gallery::-webkit-scrollbar {
  height: 6px;
}

.leads-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.leads-gallery::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 3px;
}

.leads-gallery::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ---- Thumbnail ---- */
.leads-gallery__thumb {
  width: 80px;
  height: 80px;
  min-width: 80px; /* prevent shrinking below fixed size */
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #eee;
  background-color: #f5f4f0; /* visible while image loads / on error */
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.leads-gallery__thumb:hover {
  border-color: var(--primary, #22c9a3);
}

/* ---- Placeholder / broken-image fallback ---- */
.leads-gallery__thumb::before {
  display: none; /* no pseudo-element fallback needed; bg-color suffices */
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .leads-gallery {
    gap: 10px;
    padding: 6px 0 12px;
  }

  .leads-gallery__thumb {
    width: 68px;
    height: 68px;
    min-width: 68px;
  }
}

@media (min-width: 768px) {
  .leads-gallery {
    gap: 14px;
  }

  .leads-gallery__thumb {
    width: 88px;
    height: 88px;
    min-width: 88px;
  }
}

@media (min-width: 1024px) {
  .leads-gallery__thumb {
    width: 96px;
    height: 96px;
    min-width: 96px;
  }
}
