@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --ink: #111111;
  --bg: #ffffff;
  --pink: #ff5fa2;
  --cyan: #2ee6d6;
  --gold: #f4c542;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'VT323', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.5;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--pink);
}

a:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 2px;
}

/* ---------- Layout: menu lateral + conteúdo ---------- */

.layout {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 32px 20px;
  border-right: 3px dashed var(--ink);
  position: sticky;
  top: 0;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 32px 0;
  background: linear-gradient(135deg, var(--pink), var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar nav li {
  margin-bottom: 14px;
}

.sidebar nav a {
  text-decoration: none;
  font-size: 22px;
  border-bottom: 2px dashed transparent;
}

.sidebar nav a:hover {
  border-bottom-color: var(--pink);
}

.content {
  flex: 1;
  padding: 32px 40px;
  max-width: 780px;
}

.content h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  margin-top: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 3px dashed var(--ink);
    position: static;
    padding: 20px;
  }
  .content {
    padding: 24px 20px;
  }
}

/* ---------- Grade de álbuns / fotos ---------- */

.album-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 16px 0;
  list-style: none;
  padding: 0;
}

.album-card, .photo-thumb {
  display: block;
  width: 100%;
  border: 3px dashed var(--ink);
  padding: 6px;
  background: var(--bg);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.album-card:hover, .photo-thumb:hover {
  border-color: var(--pink);
  border-style: solid;
}

.album-card img, .photo-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--ink);
}

.album-card .caption, .photo-thumb .caption {
  font-size: 16px;
  margin-top: 6px;
  display: block;
}

/* ---------- Lightbox / carrossel ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-box img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid #fff;
  background: #000;
}

.lightbox-caption {
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: 'Press Start 2P', monospace;
  cursor: pointer;
  padding: 8px 10px;
}

.lightbox-close {
  top: -18px;
  right: -18px;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }

@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next, .lightbox-close {
    position: static;
    transform: none;
    margin: 8px 6px 0 6px;
  }
}
