/* ===== Meme Gallery ===== */
.meme-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  padding: 8px;
  overflow-y: auto;
  height: 100%;
  background: #fff;
}

.meme-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #d4d0c8;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background: #f0f0f0;
}

.meme-thumb:hover {
  border-color: var(--hodl-orange);
  box-shadow: 0 0 4px rgba(255,149,0,0.3);
}

.meme-thumb img,
.meme-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme-thumb .video-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Lightbox */
.meme-lightbox {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.meme-lightbox img,
.meme-lightbox video {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  text-shadow: 1px 1px 2px #000;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
}

.lightbox-nav:hover {
  background: rgba(255,149,0,0.6);
}

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