/* ============================================================================
   PHOTO-MODAL.CSS - Estilos para modal de captura de foto (overlay full screen)
   ============================================================================ */

/* --- CONTAINER DO MODAL (overlay em tela cheia) --- */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 24px;
  opacity: 0;
  transition: opacity .2s ease;
}

/* Modal aparece quando ativado */
.photo-modal.is-visible {
  opacity: 1;
}

/* --- BOTÃO FECHAR (X no topo) --- */
.photo-modal-close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #000D3C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ícone SVG do botão fechar */
.photo-modal-close svg {
  width: 22px;
  height: 22px;
}

/* --- CONTEÚDO DO MODAL (centralizado) --- */
.photo-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
  height: 100%;
  justify-content: center;
}

/* --- CANTOS DECORATIVOS (4 cantos ao redor do frame) --- */
.photo-modal-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #d5d8de;
}

/* Canto superior esquerdo */
.photo-modal-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }

/* Canto superior direito */
.photo-modal-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }

/* Canto inferior esquerdo */
.photo-modal-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }

/* Canto inferior direito */
.photo-modal-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

/* --- HEADER DO MODAL (título + botão fechar) --- */
.photo-modal-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- FRAME DE CÂMERA (círculo rosa com bordinha espessa) --- */
.photo-frame {
  width: 300px;
  height: 380px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 8px solid var(--primary);
  overflow: hidden;
  background: #f1f2f4;
}

/* Vídeo/imagem dentro do frame (fill container) */
.photo-frame-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- AÇÕES DO MODAL (botões abaixo do frame) --- */
.photo-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
