.happenings-by-project { padding-bottom: 110px; }
.happenings-by-project .happenings-toolbar { position: relative; top: auto; box-shadow: none; border-bottom: 0; }
.happenings-section #event-grid.project-news-grid { display: block; }
.news-project-group { scroll-margin-top: calc(var(--nav-h) + 24px); margin-bottom: clamp(64px,8vw,120px); }
.news-project-title { font-size: clamp(30px,3.8vw,54px); margin: 32px 0 38px; color: var(--brand-terracotta); }
.happenings-by-project .news-project-group > .news-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: stretch; min-height: 460px; margin-bottom: clamp(30px,4vw,64px); border: 0; background: transparent; }
.happenings-by-project .news-project-group > .news-card .news-body { grid-column: 1; grid-row: 1; padding: clamp(24px,4vw,64px) clamp(24px,5vw,80px) clamp(24px,4vw,64px) 0; justify-content: center; }
.happenings-by-project .news-project-group > .news-card > .event-picture { grid-column: 2; grid-row: 1; min-height: 460px; height: 100%; }
.happenings-by-project .news-project-group > .news-card > .event-picture img { height: 100%; min-height: 460px; max-height: 650px; object-fit: cover; }
.happenings-by-project .news-project-group .news-body h3 { font-size: clamp(25px,2.5vw,38px); line-height: 1.2; color: var(--navy); }
.happenings-by-project .news-project-group .news-body p { flex: 0; font-size: clamp(15px,1.25vw,18px); line-height: 1.8; }
.happenings-by-project .news-project-group .news-body .more { margin-top: 32px; }
.happenings-by-project .news-project-group--reverse > .news-card { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.happenings-by-project .news-project-group--reverse > .news-card > .event-picture { grid-column: 1; }
.happenings-by-project .news-project-group--reverse > .news-card .news-body { grid-column: 2; padding-inline: clamp(24px,5vw,80px) 0; }
.happenings-project-dock { position: fixed; bottom: 20px; inset-inline: 8vw; width: fit-content; max-width: 84vw; margin-inline: auto; padding: 10px 14px; z-index: 95; background: rgba(236,231,226,.97); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s,transform .2s,visibility .2s; }
.happenings-project-dock.is-visible { opacity: 1; visibility: visible; transform: none; }
.happenings-project-dock .event-filters { gap: 8px; }
.happenings-project-dock .event-filter { padding: 12px 18px; white-space: nowrap; }
.happenings-project-dock .event-filter::after { display: none; }
.happenings-project-dock .event-filter[aria-pressed=true] { background: var(--navy); color: #fff; }
@media(max-width:760px) {
 .news-project-title { margin-bottom: 24px; }
 .happenings-by-project .news-project-group > .news-card,
 .happenings-by-project .news-project-group--reverse > .news-card { grid-template-columns: 1fr; min-height: 0; }
 .happenings-by-project .news-project-group > .news-card .news-body { grid-column: 1; grid-row: 1; padding: 16px 0 28px; }
 .happenings-by-project .news-project-group > .news-card > .event-picture { grid-column: 1; grid-row: 2; height: 320px; min-height: 0; }
 .happenings-by-project .news-project-group > .news-card > .event-picture img { min-height: 0; height: 320px; }
 .happenings-project-dock { inset-inline: 3vw; max-width: 94vw; padding: 6px; bottom: 12px; }
 .happenings-project-dock .event-filter { padding: 10px 12px; font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) { .happenings-project-dock { transition: none; } }

/* Slim navy title bands separate each destination's news. */
.happenings-by-project .news-project-title {
  margin: 0 calc(-1 * var(--page-gutter)) 38px;
  padding: 18px var(--page-gutter);
  background: var(--navy);
  color: #fff;
  font-size: clamp(25px,2.8vw,38px);
  line-height: 1.2;
}
@media(max-width:760px) {
  .happenings-by-project .news-project-title { padding-block: 15px; margin-bottom: 26px; }
}

/* Show complete photographs: preserve people at the edges and keep faces intact. */
.happenings-by-project .news-project-group > .news-card > .event-picture {
  height: auto;
  min-height: 0;
  align-self: center;
}
.happenings-by-project .news-project-group > .news-card > .event-picture img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  transform: none;
}
.happenings-by-project .news-project-group > .news-card:hover img { transform: none; }

/* Each story introduces its label and heading, then its description and link. */
.news-copy-ready > .tag,
.news-copy-ready > h3,
.news-copy-ready > p,
.news-copy-ready > .more {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 550ms cubic-bezier(.2,.65,.3,1);
}
.news-copy-visible > .tag,
.news-copy-visible > h3,
.news-copy-visible > p,
.news-copy-visible > .more { opacity: 1; transform: none; }
.news-copy-visible > p,
.news-copy-visible > .more { transition-delay: 260ms; }
html.scrolling-up .news-copy-ready > :is(.tag,h3,p,.more) { opacity: 1; transform: none; transition: none; }
@media(prefers-reduced-motion:reduce) {
 .news-copy-ready > :is(.tag,h3,p,.more) { opacity: 1; transform: none; transition: none; }
}

/* Centre the destination navigation directly below the hero. */
.happenings-by-project .happenings-toolbar { justify-content: center; }
.happenings-by-project .happenings-toolbar > .event-filters { flex: 0 1 auto; width: auto; justify-content: center; margin-inline: auto; }
@media(max-width:760px) {
 .happenings-by-project .happenings-toolbar > .event-filters { width: 100%; justify-content: center; }
}

/* Each destination keeps its archive behind its own disclosure. */
.happenings-by-project .news-project-group > .news-card[hidden] { display: none; }
.news-earlier-button {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 48px;
  padding: 17px 28px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.news-earlier-button:hover { background: var(--brand-terracotta); border-color: var(--brand-terracotta); }
.news-earlier-button:focus-visible { outline: 2px solid var(--brand-terracotta); outline-offset: 5px; }
html[dir="rtl"] .news-earlier-button { letter-spacing: 0; }

/* Phone navigation: all four destinations remain visible and easy to tap. */
@media (max-width: 760px) {
  .happenings-by-project .happenings-toolbar > .event-filters,
  .happenings-project-dock .event-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    width: 100%;
    overflow: visible;
  }
  .happenings-by-project .happenings-toolbar .event-filter,
  .happenings-project-dock .event-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 6px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .06em;
    text-align: center;
    white-space: normal;
  }
  .happenings-by-project .happenings-toolbar .event-filter::after { bottom: 0; }
  .happenings-project-dock {
    inset-inline: 12px;
    width: auto;
    max-width: none;
    padding: 6px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .happenings-by-project { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  html[dir="rtl"] :is(.happenings-toolbar, .happenings-project-dock) .event-filter { letter-spacing: 0; }
}
