.dm_staff__heading {
  letter-spacing: 0.03em;
  font-family: var(--font_heading);
  font-weight: bold;
}

.dm_staff__email a {
  text-underline-offset: 0.2em;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration 0.2s;
}
.dm_staff {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 70px;
  margin-bottom: 65px;
}
@supports (padding: clamp(1em, 1vw, 1em)) {
  .dm_staff {
    margin-top: clamp(70px, 6.4285714286vw, 90px);
    margin-bottom: clamp(65px, 7.1428571429vw, 100px);
  }
}

.dm_staff__heading {
  letter-spacing: 0.1em;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--navy);
}
@supports (font-size: clamp(1em, 1vw, 1em)) {
  .dm_staff__heading {
    font-size: clamp(20px, 1.9444444444vw, 28px);
  }
}
@media (max-width: 768px) {
  .dm_staff__heading {
    text-align: center;
  }
}

.dm_staff__gallery {
  display: grid;
  column-gap: 30px;
  margin-top: -56px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto-fit, [row-start] auto 1fr auto [row-end]);
  align-items: flex-start;
}
.dm_staff__heading + .dm_staff__gallery {
  margin-top: -12px;
}
@media (min-width: 561px) {
  .dm_staff__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 961px) {
  .dm_staff__gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}
@supports (column-gap: clamp(1em, 1vw, 1em)) {
  .dm_staff__gallery {
    column-gap: clamp(30px, 4.2857142857vw, 60px);
  }
}

.dm_staff__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3; /* Span all 3 tracks in each row group */
  margin-top: 56px;
}
@media (max-width: 560px) {
  .dm_staff__item:nth-child(2n+1):nth-last-child(1) {
    transform: translateX(calc(50% + clamp(15px, 2.1428571429vw, 30px)));
  }
}
@media (min-width: 561px) and (max-width: 960px) {
  .dm_staff__item:nth-child(3n+1):nth-last-child(1) {
    transform: translateX(calc(100% + clamp(30px, 4.2857142857vw, 60px)));
  }
  .dm_staff__item:nth-child(3n+1):nth-last-child(2), .dm_staff__item:nth-child(3n+2):nth-last-child(1) {
    transform: translateX(calc(50% + clamp(15px, 2.1428571429vw, 30px)));
  }
}
@media (min-width: 961px) {
  .dm_staff__item:nth-child(5n+1):nth-last-child(1) {
    transform: translateX(calc(200% + clamp(60px, 8.5714285714vw, 120px)));
  }
  .dm_staff__item:nth-child(5n+1):nth-last-child(2), .dm_staff__item:nth-child(5n+2):nth-last-child(1) {
    transform: translateX(calc(150% + clamp(45px, 6.4285714286vw, 90px)));
  }
  .dm_staff__item:nth-child(5n+1):nth-last-child(3), .dm_staff__item:nth-child(5n+2):nth-last-child(2), .dm_staff__item:nth-child(5n+3):nth-last-child(1) {
    transform: translateX(calc(100% + clamp(30px, 4.2857142857vw, 60px)));
  }
  .dm_staff__item:nth-child(5n+1):nth-last-child(4), .dm_staff__item:nth-child(5n+2):nth-last-child(3), .dm_staff__item:nth-child(5n+3):nth-last-child(2), .dm_staff__item:nth-child(5n+4):nth-last-child(1) {
    transform: translateX(calc(50% + clamp(15px, 2.1428571429vw, 30px)));
  }
}

.dm_staff__image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.dm_staff__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-position: top center;
  object-fit: cover;
}

.dm_staff__details {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--ash);
}
.dm_staff__details p {
  text-wrap: balance;
}
.dm_staff__details p + p {
  margin-top: 5px;
}
.dm_staff__details strong {
  font-family: var(--font_heading);
  color: var(--navy);
}

.dm_staff__email {
  margin-top: 13px;
  font-size: 14px;
  text-align: center;
}
.dm_staff__email a {
  color: var(--navy);
}
.dm_staff__email a:hover, .dm_staff__email a:focus {
  text-decoration-color: currentColor;
  color: var(--navy_hover);
}
