/* Shared alignment and responsive refinements for both language versions. */
:root { --page-gutter: 56px; }
.wrap,
.header-inner,
body .vh-language .vh-language-inner {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: 1320px;
  margin-inline: auto;
}
.header-inner,
body .vh-language .vh-language-inner { padding-inline: 0; }
.hero > *, .split > *, .section-top > *, .steps > *, .credentials > * { min-width: 0; }
.home-gallery figure:nth-child(n) { padding-top: 0; }
.gallery figcaption { font-size: .85rem; line-height: 1.6; }

/* Two complete rows, with landscape photos spanning two portrait columns. */
.workshop-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workshop-gallery img,
.workshop-gallery figure:first-child img,
.workshop-gallery figure:nth-child(4) img {
  height: clamp(260px, 28vw, 412px);
  aspect-ratio: auto;
}

/* Share heading and description baselines across each row of cards. */
@supports (grid-template-rows: subgrid) {
  .steps, .credentials { row-gap: 0; }
  .steps article, .credentials article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
  }
}
.split > div > p + .button { margin-top: 28px; }
.hub-links p + p { margin-top: 0; }
.story-link { padding-block: 32px; }
.story-link .text-link { margin-top: 0; }

@media (max-width: 1100px) {
  :root { --page-gutter: 36px; }
}
@media (max-width: 1000px) {
  .workshop-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-gallery img { height: auto; aspect-ratio: 3 / 4; }
  .workshop-gallery figure:first-child,
  .workshop-gallery figure:nth-child(4) { grid-column: 1 / -1; }
  .workshop-gallery figure:first-child img,
  .workshop-gallery figure:nth-child(4) img { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .compact-meet { grid-template-columns: 1fr; gap: 28px; }
  .compact-meet figure { width: 100%; max-width: 240px; }
  .compact-meet img { aspect-ratio: 3 / 4; }
  .compact-meet p { font-size: 1rem; }
  .steps, .credentials { row-gap: 30px; }
  .steps article, .credentials article { display: block; grid-row: auto; }
  .workshop-gallery figcaption { font-size: .82rem; }
}
@media (max-width: 480px) {
  .skill-journey { grid-template-columns: 1fr; }
  .skill-card { min-height: 340px; padding: 26px; }
  .skill-card h3 { font-size: 1.8rem; }
  .skill-card p { font-size: .95rem; }
  .skill-card span { left: 26px; }
}
@media (max-width: 380px) {
  :root { --page-gutter: 16px; }
  .compact-meet figure { max-width: 240px; }
}

/* Past event photography: keep the full workshop context and clear mobile captions. */
.past-events-gallery figure:nth-child(4) img { object-position: 50% 50%; }
.past-events-gallery .school-event img { object-position: 50% 50%; }
@media (max-width: 700px) {
  .past-events-gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .past-events-gallery figure:nth-child(n) { grid-column: 1; }
  .past-events-gallery figure:nth-child(n) img { height: auto; aspect-ratio: 3 / 4; object-position: 50% 40%; }
  .past-events-gallery figure:first-child img,
  .past-events-gallery figure:nth-child(4) img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .past-events-gallery .school-event img { aspect-ratio: 740 / 1316; object-position: center; }
}
