/* O fundo da modal (escondido por padrão) */
.image-modal {
  display: none; 
  position: fixed; 
  z-index: 10000; /* Acima de absolutamente tudo, inclusive do menu fixo */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.85); /* Fundo preto com 85% de opacidade */
  justify-content: center;
  align-items: center;
  cursor: zoom-out; /* Muda o mouse indicando que clicar fecha */
}

/* A imagem dentro da modal */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  
  /* Animação suave para abrir a imagem */
  animation: zoomIn 0.3s ease-in-out;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Botão de fechar (X) */
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--primary-color); /* Usa o vinho do seu bistrô no hover */
}