/* =========================
   RESET
========================= */
*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ height:100%; }

body{
  min-height:100vh;
  overflow-x:hidden;
  background:#000;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-overflow-scrolling: touch;
  color:#fff;
}

/* =========================
   VÍDEO FUNDO
========================= */
#video-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  background:#000;
}

/* =========================
   OVERLAY ROMÂNTICO
========================= */
.overlay{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,0,150,.22), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255,90,200,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.78));
}

/* =========================
   PARTÍCULAS
========================= */
#particles{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none; /* não bloqueia clique */
}

/* =========================
   TÍTULO ANIMADO
========================= */
.titulo-animado{
  opacity: 0;
  transform: translateY(16px);
  animation: tituloIn 1s ease forwards;
}

@keyframes tituloIn{
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   BOTÃO MÚSICA
========================= */
.musicBtn{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #fff;
  font-weight: 800;
  font-size: 14px;

  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.musicBtn:active{
  transform: scale(0.98);
}

/* =========================
   CARD + PRÉVIA DAS FOTOS
========================= */
.card-foto{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.foto{
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* OPACIDADE DA PRÉVIA (mude aqui: 0.25, 0.35, 0.5, etc) */
  opacity: 0.25;

  /* deixa a prévia bonita sem deformar */
  aspect-ratio: 4 / 5;
  transition: opacity .25s ease, transform .25s ease;
}

.card-foto:hover .foto{
  opacity: 0.75;
  transform: scale(1.01);
}

/* celular: 1 foto por linha, tamanho equilibrado */
@media (max-width: 640px){
  .foto{
    aspect-ratio: 4 / 5;
  }
}

/* =========================
   MODAL (ABRIR FOTO)
========================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 9999;

  background: rgba(0,0,0,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal.ativo{
  display: flex;
  animation: modalFade .18s ease;
}

@keyframes modalFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/* barra do topo do modal (X fica aqui, não em cima da foto) */
.modalTop{
  position: sticky;
  top: 0;

  padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
  display: flex;
  justify-content: flex-end;

  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.fechar{
  width: 48px;
  height: 48px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);

  color: #fff;
  font-size: 22px;
  font-weight: 900;

  cursor: pointer;
}

/* área da imagem */
.modalBody{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
}

.modalBody img{
  max-width: 95%;
  max-height: 85vh;
  border-radius: 20px;

  object-fit: contain; /* mostra foto inteira */
  opacity: 1;          /* modal sempre 100% */

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 28px 80px rgba(0,0,0,.8);
}