/* RESET */
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body {
  overflow-x: hidden;
  font-family: 'VT323', monospace;
}

/* BACKGROUND COLLAGE */
body {
  background:
    url("fundo1.jpg") center/cover no-repeat fixed,
    url("fundo2.jpg") center/cover no-repeat fixed;
  background-blend-mode: multiply;
  color:#111;
}
@keyframes breathe {
  0% { transform: scale(1); }
  100% { transform: scale(1.002); }
}

body {
  animation: breathe 8s infinite alternate ease-in-out;
}

/* TEXTURE OVERLAY */
body::before {
  content:"";
  position: fixed;
  inset:0;
  background: url("https://www.transparenttextures.com/patterns/grunge-wall.png");
  opacity:0.35;
  pointer-events:none;
  mix-blend-mode: multiply;
}
body {
  color: #000;
}
/* HEADER CENTRAL */
header,
.section,
footer,
nav,
p,
h1,
h2,
a {
  text-shadow:
    -2px -2px 0 #fff,
     0px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  0px 0 #fff,
     2px  0px 0 #fff,
    -2px  2px 0 #fff,
     0px  2px 0 #fff,
     2px  2px 0 #fff;
}
h1, h2 {
  color: #000; /* texto preto */
}
header {
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
  
}

h1 {
  font-family: 'IM Fell English', serif;
  font-size:120px;
  font-style: italic;
  letter-spacing:6px;
  line-height:0.9;
}

.subtitle {
  margin-top:20px;
  font-size:22px;
  display:inline-block;
  border:1px solid #111;
  padding:4px 12px;
  transform: rotate(-2deg);
  background: rgba(255,255,255,0.6);
}

nav {
  margin-top:50px;
}

nav a {
  text-decoration:none;
  margin:0 25px;
  font-size:28px;
  color:#111;
  transition:0.2s;
}

nav a:hover {
  text-decoration: line-through;
  letter-spacing:3px;
}
nav {
  position: relative;
  z-index: 9999;
}

/* LATERAL ORNAMENTS */
.adinkra-left, .adinkra-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size:28px;
  opacity:0.5;
  line-height:1.2;
}

.adinkra-left { left:10px; text-align:left; }
.adinkra-right { right:10px; text-align:right; }


/* SECTION STYLING */
.section {
  width:60%;
  margin:150px auto;
  position: relative;
  font-size:28px;
  line-height:1.4;
}

.section h2 {
  font-size:60px;
  margin-bottom:20px;
  font-family: 'IM Fell English', serif;
}

/* VISITOR MURAL */
#muralArea {
  position: relative;
  width:100%;
  min-height:400px;
  background: rgba #fff;
  border:1px solid #111;
  padding:20px;
  overflow:hidden;
  cursor: crosshair;
}

.mural-symbol {
  position: absolute;
  font-size: 26px; /* um pouco maior que antes */
  color: #000; /* símbolo preto */
  -webkit-text-stroke: 1px #fff; /* traçado branco */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff; /* fallback para garantir contorno */
     
     
}

/* efeito respirando */
@keyframes breathe {
  0%   { transform: scale(1) rotate(var(--rotation, 0deg)); }
  50%  { transform: scale(1.08) rotate(var(--rotation, 0deg)); }
  100% { transform: scale(1) rotate(var(--rotation, 0deg)); }
}
/* FOOTER */
footer {
  text-align:center;
  margin:150px auto 60px;
  font-size:18px;
  opacity:0.7;
}

/* SCROLLBAR */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-thumb { background:#111; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.3);}

/* ===================== */
/* GALLERY PAGE */
/* ===================== */

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px;
  justify-content: center;
}
header,
.section,
footer,
nav,
p,
h1,
h2,
a {
  text-shadow:
    -2px -2px 0 #fff,
     0px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  0px 0 #fff,
     2px  0px 0 #fff,
    -2px  2px 0 #fff,
     0px  2px 0 #fff,
     2px  2px 0 #fff;
}
.photo {
  transform: rotate(-3deg);
  transition: 0.4s ease;
}

.photo:nth-child(even) {
  transform: rotate(4deg);
}

.photo img {
  max-width: 280px;
  border: 1px solid #555;
  filter: contrast(110%) brightness(90%);
}

.photo:hover {
  transform: scale(1.05) rotate(0deg);
}

/* ===================== */
/* GALLERY GRID */
/* ===================== */
.gallery-grid {
  position: relative;
  z-index: 10;
  column-count: 3;
  column-gap: 20px;
  max-width: 1100px;
  margin: 60px auto;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer !important;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}
@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    column-count: 1;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 40px;
}

.lightbox-content {
  text-align: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  margin-bottom: 15px;
}

#lightbox-caption {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===================== */
/* TEXT PAGE — capas PNG flutuantes */
/* ===================== */

.text-archive {
  position: relative;
  width: 100%;
  min-height: 400px; /* garante que sempre tenha um tamanho base */
  padding: 40px;     /* mantém distância das bordas */
}

.text-entry {
  position: absolute;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-entry img {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Efeito silhueta no hover */
.text-entry:hover img {
  filter: brightness(0) invert(1); /* preto ou branco */
  transform: scale(1.05);
}

/* Overlay do título */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  color: #111;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostra título ao hover */
.text-entry:hover .text-overlay {
  opacity: 1;
  transform: translate(-50%, -60%);
}

/* Animação de flutuar */
@keyframes float {
  0%   { transform: translateY(0) rotate(var(--rot)); }
  50%  { transform: translateY(var(--float-offset, 8px)) rotate(var(--rot)); }
  100% { transform: translateY(0) rotate(var(--rot)); }
}
/* animação leve de flutuar */
@keyframes float {
  0% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(var(--float-offset)) rotate(calc(var(--rot) + 2deg)); }
  100% { transform: translateY(0) rotate(var(--rot)); }
}

/* ===================== */
/* DESLIGA RESPIRAÇÃO - PÁGINA DE TEXTO INDIVIDUAL */
/* ===================== */

body.text-page-body,
body.text-page-body * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}