.ortho-doctor-card {
  grid-template-areas: "photo body" "certificates body";
  grid-template-rows: auto 1fr;
  row-gap: 24px;
  align-items: start;
}

.ortho-doctor-card__photo {
  grid-area: photo;
  align-self: start;
}

.ortho-doctor-card__photo img {
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-position: 70% center;
}

.ortho-doctor-card__body {
  grid-area: body;
  min-width: 0;
}

.ortho-doctor-card .ortho-profile-list a,
.ortho-career-list a {
  color: #5797c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ortho-profile-certificates {
  grid-area: certificates;
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: 0 24px 32px;
}

.ortho-profile-certificates figure {
  width: min(100%, 300px);
  margin: 0;
}

.ortho-profile-certificates a {
  display: block;
}

.ortho-profile-certificates img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #e4e8eb;
  border-radius: 4px;
  background: #fff;
}

.ortho-profile-certificate--jos {
  filter: brightness(1.14) saturate(.88);
}

.ortho-profile-certificates a:focus-visible,
.ortho-doctor-card__body a:focus-visible {
  outline: 2px solid #5797c8;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .ortho-intro .ortho-doctor-card {
    grid-template-areas: "photo" "body" "certificates";
    grid-template-rows: auto;
    row-gap: 0;
    max-width: calc(100% - 86px);
    margin-left: 0;
  }

  .ortho-doctor-card__photo img {
    height: 176px;
    aspect-ratio: auto;
  }

  .ortho-profile-certificates {
    padding: 0 22px 26px;
  }
}

@media (max-width: 360px) {
  .ortho-doctor-card__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ortho-career-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .ortho-profile-certificates {
    padding-right: 20px;
    padding-left: 20px;
  }
}
