/* === Lightbox / Preview CSS  === */
.preview-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.65);
  z-index: 9999;
  padding: 20px;
}

.preview-card {
  position: relative;
  max-width: 92%;
  max-height: 92%;
  width: 900px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #111;
}

.preview-body img,
.preview-body iframe {
  max-width: 100%;
  max-height: 80vh;
  border: none;
  display: block;
}

.preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  user-select: none;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.preview-nav.left { left: 12px; }
.preview-nav.right { right: 12px; }

.preview-overlay {
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

