/* Publicador Sencillo – lightbox de las imágenes de las noticias. */

img.pubs-lb-zoom { cursor: zoom-in; }
img.pubs-lb-zoom:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 3px; }

html.pubs-lb-open,
html.pubs-lb-open body { overflow: hidden !important; }

.pubs-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 64px;
  background: rgba(10, 12, 16, .94);
  color: #fff;
  touch-action: pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}
.pubs-lb.is-open { display: flex; animation: pubs-lb-in .18s ease-out; }
@keyframes pubs-lb-in { from { opacity: 0; } to { opacity: 1; } }

.pubs-lb-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
}
.pubs-lb-img {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  transition: filter .2s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.pubs-lb-img.is-loading { filter: blur(1px) brightness(.9); }
.pubs-lb-cap {
  flex: none;
  max-width: 900px;
  max-height: 25vh;
  overflow: auto;
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: center;
  color: #e8eaee;
}

.pubs-lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 400 34px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .15s ease;
}
.pubs-lb-btn:hover { background: rgba(255, 255, 255, .28); }
.pubs-lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pubs-lb-btn span { margin-top: -4px; }
.pubs-lb-close { top: 10px; right: 10px; }
.pubs-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.pubs-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.pubs-lb-count {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #cfd3da;
  pointer-events: none;
}
.pubs-lb [hidden] { display: none !important; }

@media (max-width: 599px) {
  .pubs-lb { padding: 56px 0 56px; }
  .pubs-lb-prev, .pubs-lb-next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .pubs-lb-prev { left: 16px; }
  .pubs-lb-next { right: 16px; }
  .pubs-lb-cap { padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pubs-lb.is-open { animation: none; }
  .pubs-lb-img, .pubs-lb-btn { transition: none; }
}
