/* Component-only styles: load after site.css, outside product/card anchors. */
.lid-gallery { min-width: 0; width: 100%; color: var(--ink); background: var(--surface); font: inherit; }
.lid-gallery [hidden] { display: none !important; }
.lid-gallery-frames { background: var(--tint); border-radius: 12px; overflow: hidden; }
.lid-gallery .lid-gallery-slide { margin: 0; min-width: 0; }
.lid-gallery .lid-gallery-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lid-gallery figcaption { font-size: .75rem; line-height: 1.35; font-weight: 600; text-align: center; padding: 6px; min-height: 3.7em; overflow-wrap: anywhere; }
.lid-gallery-controls { display: flex; flex-wrap: nowrap; justify-content: center; gap: 2px; padding: 4px 0 0; }
.lid-gallery-controls button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation; }
.lid-gallery-controls button:hover { background: var(--brand-soft); }
.lid-gallery-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; box-shadow: inset 0 0 0 4px var(--accent); }
.lid-gallery-status { display: block; padding: 2px 6px 6px; text-align: center; font-size: .7rem; line-height: 1.4; color: var(--muted); }
.lid-gallery-empty { display: grid; place-content: center; min-height: 130px; margin: 0; padding: 12px; text-align: center; font-size: .8rem; }
.lid-gallery--detail { max-width: 640px; margin-inline: auto; }
.lid-gallery--detail figcaption { font-size: .95rem; }
.lid-gallery--detail .lid-gallery-controls { gap: 8px; }

/* Hub media/copy use their own rows, not ordinary shop-card subgrid tracks. */
.lid-hub { grid-template-rows: auto; grid-row: auto; }
@media (max-width: 600px) {
  .lid-product-copy { grid-row: 1; }
  .lid-hub { grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr); }
  .lid-hub .lid-gallery-slide img { aspect-ratio: 4 / 3; max-height: 22svh; }
  .lid-hub > .body { padding: 10px; }
  .lid-hub h3 { font-size: 16px; line-height: 1.25; }
  .lid-hub p { font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
  .lid-hub .eyebrow, .lid-hub .body > .small { display: none; }
  .lid-hub .btn { min-height: 44px; padding: 8px 4px; font-size: 13px; }
}
