/* v64: final layout adjustments, scoped to the reported sections. */
@media (min-width: 769px) {
  html body.page-home .stage > .life-gallery {
    margin-top: var(--concept-extra-space, 0px);
  }
}
@media (max-width: 768px) {
  html body.page-home .stage .works .works__marquee--lower {
    box-sizing: border-box;
    padding-inline: 18px !important;
  }
  html body.page-home .stage .works .works__cards {
    width: 100% !important;
    margin-inline: 0 !important;
  }
}
@media (max-width: 767px) {
  html body.page-news .news .news-item {
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  html body.page-news .news .news-item__image {
    position: relative;
    width: 100% !important;
    height: 100%;
    min-height: 120px;
    align-self: stretch;
  }
  html body.page-news .news .news-item__image .ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-position: center;
    background-size: cover;
  }
  html body.page-news .news .news-item__title[data-top-type] {
    line-height: 1.6 !important;
    margin-top: 8px !important;
  }
  html body.page-news .news .news-item__desc[data-top-type] {
    font-size: var(--top-body) !important;
    line-height: 1.75 !important;
    margin-top: 8px !important;
  }
  html body.page-news .news .news-item__meta { gap: 6px 8px !important; }
  html body.page-news .news .news-item__cat { padding-inline: 8px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html body.page-performance .performance-showcase__sticky {
    grid-template-rows: var(--performance-visual-height, 30%) minmax(0, 1fr) !important;
  }
}

/* Match the 768px boundary used by the home page's normal document flow. */
@media (width: 768px) {
  html body.page-home .stage > .life-gallery {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 0 44px;
  }
  html body.page-home .life-gallery__viewport {
    position: relative;
    inset: auto;
    height: 380px;
  }
}

/* v101: retain the approved contact panel at the 768px flow boundary. */
@media (width: 768px) {
  html body.page-home .stage > .contact.contact--coded-v76 {
    min-height: 806px;
  }
}
