/* Scoped exclusively to the TDG redesigned Our Team page. */
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card {
  overflow: visible;
}
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card .directory-photo,
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-photo {
  display: block !important;
  width: 156px !important;
  max-width: 156px !important;
  height: 195px !important;
  max-height: 195px !important;
  aspect-ratio: 4 / 5 !important;
  margin: 18px auto 12px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #f4f2f8;
  box-shadow: 0 7px 20px rgba(27, 20, 48, .10);
  flex: 0 0 156px !important;
}
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card .directory-photo-image,
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] img.directory-photo-image {
  display: block !important;
  width: 156px !important;
  max-width: 156px !important;
  min-width: 0 !important;
  height: 195px !important;
  max-height: 195px !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  object-position: 50% 28% !important;
  margin: 0 auto !important;
  cursor: zoom-in;
}
body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card-button {
  align-items: center !important;
}
body.tdgx-team-photo-modal-open { overflow: hidden; }
.tdgx-team-photo-modal[hidden] { display: none !important; }
.tdgx-team-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.tdgx-team-photo-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 10, 24, .82);
  cursor: zoom-out;
}
.tdgx-team-photo-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  max-height: 90vh;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.tdgx-team-photo-dialog img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(90vh - 36px) !important;
  margin: 0 auto;
  object-fit: contain !important;
  border-radius: 14px;
}
.tdgx-team-photo-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #211735;
  color: #fff;
  font: 700 26px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.tdgx-team-photo-close:focus-visible {
  outline: 3px solid #8d72d9;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card .directory-photo,
  body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-photo {
    width: 132px !important;
    max-width: 132px !important;
    height: 165px !important;
    max-height: 165px !important;
    flex-basis: 132px !important;
    margin-top: 14px !important;
    border-radius: 14px !important;
  }
  body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] .directory-card .directory-photo-image,
  body.tdgx-redesign-page .tdgx-canvas[data-tdg-page="team"] img.directory-photo-image {
    width: 132px !important;
    max-width: 132px !important;
    height: 165px !important;
    max-height: 165px !important;
  }
  .tdgx-team-photo-modal { padding: 16px; }
  .tdgx-team-photo-dialog { width: 94vw; padding: 12px; border-radius: 18px; }
}
