/* ============================================
   Lightbox — solo estilos del overlay
   No define estilos de galería ni de <img>,
   así que no interfiere con el diseño que ya
   tienes. Solo agrega un cursor de "zoom" a las
   imágenes que marques con la clase js-lightbox.
   ============================================ */

img.js-lightbox {
  cursor: zoom-in;
}

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

.mg-overlay.mg-active {
  display: flex;
}

.mg-overlay img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: mg-zoomIn 0.2s ease;
}

@keyframes mg-zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mg-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #f2f2f2;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 8px;
}

.mg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #f2f2f2;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mg-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mg-prev {
  left: 16px;
}

.mg-next {
  right: 16px;
}

.mg-overlay-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #cfcfcf;
  font-size: 0.9rem;
  margin: 0;
}
