/* ============================================================
   page.css — memes
   ============================================================ */

#parchment {
  min-height: 460px;
}

.meme-intro {
  border-bottom: 1px solid #c8a84b;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.meme-category {
  margin-bottom: 16px;
}

.cat-toggle {
  background: rgba(0,0,0,0.08);
  border: 1px solid #b8903a;
  border-radius: 4px;
  color: #5c3a08;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  padding: 6px 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  margin-bottom: 10px;
}
.cat-toggle:hover {
  background: rgba(0,0,0,0.15);
}

.cat-count {
  font-size: 0.75rem;
  opacity: 0.6;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 4px 0 10px;
}

.meme-grid img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #c8a84b;
  transition: transform 0.15s, box-shadow 0.15s;
}
.meme-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* page.css */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  border: none;
  transform: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#lb-close, #lb-prev, #lb-next {
  position: fixed;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.15s;
}
#lb-close { top: 16px; right: 16px; }
#lb-prev  { left: 16px; }
#lb-next  { right: 16px; }
#lb-close:hover, #lb-prev:hover, #lb-next:hover { background: rgba(0,0,0,0.8); }