/**
 * iNKPPL Design System — Gallery Strip Component
 * Horizontal scroll strip of portrait tattoo cards (3:4 aspect ratio).
 * Each card shows an image; on hover a gradient label fades in.
 *
 * @version 1.0.0
 * @date 2026-03-10
 */

/* ==========================================================================
   1. Section Wrapper
   ========================================================================== */

.gallery-strip {
  position: relative;
  padding: var(--space-8) 0 var(--space-12);
}

.gallery-strip::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, var(--color-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   2. Scroll Container
   ========================================================================== */

.gallery-strip__scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-2) 0 var(--space-4);
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.gallery-strip__scroll::-webkit-scrollbar {
  display: none;
}

.gallery-strip__scroll:active {
  cursor: grabbing;
}

/* ==========================================================================
   3. Gallery Card
   ========================================================================== */

.gallery-card {
  flex: 0 0 220px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  text-decoration: none;
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   4. Card Label
   ========================================================================== */

.gallery-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-3) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-card:hover .gallery-card__label {
  opacity: 1;
}

.gallery-card__label span {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card__label svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media (min-width: 768px) {
  .gallery-card { flex: 0 0 240px; }
}

@media (min-width: 1024px) {
  .gallery-card { flex: 0 0 260px; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gallery-card img {
    transition: none;
  }

  .gallery-card:hover img {
    transform: none;
  }

  .gallery-card__label {
    transition: none;
    opacity: 1;
  }
}
