/*
 * product-gallery.css — Standardized product image gallery
 *
 * Injected by ContentInjector for pages that lack inline gallery styles.
 * Matches the Series 10 Level 5 "gold standard" gallery layout.
 */

.img-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.img-main-wrap {
  border: 2px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-50, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.img-main-wrap img {
  width: 100%;
  max-width: 420px;
  max-height: 380px;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  margin: auto;
}

.img-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.4rem;
}

.img-thumb {
  border: 2px solid var(--slate-200, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--slate-50, #f8fafc);
  aspect-ratio: 1;
}

.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img-thumb.active,
.img-thumb:hover {
  border-color: var(--blue-500, #3b82f6);
}

.thumb-label {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--slate-400, #94a3b8);
  text-align: center;
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.thumb-group {
  display: flex;
  flex-direction: column;
}

/* Responsive: stack thumbnails on narrow screens */
@media (max-width: 480px) {
  .img-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .img-main-wrap {
    min-height: 240px;
  }
  .img-main-wrap img {
    max-height: 260px;
  }
}
