/* Centra el bloque en cualquier pantalla */

.ukx-gallery {
  display: grid;
  place-items: center;
  padding: 10px;
}

/* Contenedor de imagen + overlay */

.ukx-img-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  width: 50%;
  max-width: 1000px;
  min-width: 320px;
}

/* Imagen */

.ukx-zoomable {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
  border-radius: 12px;
}

/* Overlay de “Haz clic para ampliar” — ahora CUBRE TODA la imagen */

.ukx-overlay-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  background: rgba(0,0,0,0.30);
  border-radius: 12px;
}

.ukx-img-wrap:hover .ukx-overlay-hint {
  opacity: 1;
}

/* en móviles (sin hover) no mostrar el texto de ayuda */

@media (hover:none) {
  .ukx-overlay-hint {
    display: none;
  }
}

/* ===== Lightbox ===== */

.ukx-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease;
}

.ukx-lightbox.ukx-open {
  display: flex;
  opacity: 1;
}

.ukx-lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.ukx-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease;
}

.ukx-lightbox__close:hover {
  background: rgba(255,255,255,.28);
  transform: scale(1.04);
}

/* ===== Responsivo ===== */

/* En móvil: que la miniatura ocupe todo el ancho y siga centrada */

@media (max-width: 576px) {
  .ukx-img-wrap {
    width: 100%;
    min-width: 0;
    max-width: 520px;
  }
}

