/* RMDQ v11 — conserva la lupa v4 y añade recorrido completo en el visor. */
#mainImage {cursor: zoom-in; user-select: none; -webkit-user-drag: none;}
#mainImage:focus-visible {outline: 3px solid #06bbd0;outline-offset:-5px;}
#photoStage.rmdq-zoom-active #mainImage {cursor: zoom-out;}
#photoStage.rmdq-zoom-active:hover .primary-image {transform: none;}
#photoStage .rmdq-magnifier {
  display: none; position:absolute; z-index:4; left:50%;top:50%;
  width:174px;height:174px; border-radius:50%;pointer-events:none;
  transform:translate(-50%,-50%);background-color:#f4f8fa;background-repeat:no-repeat;
  border:3px solid #fff;box-shadow:0 10px 35px rgba(3,30,43,.32), 0 0 0 2px rgba(0,195,219,.6);
}
#photoStage.rmdq-zoom-active.rmdq-zoom-visible .rmdq-magnifier {display:block;}
#photoStage .rmdq-photo-help {
  position:absolute;bottom:61px;left:19px;z-index:2;
  background:rgba(255,255,255,.94);border:1px solid rgba(223,234,238,.9);
  border-radius:100px;padding:8px 11px;color:#263f4a;
  font-size:11px;font-weight:700;line-height:1.3;pointer-events:none;
  box-shadow:0 3px 15px rgba(7,36,53,.06);
}
#photoStage .rmdq-photo-help i {margin-right:3px;color:#078ca3;}
#photoStage .photo-expand {cursor:pointer;z-index:5;}
#photoStage .photo-expand:hover {background:white;box-shadow:0 4px 15px rgba(6,51,68,.18);}
.rmdq-gallery-dialog {max-width:min(1100px,96vw);}
.rmdq-lightbox {background:#0b1d28;color:white;border:1px solid #1e3441;border-radius:18px;overflow:hidden;}
.rmdq-lightbox-header {padding:17px 23px 14px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #263c48;}
.rmdq-lightbox-title {margin:0;font-size:16px;font-weight:800;color:#f3fbff;}
.rmdq-lightbox-counter {display:block;font-size:12px;color:#a0b3bd;padding-top:3px;}
.rmdq-close-gallery {background:#273d4a;color:white;border:0;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;flex-shrink:0;font-size:27px;line-height:1;}
.rmdq-close-gallery:hover {background:#385461;}
.rmdq-lightbox-stage {height:min(70vh,730px);min-height:260px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;background:#07131b;touch-action:pan-y;}
#zoomedImage {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in;transition:transform .2s ease;user-select:none;-webkit-user-drag:none;}
#zoomedImage.rmdq-lightbox-enlarged {transform:scale(2);cursor:grab;transition:transform .07s ease-out;will-change:transform;}
.rmdq-lightbox-stage.rmdq-pan-enabled {touch-action:none;}
.rmdq-lightbox-stage.rmdq-panning #zoomedImage {cursor:grabbing;transition:none;}
#zoomedImage:focus-visible {outline:3px solid #19cfe0;outline-offset:-3px;}
.rmdq-gallery-arrow {position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:52px;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#102d3a;border:0;border-radius:12px;box-shadow:0 3px 18px #0003;font-size:38px;line-height:1;}
.rmdq-gallery-arrow.prev {left:14px;}
.rmdq-gallery-arrow.next {right:14px;}
.rmdq-gallery-arrow:not(:disabled):hover {background:#baf6fc;}
.rmdq-gallery-arrow:disabled {display:none;}
.rmdq-lightbox-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 24px;color:#a8bfc9;font-size:12px;}
.rmdq-lightbox-footer>span i {margin-right:7px;color:#34cada;}
.rmdq-gallery-zoom {border:1px solid #49636e;border-radius:9px;background:transparent;color:#f4fdff;padding:8px 15px;font-weight:700;}
.rmdq-gallery-zoom:hover {background:#193744;}
.rmdq-gallery-zoom i {margin-right:7px;}
@media(hover:none), (pointer:coarse) {
  #photoStage .rmdq-photo-help {bottom:64px;}
  #mainImage {cursor:pointer;}
}
@media(max-width:575px) {
  #photoStage .rmdq-magnifier {width:126px;height:126px;}
  .rmdq-gallery-dialog {max-width:100%;margin:0;min-height:100%;display:flex;align-items:center;}
  .rmdq-lightbox {border-radius:0;width:100%;}
  .rmdq-lightbox-stage {height:63vh;min-height:240px;}
  .rmdq-gallery-arrow {width:35px;height:45px;border-radius:9px;font-size:30px;}
  .rmdq-gallery-arrow.prev {left:7px;}
  .rmdq-gallery-arrow.next {right:7px;}
  .rmdq-lightbox-header {padding:13px 16px;}
  .rmdq-lightbox-footer {padding:11px 15px;font-size:11px;}
}
@media(prefers-reduced-motion:reduce) {#zoomedImage {transition:none;} }
