/* 2026 WilderdijkDynamics. Featured projects use the shared article card layout. */
@layer featured-cases {
  main > section.wd-featured-cases {
    background: #14271d !important;
    padding-block: clamp(38px, 4.5vw, 72px) !important;
  }
  .wd-featured-cases .wd-work-heading h2 {
    color: #f5f7ef !important;
    margin: 0 !important;
    font-size: clamp(2rem, 3.3vw, 3.3rem) !important;
    line-height: 1.08 !important;
  }
  .wd-featured-cases .wd-work-heading > a {
    color: #f5f7ef !important;
    font-size: 1rem !important;
    font-weight: 650;
    text-decoration: none !important;
    border: 1px solid #92a797 !important;
    border-radius: 6px;
    padding-inline: 16px;
  }
  .wd-featured-cases .wd-card-foot { border-top: 0 !important; }
}
.wd-work-heading {
  display: flex;
  gap: 8px 22px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 2vw, 32px);
}
.wd-work-heading > a { display: inline-flex; align-items: center; min-height: 44px; }
.wd-work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.wd-featured-cases .wd-case-card .wd-card-cover img { object-position: top; }
.wd-featured-cases :is([data-work-case="westerink"], [data-work-case="simgasm"]) .wd-card-cover img {
  object-fit: contain !important;
  object-position: center;
}
.wd-featured-cases .wd-work-brand {
  display: block;
  width: 100px;
  height: 30px;
  max-width: 48%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
  opacity: .85;
}
.wd-featured-cases .wd-case-card:focus-within {
  outline: 3px solid #bce4bc;
  outline-offset: -3px;
}
.wd-featured-cases :is(.wd-work-heading a, .wd-work-list):focus-visible {
  outline: 2px solid #bce4bc;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .wd-work-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 420px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #96ac98 #263c2b;
    padding-bottom: 12px;
  }
  .wd-work-card { scroll-snap-align: start; }
}

@media (min-width: 761px) {
  .wd-related-work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wd-related-work-list [data-work-case] .wd-card-cover img {
  object-fit: cover !important;
  object-position: center;
}
.wd-related-work-list .case-collaboration { margin-top: 0; }
.wd-related-work-list:focus-visible,
.wd-related-work-list .wd-case-card:focus-within { outline: 2px solid #245e2c; }
