.candidate-photo {
  overflow: hidden;
  isolation: isolate;
}

.team-page-hero .eyebrow + .team-subtitle {
  margin-top: 14px;
}

.candidate-photo.has-photo {
  aspect-ratio: 1;
  background-color: #f4f7f8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 21px 21px 0 0;
}

.candidate-photo:not(.has-photo)::before {
  width: clamp(76px, 30%, 112px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(0, 82, 127, .12);
  border-radius: 50%;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='22' r='12' fill='%2300527f'/%3E%3Cpath d='M10 58c1.8-13 10.4-20 22-20s20.2 7 22 20' fill='%2300527f'/%3E%3C/svg%3E")
    center / 62% no-repeat;
  box-shadow: 0 12px 30px rgba(0, 82, 127, .1);
}

.candidate-photo:not(.has-photo)::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  content: "Fotografie bude doplněna";
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

@media (max-width: 520px) {
  .candidate-photo:not(.has-photo)::before {
    width: 88px;
  }
}
