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

body {
  font-family: "Georgia", serif;
  background-color: #111;
  color: #fefefe;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
}

/* Texto do header */
.header-text {
  text-align: center;
  max-width: 700px;
  margin-bottom: 40px;
}

.header-text h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.header-text p {
  font-size: 1.2rem;
  margin: 8px 0;
}

.header-text a {
  color: #fefefe;
  text-decoration: underline;
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

/* Imagens invisíveis inicialmente */
.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Classe que dispara a animação */
.gallery-img.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover suave */
.gallery-img:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
}

.photo-credit {
  font-family: "Playfair Display", serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin: 10px 20px 0 0;
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  gap: 8px;
}
.lang-switcher a {
  text-decoration: none;
  color: #fff; /* ajuste conforme fundo */
  transition: opacity 0.2s;
}
.lang-switcher a:hover {
  opacity: 0.7;
}
.lang-switcher span {
  font-weight: bold;
}

/* Responsivo */
@media (max-width: 600px) {
  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
  }
}

/* Ajuste do switcher no mobile */
@media (max-width: 600px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
    font-size: 12px;
  }

  .header-text {
    padding-top: 50px; /* cria espaço entre o nome e o switcher */
  }
}
