/* Dengue.com.py — Lightbox styles (Fase 16) */

.dl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: dl-fade-in 0.18s ease-out;
}

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

@keyframes dl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dl-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  cursor: zoom-out;
}

.dl-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: dl-zoom-in 0.2s ease-out;
}

@keyframes dl-zoom-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.dl-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dl-btn:hover, .dl-btn:focus {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transform: scale(1.05);
}

.dl-close {
  top: 16px;
  right: 16px;
  font-size: 28px;
}

.dl-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.dl-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.dl-prev:hover, .dl-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.dl-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

.dl-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  z-index: 1;
}

/* Mobile: botones más cerca del borde, padding del stage menor */
@media (max-width: 600px) {
  .dl-stage {
    padding: 50px 10px;
  }
  .dl-btn {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
  .dl-close { top: 12px; right: 12px; }
  .dl-prev  { left: 8px; }
  .dl-next  { right: 8px; }
  .dl-counter, .dl-caption {
    bottom: 14px;
    font-size: 13px;
  }
  .dl-caption {
    bottom: 50px;
    max-width: 90vw;
  }
}

/* Cursor visual indicador */
[data-lightbox] {
  cursor: zoom-in;
}

/* Feedback del compresor */
.image-compress-feedback {
  font-size: 12px;
  transition: color 0.2s;
}
