/* Gallery hub: intro, six gallery cards, three stories, text chapters. Generated markup (tools/build-gallery-hub.mjs);
   headings and text chapters use shared/gallery.css, type and gaps only the tokens of shared/site.css. */
.hub-intro { padding-bottom: var(--sp-action); }
.hub-intro .gch__intro { padding-bottom: var(--sp-head); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--sp-action) * 1.5) var(--sp-grid); list-style: none; }
.hub-card { min-width: 0; }
.hub-card__link { display: block; color: var(--ink); }
.hub-card__img { display: block; overflow: hidden; aspect-ratio: 800 / 650; background: var(--ink); line-height: 0; }
.hub-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hub-card__link .t-h3 { margin-top: var(--sp-cap); transition: color .2s ease-in-out; }
.hub-card .t-body { margin-top: var(--sp-label); }
.hub-card .t-body a, .hub-story .t-body a { color: var(--accent); }
@media (hover: hover) {
  .hub-card__link:hover .hub-card__img img { transform: scale(1.04); }
  .hub-card__link:hover .t-h3 { color: var(--accent); }
}

/* stories: one big, two beside it (as on the live page) */
.hub-stories__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: var(--sp-grid); align-items: start; }
.hub-story { min-width: 0; }
.hub-story--big { grid-row: span 2; }
.hub-story:not(.hub-story--big) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-grid); }
.hub-story__img { display: block; overflow: hidden; aspect-ratio: 1; line-height: 0; background: var(--ink); }
.hub-story--big .hub-story__img { aspect-ratio: 3 / 2; }
.hub-story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .hub-story__img:hover img { transform: scale(1.04); } }
.hub-story--big .hub-story__body { margin-top: var(--sp-cap); }
.hub-story .t-h3 + .t-body { margin-top: var(--sp-label); }
.hub-story .tl { margin-top: var(--sp-head); }

.gch__text .hub-more { margin-top: var(--sp-head); }
.gch__text .hub-more a { color: var(--ink); }
.gch__text .hub-more a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; row-gap: calc(var(--sp-action) * 1.5); }
  .hub-story--big { grid-column: 1 / -1; grid-row: auto; }
  .hub-story:not(.hub-story--big) { display: block; }
  .hub-story:not(.hub-story--big) .hub-story__body { margin-top: var(--sp-cap); }
}
@media (max-width: 640px) {
  .hub-card__img { aspect-ratio: 4 / 5; }
  .hub-card .t-body { font-size: var(--fs-small); line-height: 1.5; }
  .hub-stories__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hub-card__img img, .hub-story__img img { transition: none; } }

/* headings break evenly (no short last line) */
.gallery-page .gch__title { text-wrap: balance; }
