/* Imágenes del artículo: marco para que se distingan del fondo y ampliación al pulsar
   (2026-10-17, pedido del usuario: las capturas blancas de ySense no se apreciaban).
   Lo carga inc/zoom.php solo en entradas. Los iconos de las tarjetas no se tocan. */

.entry-content figure.wp-block-image:not(.jt-app__icono) img {
  border: 1px solid rgba(41, 41, 75, .14);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(41, 41, 75, .12);
  background: #fff;
}

.entry-content img.jt-zoom {
  cursor: zoom-in;
  transition: box-shadow .15s ease;
}
.entry-content img.jt-zoom:hover,
.entry-content img.jt-zoom:focus-visible {
  box-shadow: 0 8px 24px rgba(41, 41, 75, .22);
  outline: none;
}

/* La capa es el contenedor que se desplaza. Dentro, el lienzo se centra con
   margin:auto, que (a diferencia de flex con center) no corta nada cuando la
   imagen es más grande que la pantalla. */
.jt-zoom-capa {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(14, 14, 30, .96);
  cursor: zoom-out;
  animation: jt-zoom-entra .15s ease;
}
.jt-zoom-lienzo {
  margin: auto;
  padding: 64px 12px 56px;
  box-sizing: border-box;
}
.jt-zoom-lienzo img {
  display: block;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
/* Ampliada de más (captura ancha en móvil, tras tocarla): tamaño fijo y a desplazar. */
.jt-zoom-capa.jt-zoom-mas .jt-zoom-lienzo img { max-width: none; max-height: none; }
.jt-zoom-capa.jt-zoom-puede .jt-zoom-lienzo img { cursor: zoom-in; }
.jt-zoom-capa.jt-zoom-mas .jt-zoom-lienzo img { cursor: zoom-out; }

.jt-zoom-cerrar {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}
.jt-zoom-cerrar:hover,
.jt-zoom-cerrar:focus-visible { background: rgba(255, 255, 255, .32); outline: none; }
.jt-zoom-pista {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
html.jt-zoom-abierto, html.jt-zoom-abierto body { overflow: hidden; }

@keyframes jt-zoom-entra { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jt-zoom-capa { animation: none; } }
