.candidato-foto-modal {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px), calc(100vh - 112px));
    width: min(480px, calc(100vw - 32px), calc(100dvh - 112px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 24px 80px #0005;
    overflow: auto;
    overscroll-behavior: contain;
    font-family: inherit;
}

.candidato-foto-modal::backdrop { background: rgba(0, 0, 0, 0.82); }
.candidato-foto-modal__cabecalho { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 20px; }
.candidato-foto-modal__nome { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.candidato-foto-modal__nome:focus { outline: none; }
.candidato-foto-modal__fechar {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #525252;
    cursor: pointer;
}
.candidato-foto-modal__fechar:hover { background: #f5f5f5; color: #171717; }
.candidato-foto-modal__fechar:focus { outline: none; }
.candidato-foto-modal__fechar:focus-visible { outline: 2px solid #737373; outline-offset: 2px; }
.candidato-foto-modal__imagem { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; background: #f1f5f9; }
.candidato-foto-modal__erro { margin: 0; padding: 16px 20px; font-size: 14px; line-height: 1.5; }
