/* ==================== */
/*   Fundo Parallax     */
/* ==================== */

.album-body {
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
  font-weight: lighter;

  /* Pega a imagem da custom property e aplica no background */
  background-image: var(--album-fundo);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  min-height: 100vh;
  position: relative;
}

/* Camada preta para escurecer */
.album-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

/* Container principal do álbum */
.album-container {
  min-height: 100vh; /* faz ter ao menos a altura da tela */
  position: relative;
  z-index: 1; /* acima do overlay, caso use ::before no body */
  margin-top: 60px; /* Se seu navbar for fixo e ~120px */
  padding: 20px;
}

/* ==================== */
/*   Título e Descrição */
/* ==================== */
.album-title {
  font-size: 2.2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0; /* para animação */
}

.album-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0; /* para animação */
}

/* ==================== */
/*     Grid de Mídias   */
/* ==================== */
.album-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Cada card */
.album-card {
  width: 300px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0; /* para animação fadeUp */
  transition: transform 0.3s ease;
}
.album-card:hover {
  transform: translateY(-5px);
}

/* Foto do card */
.album-card-image {
  aspect-ratio: 1 / 1;
  height: auto;
  background-position: center;
  background-size: cover;
}

/* Ícone p/ vídeo */
.album-card-video-icon {
  width: 100%;
  height: 200px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

/* ==================== */
/*   Botão Voltar       */
/* ==================== */
.back-button-container {
  text-align: center;
  margin-top: 40px;
}
.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f3ca4c;
  color: #000;
  text-decoration: none;
  font-family: "Lora", serif;
  font-weight: lighter;
  border-radius: 4px;
}
.back-button:hover {
  background-color: #daaf2f;
}

/* ==================== */
/*     ANIMAÇÕES        */
/* ==================== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Atribuímos a classe 'anim-item' no HTML ou via JS para TÍTULO e DESCRIÇÃO */
.anim-item {
  animation: fadeUp 0.6s ease forwards;
}

/* Atribuímos 'anim-card' nos .album-card e JS para delay */
.anim-card {
  animation: fadeUp 0.6s ease forwards;
}

/* ==================== */
/*        LIGHTBOX      */
/* ==================== */
.lightbox {
  display: none; /* oculto inicialmente */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.lb-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  opacity: 0.8;
}
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}
.lb-prev {
  left: 10px;
}
.lb-next {
  right: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .album-card {
    width: 100%;
  }
  .album-card-image,
  .album-card-video-icon {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}
