/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
  padding: 2rem;
}

.flash-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.flash-overlay.active {
  animation: screen-flash 0.1s ease-in-out;
}

@keyframes screen-flash {
  0%   { opacity: 0; }
  50%  { opacity: 0.9; }
  100% { opacity: 0; }
}

header {
  text-align: center;
  margin-bottom: 4rem;
}

header h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  font-weight: 400;
}

header p {
  font-size: 1rem;
  color: #bbb;
}

main {
  max-width: 800px;
  margin: 0 auto;
}

.intro {
  text-align: center;
  margin-bottom: 4rem;
}

.intro p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}


.contato {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 4rem;
}

.contato a {
  color: #f0f0f0;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.contato a:hover {
  color: #90caf9;
  border-color: #90caf9;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

.legenda {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem;
  text-align: center;
  font-style: italic;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.cta-botao {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff22;
  color: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-botao:hover {
  background-color: #ffffff44;
  border-color: #fff;
  color: #fff;
}

.logo {
  max-width: 89vw;
  width: clamp(233px, 55%, 377px);
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.55;
  animation: photo-click 2s ease-out;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.89; /* mais visível ao passar o mouse */
}

@keyframes photo-click {
  0% {
    transform: scale(1.44);
    filter: brightness(1.44);
  }
  100% {
    transform: scale(1);
    filter: brightness(0.89);
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: default; /* não mostra lupa por padrão */
  overflow: auto; /* permite scroll se imagem for maior */
}

.lightbox img {
  max-width: 89vw;
  max-height: 89vh;
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  display: block;
  margin: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox.zoomed {
  cursor: zoom-out;
}

.lightbox.zoomed img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

.subtitulo {
  grid-column: 1 / -1; /* Faz o subtítulo ocupar toda a largura da galeria */
  margin-top: 2rem;
  font-size: 1.4rem;
  text-align: center;
  color: var(--cor-título, #ccc);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 10px;
  gap: 1rem;
}

.grid a {
  display: block;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.grid a:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

section {
  margin-bottom: 4rem;
}
/* Centraliza verticalmente o cabeçalho na tela */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
body.flash {
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

/* Mostrar mais fotos: botão e grid extra */
.grid.mais {
  display: none; /* escondido inicialmente */
}

.ver-mais {
  display: block;
  margin: 1rem auto;
  padding: 0.6rem 1.2rem;
  background: #ffffff22;
  color: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ver-mais:hover {
  background: #ffffff44;
  border-color: #fff;
}

/* Ajuste para manter cantos arredondados e evitar bug no hover */
.grid a {
  border-radius: 10px; /* mantém no hover */
}

.grid img {
  border-radius: inherit; /* herda do pai */
  transition: transform 0.3s ease, opacity 0.3s ease; /* evita “pulos” */
}