/* HWF Teambeheer 1.0.7
   De shortcode staat in de normale paginacontainer (WordPress/Beaver Builder).
   Geen 100vw, geen positioneringshack en GEEN eigen achtergrondkleur. */
.hwf-team-directory {
  --hwf-navy: #030340;
  --hwf-ratio: 1/1;
  container-type: inline-size;
  color: var(--hwf-navy);
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}

.hwf-team-directory,
.hwf-team-directory *,
.hwf-team-directory *::before,
.hwf-team-directory *::after { box-sizing: border-box; }

.hwf-team-directory .hwf-team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 43px;
  padding: 0;
  border: 0;
}
.hwf-team-directory .hwf-team-nav a {
  color: var(--hwf-navy);
  text-decoration: underline;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  padding: 0;
  border: 0;
}
.hwf-team-directory .hwf-team-nav a:hover,
.hwf-team-directory .hwf-person-link:hover { text-decoration: underline; }
.hwf-team-directory .hwf-team-nav a:focus-visible,
.hwf-team-directory .hwf-person-link:focus-visible {
  outline: 2px solid var(--hwf-navy);
  outline-offset: 2px;
}

.hwf-team-directory .hwf-team-group {
  margin: 0 0 40px;
  padding: 0;
}
.hwf-team-directory .hwf-team-group:last-child {
  margin-bottom: 0;
}
/* Alleen nodig wanneer de shortcode een anker-navigatie toont. */
.hwf-team-directory--with-nav .hwf-team-group {
  scroll-margin-top: 85px;
}
.hwf-team-directory .hwf-team-heading {
  color: var(--hwf-navy);
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.hwf-team-directory .hwf-team-heading::before,
.hwf-team-directory .hwf-team-heading::after { content: none; }

.hwf-team-directory .hwf-team-grid {
  display: grid;
  grid-template-columns: repeat(var(--hwf-cols, 5), minmax(0, 1fr));
  gap: 34px var(--hwf-col-gap, 35px);
  align-items: start;
  margin: 0;
  padding: 0;
}
.hwf-team-directory .hwf-person {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}
.hwf-team-directory .hwf-person-photo {
  display: block;
  width: 100%;
  aspect-ratio: var(--hwf-ratio, 1/1);
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
.hwf-team-directory .hwf-person-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 12%;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
}
.hwf-team-directory .hwf-person-photo--center .hwf-person-image { object-position: 50% 50%; }
.hwf-team-directory .hwf-person-photo--bottom .hwf-person-image { object-position: 50% 100%; }
.hwf-team-directory .hwf-person-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  color: var(--hwf-navy);
  font-size: 34px;
  font-weight: 700;
}
.hwf-team-directory .hwf-person-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: stretch;
  min-height: 0;
  padding: 16px 0 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  text-align: left;
}
.hwf-team-directory .hwf-team-group--management .hwf-person-role {
  min-height: 49px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hwf-team-directory .hwf-person-role {
  color: var(--hwf-navy);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.17;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 3px;
  padding: 0;
  text-align: left;
  overflow-wrap: break-word;
}
.hwf-team-directory .hwf-person-name {
  color: var(--hwf-navy);
  font-family: inherit;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.4px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: pretty;
  padding: 0;
  margin: 0;
  border: 0;
  text-align: left;
  box-shadow: none;
}
.hwf-team-directory .hwf-person-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
}
.hwf-team-directory .hwf-person-link {
  display: block;
  color: var(--hwf-navy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
  padding: 0;
  margin: 0;
  text-align: left;
  border: 0;
  box-shadow: none;
}

/* Container queries meten de daadwerkelijke Beaver Builder-kolom,
   niet het browservenster. Bij weinig ruimte minder kolommen. */
@container (max-width: 1000px) {
  .hwf-team-directory .hwf-team-grid {
    grid-template-columns: repeat(min(var(--hwf-cols, 5), 5), minmax(0, 1fr));
    column-gap: 28px;
  }
}
@container (max-width: 780px) {
  .hwf-team-directory .hwf-team-grid {
    grid-template-columns: repeat(min(var(--hwf-cols, 5), 4), minmax(0, 1fr));
    column-gap: 24px;
  }
}
@container (max-width: 680px) {
  .hwf-team-directory .hwf-team-grid {
    grid-template-columns: repeat(min(var(--hwf-cols, 5), 3), minmax(0, 1fr));
    column-gap: 18px;
  }
  .hwf-team-directory .hwf-team-group--management .hwf-person-role { min-height: 0; }
}
@container (max-width: 460px) {
  .hwf-team-directory .hwf-team-grid {
    grid-template-columns: repeat(min(var(--hwf-cols, 5), 2), minmax(0, 1fr));
    gap: 26px 13px;
  }
  .hwf-team-directory .hwf-team-heading { font-size: 24px; }
}
@container (max-width: 270px) {
  .hwf-team-directory .hwf-team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hwf-team-directory * { scroll-behavior: auto; }
}
