/* img91/style.css — Álbum · Photobucket abandonado anos 2000 */

:root {
  --bg-album: #1A1A1A;
  --bg-darker: #0E0E0E;
  --thumb-bg: #2A2A2A;
  --text: #BCBCBC;
  --text-dim: #888;
  --text-faded: #555;
  --blood: #5C0A0A;
  --blood-bright: #8B1A1A;
  --border: #3A3A3A;
  --border-active: #5C0A0A;
  --f-album: Verdana, Tahoma, Arial, sans-serif;
  --f-date: 'Courier New', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-album);
  font-family: var(--f-album);
  color: var(--text);
  padding: 30px 20px;
  min-height: 100vh;
}

.album-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.album-title {
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}
.album-subtitle {
  font-family: var(--f-date);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.thumb {
  background: var(--thumb-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.thumb:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 12px rgba(92, 10, 10, 0.4);
}
.thumb-frame {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}
.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* P&B aplicado em todas as fotos do álbum, exceto F8 (colar) que mantém cor */
.thumb-frame {
  filter: grayscale(1);
}
.thumb[data-photo="8"]:not(.thumb-locked) .thumb-frame {
  filter: none;
}
.thumb:hover .thumb-frame img {
  filter: brightness(0.7);
}

.thumb-locked .thumb-frame img {
  filter: brightness(0.3) blur(2px);
}
.thumb-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
}
.thumb-lock-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.thumb-lock-text {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.thumb-lock-hint {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.thumb-meta {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text);
}
.thumb-caption {
  font-style: italic;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.thumb-date {
  color: var(--text-dim);
  font-family: var(--f-date);
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.thumb-views {
  color: var(--text-faded);
  font-family: var(--f-date);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  background: var(--bg-darker);
  padding: 30px;
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 22px;
  cursor: pointer;
  font-family: var(--f-album);
}
.lightbox-close:hover { color: var(--blood-bright); }
.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}
.lightbox-meta {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.lightbox-meta .caption {
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

/* Footer */
.album-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
.favoritar, .comentar {
  background: var(--thumb-bg);
  color: var(--text);
  border: 1px outset var(--border);
  padding: 6px 14px;
  font-family: var(--f-album);
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}
.favoritar:hover { background: #383838; }
.comentar[disabled] { opacity: 0.5; cursor: not-allowed; }
.footer-msg {
  font-style: italic;
  margin-left: 12px;
}
.cvv-footer {
  margin-top: 24px;
  font-family: var(--f-date);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faded);
  opacity: 0.7;
}
.cvv-footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-faded);
}
.cvv-footer a:hover {
  color: var(--blood-bright);
  border-bottom-color: var(--blood-bright);
}

/* ===== Mecânicas das fotos ===== */

/* P&B no lightbox: aplicado nos wraps (que o JS não toca).
   F7 já tem grayscale(1) próprio (CCTV). F8 usa estrutura .f8-colar-3d e mantém cor. */
.f1-img-wrap,
.f2-frames,
.f3-img-wrap,
.f4-img-wrap,
.f5-img,
.f6-img-wrap {
  filter: grayscale(1);
}

/* F1 — Casamento (zoom slider) */
.f1-zoom-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f1-img-wrap {
  position: relative;
  overflow: hidden;
  width: 600px;
  max-width: 90vw;
  height: 400px;
  max-height: 60vh;
  background: #000;
}
.f1-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center 80%;
  transition: transform 0.15s ease;
}
.f1-figura-fundo {
  position: absolute;
  bottom: 30%;
  left: 45%;
  width: 30px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  filter: blur(2px);
}
.f1-zoom-slider { width: 80%; max-width: 400px; accent-color: var(--blood); }

/* F2 — Sapatinhos (hold) */
.f2-frame-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.f2-frames {
  width: 600px;
  max-width: 90vw;
  height: 400px;
  max-height: 60vh;
  background: #1A1A1A;
  border: 1px solid var(--border);
  position: relative;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}
.f2-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.f2-frame-3 {
  filter: brightness(0.45) saturate(0.4);
}

/* F3 — Polaroide formatura (slider de exposição) */
.f3-exposicao-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f3-img-wrap { position: relative; width: 600px; max-width: 90vw; height: 400px; max-height: 60vh; background: #000; }
.f3-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.15s ease; }
.f3-figura-plateia {
  position: absolute;
  bottom: 25%;
  right: 18%;
  width: 22px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(1.5px);
  pointer-events: none;
}
.f3-slider { width: 80%; max-width: 400px; accent-color: var(--blood); }

/* F4 — Filha de longe (foco que nunca foca) */
.f4-foco-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f4-img-wrap { position: relative; width: 600px; max-width: 90vw; height: 400px; max-height: 60vh; background: #000; }
.f4-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(var(--f4-blur, 4px));
}
.f4-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  color: var(--text);
  font-family: var(--f-album);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.f4-overlay.revealed { opacity: 1; }
.f4-slider { width: 80%; max-width: 400px; accent-color: var(--blood); }

/* F5 — Cachoeira (EXIF panel) */
.f5-cachoeira-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f5-img { width: 600px; max-width: 90vw; max-height: 50vh; object-fit: contain; }
.f5-exif-btn {
  background: var(--thumb-bg);
  color: var(--text);
  border: 1px outset var(--border);
  padding: 8px 16px;
  font-family: var(--f-album);
  font-size: 12px;
  cursor: pointer;
}
.f5-exif-btn:hover { background: #383838; }
.f5-exif-panel {
  background: #0E0E0E;
  border: 1px solid var(--border);
  padding: 16px 24px;
  font-family: var(--f-date);
  font-size: 12px;
  color: var(--text);
  max-width: 500px;
}
.f5-exif-header { color: var(--blood-bright); margin-bottom: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.f5-exif-table { width: 100%; border-collapse: collapse; }
.f5-exif-table td { padding: 4px 8px; vertical-align: top; }
.f5-exif-table td:first-child { color: var(--text-dim); width: 40%; }
.f5-exif-table em { color: var(--blood-bright); font-style: normal; font-weight: 600; }

/* F6 — Festa surpresa (crossfade festa cheia ↔ vazia) */
.f6-festa-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f6-img-wrap {
  position: relative;
  width: 600px;
  max-width: 90vw;
  height: 400px;
  max-height: 60vh;
  background: #000;
  overflow: hidden;
}
.f6-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.f6-festa { z-index: 2; animation: f6Flash 2.4s ease-in-out infinite; }
.f6-vazia { z-index: 1; }
@keyframes f6Flash {
  0%, 80%, 100% { opacity: 1; }
  85%, 95% { opacity: 0; }
}

/* F7 — Câmera de segurança */
.f7-cctv-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.f7-img-wrap {
  position: relative;
  width: 600px;
  max-width: 90vw;
  height: 400px;
  max-height: 60vh;
  background: #000;
  filter: grayscale(1) contrast(1.3);
  --f7-step: 0;
}
.f7-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f7-figura {
  position: absolute;
  bottom: 18%;
  left: calc(50% - 12px - var(--f7-step) * 0.05%);
  width: 24px;
  height: calc(60px + var(--f7-step) * 0.4px);
  background: rgba(0,0,0,0.95);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  transition: all 0.4s ease;
  filter: blur(1px);
  pointer-events: none;
}
.f7-timestamp {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--f-date);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

/* F8 — Colar (rotação 3D) */
.f8-colar-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; perspective: 800px; }
.f8-colar-3d {
  width: 380px;
  height: 380px;
  max-width: 80vw;
  max-height: 50vh;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--f8-rotation, 0deg));
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.f8-colar-3d:active { cursor: grabbing; }
.f8-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  border: 1px solid var(--border);
  backface-visibility: hidden;
  font-family: var(--f-album);
  color: var(--text);
}
.f8-frente { transform: rotateY(0deg); }
.f8-verso { transform: rotateY(180deg); background: linear-gradient(135deg, #1F0A0A, #0E0202); }
.f8-colar-icon { font-size: 100px; margin-bottom: 16px; opacity: 0.8; }
.f8-frente-img {
  width: 100%;
  height: calc(100% - 28px);
  object-fit: cover;
  display: block;
}
.f8-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.f8-gravacao {
  font-family: var(--f-date);
  font-size: 28px;
  color: var(--blood-bright);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}
.f8-marker { color: var(--blood); margin: 0 8px; }
.f8-fragment {
  font-weight: 700;
  text-shadow: 0 0 8px rgba(139, 26, 26, 0.6);
}
.f8-hint {
  font-size: 11px;
  color: var(--text-faded);
  margin-top: 8px;
  letter-spacing: 0.1em;
  font-style: italic;
}

@media (max-width: 600px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .thumb-meta { padding: 10px 12px; }
  .lightbox-content { padding: 20px; }
  .f1-img-wrap, .f3-img-wrap, .f4-img-wrap, .f6-img-wrap, .f7-img-wrap { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .thumb { transition: none; }
  .thumb:hover .thumb-frame img { filter: brightness(0.85); }
  .f1-img, .f1-figura-fundo,
  .f3-img, .f3-figura-plateia,
  .f4-overlay,
  .f7-figura,
  .f8-colar-3d {
    transition: none;
  }
  .f6-festa { animation: none; opacity: 0.55; }
}
