
/* PROJECT GALLERY VISUAL FIX V17
   Prevents category labels from colliding and keeps every project image aligned. */
.featured-projects-section { overflow: clip; }
.featured-projects-section .project-category-tabs {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  height: auto !important;
  min-height: 64px;
  margin-inline: auto !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
  overflow: visible !important;
  border: 2px solid rgba(57,255,20,.72);
  border-radius: 0 !important;
  background: rgba(11,13,18,.96) !important;
  box-shadow: 7px 7px 0 #ff1493;
}
.featured-projects-section .project-category-trigger {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 46px;
  padding: 10px 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.18 !important;
  font-size: clamp(.72rem, 1vw, .9rem) !important;
  font-weight: 900 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.featured-projects-section .project-category-trigger[data-state="active"] {
  color: #071006 !important;
  background: #39ff14 !important;
  border-color: #030405 !important;
  box-shadow: 4px 4px 0 #ff1493 !important;
  transform: translate(-1px,-1px);
}
.featured-projects-section .project-grid { align-items: stretch; }
.featured-projects-section .project-grid > div { height: 100%; }
.featured-projects-section .project-card {
  height: 100%;
  border-radius: 0 !important;
  box-shadow: 8px 8px 0 #25e6ff;
}
.featured-projects-section .project-grid > div:nth-child(3n + 2) .project-card { box-shadow: 8px 8px 0 #ff1493; }
.featured-projects-section .project-grid > div:nth-child(3n + 3) .project-card { box-shadow: 8px 8px 0 #39ff14; }
.featured-projects-section .project-card-media {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  background: #07090d !important;
  border-bottom: 2px solid #07090d;
}
.featured-projects-section .project-card-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #07090d;
}
@media (max-width: 1020px) {
  .featured-projects-section .project-category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .featured-projects-section { padding-block: 4rem !important; }
  .featured-projects-section .container { padding-inline: 14px !important; }
  .featured-projects-section .project-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 8px !important;
    box-shadow: 5px 5px 0 #ff1493;
  }
  .featured-projects-section .project-category-trigger {
    min-height: 48px;
    font-size: .7rem !important;
    padding: 9px 7px !important;
  }
  .featured-projects-section .project-card { box-shadow: 6px 6px 0 #25e6ff; }
}
@media (max-width: 340px) {
  .featured-projects-section .project-category-tabs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-projects-section .project-card-image,
  .featured-projects-section .project-category-trigger { transition: none !important; transform: none !important; }
}
