/* Lightbox Popup Styles */
.megi-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.megi-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.megi-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  text-align: center;
}

.megi-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.megi-lightbox-caption {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-top: 15px;
}

.megi-lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10000;
}

.megi-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.megi-lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

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