/* ========================
   HUESPACE — /gallery page
   ======================== */

.gallery-body {
  padding-top: 64px;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.gallery-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 12px 0 20px;
  max-width: 18ch;
}

.gallery-lede {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 60ch;
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  color: inherit;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px -16px rgba(191, 122, 60, 0.35);
}

.gallery-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-card-caption {
  padding: 16px 20px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--fg);
}

/* Product list below each card caption */
.gallery-card-products {
  list-style: none;
  margin: 0;
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}

.gallery-card-products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.gallery-card-products li:last-child {
  border-bottom: none;
}

.gallery-product-name {
  color: var(--fg);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-product-chip {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: opacity .15s ease;
}

.gallery-product-chip:hover {
  opacity: .85;
}

.gallery-product-chip--soon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: default;
}

.gallery-cta {
  display: inline-block;
  margin-top: 48px;
}

.gallery-footnote {
  margin-top: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  max-width: 60ch;
}

@media (max-width: 720px) {
  .gallery {
    padding: 56px 24px 80px;
  }
  .gallery-card img {
    height: 200px;
  }
}
