/* Visor de fotos con zoom (fargwest_visorpdf) */
html.fw-fotos-abierto, html.fw-fotos-abierto body { overflow: hidden !important; }
.fw-fotos { position: fixed; inset: 0; z-index: 100001; display: flex; flex-direction: column; background: #080808; color: #eee; font: 500 .9rem/1.2 system-ui, sans-serif; animation: fw-fotos-entra .15s ease-out; }
@keyframes fw-fotos-entra { from { opacity: 0; } to { opacity: 1; } }
.fw-fotos__barra { position: relative; z-index: 3; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: rgba(17, 17, 17, .9); }
.fw-fotos__cuenta { flex: 0 0 auto; opacity: .75; font-variant-numeric: tabular-nums; }
.fw-fotos__titulo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.fw-fotos__zoom { flex: 0 0 auto; opacity: .7; font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }
.fw-fotos__boton { display: inline-flex; align-items: center; justify-content: center; height: 2.1rem; min-width: 2.1rem; padding: 0 .7rem; border: 1px solid #333; border-radius: .5rem; background: #1c1c1c; color: #eee; font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.fw-fotos__boton:hover { background: #2a2a2a; border-color: #4a4a4a; color: #fff; }
.fw-fotos__cerrar { font-size: 1.1rem; padding: 0; }
.fw-fotos__escena { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; }
.fw-fotos.es-ampliada .fw-fotos__escena { cursor: grab; }
.fw-fotos.es-ampliada .fw-fotos__escena.es-arrastrando { cursor: grabbing; }
.fw-fotos__img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 50% 50%; transition: opacity .2s; will-change: transform; pointer-events: none; }
.fw-fotos__img.es-animado { transition: transform .25s ease, opacity .2s; }
.fw-fotos__cargando { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: fw-fotos-gira .8s linear infinite; }
.fw-fotos__cargando[hidden] { display: none; }
@keyframes fw-fotos-gira { to { transform: rotate(360deg); } }
.fw-fotos__lado { position: absolute; top: 50%; z-index: 2; width: 3rem; height: 5rem; margin-top: -2.5rem; border: 0; border-radius: .5rem; background: rgba(0, 0, 0, .35); color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .7; }
.fw-fotos__lado:hover { opacity: 1; background: rgba(0, 0, 0, .6); }
.fw-fotos__lado[hidden] { display: none; }
.fw-fotos__lado--ant { left: .6rem; }
.fw-fotos__lado--sig { right: .6rem; }
.fw-fotos.es-ampliada .fw-fotos__lado { opacity: .25; }
.fw-fotos__ayuda { position: absolute; left: 0; right: 0; bottom: .6rem; z-index: 2; text-align: center; font-size: .75rem; opacity: .45; pointer-events: none; }
.fw-fotos.es-ampliada .fw-fotos__ayuda { display: none; }
@media (max-width: 640px) {
  .fw-fotos__boton--texto, .fw-fotos__ayuda { display: none; }
  .fw-fotos__lado { width: 2.2rem; height: 3.6rem; margin-top: -1.8rem; font-size: 1.8rem; }
}
