/* Native Query Loop cards, matching the homepage news cards in both canvases. */
/* Allow the additional Projects branch without crowding the logo. */
#header-desktop .header__main-inner { gap: 24px; }
#header-desktop .header__logo { flex-shrink: 0; }
#header-desktop .header__nav-list { gap: 16px; }
#header-desktop .header__nav-list > li > a { font-size: 16px; }
.projects-posts {
  container-type: inline-size;
  font-family: var(--font-montserrat, Montserrat, sans-serif);
}
.projects-posts .wp-block-post-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@container (min-width: 580px) {
  .projects-posts .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1000px) {
  .projects-posts .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.projects-posts .wp-block-post-template > li { margin: 0; padding: 0; min-width: 0; }
.projects-posts .wp-block-group__inner-container { display: contents; }
.projects-posts .post-default {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gray-200, #e5e7eb);
  border-radius: 16px;
  background: var(--color-white, #fff);
  transition: transform .3s, box-shadow .3s;
}
.projects-posts .post-default:hover { transform: translateY(-4px); translate: none; box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a; }
.projects-posts .post-default:focus-within { outline: 2px solid var(--color-brand-blue, #316fea); outline-offset: 2px; }
.projects-posts .projects-posts__image {
  aspect-ratio: 5 / 3;
  background: url('../images/thumbnail-placeholder.svg') center / cover;
  overflow: hidden;
  position: relative;
  margin: 0;
}
.projects-posts .projects-posts__image figure,
.projects-posts .projects-posts__image a { display: block; height: 100%; margin: 0; }
.projects-posts .projects-posts__image img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .5s; }
.projects-posts .post-default:hover .projects-posts__image img { transform: scale(1.05); }
.projects-posts .post-default__content { display: flex; flex-direction: column; flex: 1; padding: 24px; margin: 0; }
.projects-posts .post-default__title {
  font-family: inherit;
  font-size: 20px;
  line-height: 1.375;
  font-weight: 700;
  color: var(--color-brand-dark, #0b102b);
  margin: 0 0 12px;
}
.projects-posts .post-default__title a { color: inherit; text-decoration: none; }
.projects-posts .post-default__excerpt { color: var(--color-gray-600, #4b5563); font-size: 14px; line-height: 1.625; margin: 0 0 24px; flex: 1; }
.projects-posts .wp-block-post-excerpt__excerpt { margin: 0; }
.projects-posts .post-default__read-more {
  color: var(--color-brand-navy, #163862);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: #1638624d;
  margin: auto 0 0;
}
.projects-posts .post-default:hover .post-default__read-more { color: var(--color-brand-blue, #316fea); }
.projects-posts .wp-block-query-no-results p { color: var(--color-gray-600, #4b5563); }
@media (min-width: 768px) {
  .projects-posts .post-default__content { padding: 32px; }
  .projects-posts .post-default__excerpt { font-size: 16px; }
}
