body {
  position: relative; /* necessário para o ::before */
  margin: 0;
  font-family: 'Segoe UI';
  color: white;
  min-height: 100vh;
}

/* Camada do fundo */
body::before {
  content: "";
  position: fixed;           /* fica atrás de tudo */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("galeriafundo.jpeg"); /* ajuste o caminho */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(50%);   /* deixa a imagem mais escura/opaca */
  z-index: -1;               /* manda para trás */
}

h1 {
  text-align: center;
  margin: 30px 0;
}

/* GRID */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* CARD */
.card-galeria {
  margin-top: 60px;
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  transition: 0.3s;
  cursor: pointer;
}

.card-galeria:hover {
  transform: translateY(-5px);
}

/* IMAGEM */
.card-galeria img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* CONTEÚDO */
.card-conteudo {
  padding: 10px;
  font-size: 13px;
}

.card-conteudo h2 {
  font-size: 15px;
  margin: 0 0 6px 0;
}

.podio p {
  margin: 3px 0;
  font-weight: bold;
  font-size: 12px;
}

.stats {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  background: #151515;
  padding: 6px;
  border-radius: 6px;
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 20000; /* maior que o menu */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-img {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  margin-top: 50px;
}

.fechar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20001; /* acima de tudo */
  margin-top: 30px;
}

.menu-logo img {
  height: 50px; /* ajusta a altura da logo */
  width: auto;
}
