/* Final mobile spacing and category layout; desktop card geometry is retained. */
@media (max-width: 767px) {
  body.page-home .contact--coded-v76 {
    min-height: 790px;
    padding-bottom: 48px !important;
  }
  body.page-home .contact--coded-v76 .contact__options {
    top: 270px;
    gap: 10px;
  }
  body.page-home .contact--coded-v76 .contact-option,
  body.page-home .contact--coded-v76 .contact-option:nth-child(n) {
    height: 170px;
    padding: 0 8px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.page-home .contact--coded-v76 .contact-option::before { margin-top: 24px; }
  body.page-home .contact--coded-v76 .contact-option__label { margin-top: 17px; }
  body.page-home .contact--coded-v76 .contact-option::after { margin-top: 14px; }
  body.page-home .contact--coded-v76 .contact-option__copy-break { display: block; }
  body.page-home .contact--coded-v76 .contact__button { bottom: 50px; }
}
@media (max-width: 1024px) {
  html body.page-news .news__side {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  html body.page-news .news__cat {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 6px !important;
    justify-content: center;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.5;
  }
  html body.page-news .news__cat:first-child { grid-column: 1 / -1; }
}
/* Pause continuous photo motion when its entire section is outside the view. */
.page-home .home-motion-offscreen .life-gallery__track {
  animation-play-state: paused !important;
}
.page-news .news-item[hidden], .page-news .news__empty[hidden] { display: none !important; }
.page-news .news__empty { padding: 32px 0; line-height: 1.8; }
@media (max-width: 767px) {
  html body.page-news .news__cat { gap: 7px; }
  html body.page-news .news__cat-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    margin: 0 !important;
  }
  html body.page-news .news__cat-icon svg { width: 16px; height: 16px; }
}
@media (max-width: 767px) {
  html body.page-news .news__cat {
    display: flex !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

/* Align category icons by column; keep the All category centered. */
@media (max-width: 767px) {
  html body.page-news .news__cat:not(:first-child) {
    justify-content: flex-start !important;
    padding-inline: clamp(8px, 2.5vw, 14px) !important;
    text-align: left;
  }
}
