/* Photo + video gallery for product cards.
   Simple on purpose: three big thumbnails under the main photo. Tap one to switch. */
.gallery { padding: 0.7rem 1.3rem 0.1rem; }
.g-thumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.g-thumb {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.22rem;
  width: 64px; color: var(--ink-soft);
}
.g-thumb .g-img {
  position: relative; display: block; width: 56px; height: 56px; border-radius: 12px;
  overflow: hidden; border: 2px solid var(--line); background: var(--ivory);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.g-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover .g-img { border-color: var(--rose-soft); transform: translateY(-1px); }
.g-thumb[aria-pressed="true"] .g-img { border-color: var(--rose); }
.g-thumb:focus-visible { outline: none; }
.g-thumb:focus-visible .g-img { outline: 2px solid var(--rose); outline-offset: 2px; }
.g-label {
  font-family: var(--font-sans); font-size: 0.54rem; letter-spacing: 0.1em; line-height: 1.2;
  text-transform: uppercase; text-align: center;
}
.g-thumb[aria-pressed="true"] .g-label { color: var(--rose-deep); }
.g-play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.g-play::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 252, 247, 0.92) no-repeat center / 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 1.2v7.6L8.8 5z' fill='%23B05E61'/%3E%3C/svg%3E");
  box-shadow: 0 1px 4px rgba(58, 58, 58, 0.25);
}
.g-video { aspect-ratio: 4 / 5; background: #F6F1E7; overflow: hidden; }
.g-video[hidden] { display: none; }
.g-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #F6F1E7; }
.card-art.is-hidden { display: none; }
@media (prefers-reduced-motion: reduce) { .g-thumb .g-img { transition: none; } }
