/* Galería v61: imagen completa y controles debajo. */
#photo-dialog{box-sizing:border-box;padding:0;border:1px solid #ffffff26;border-radius:18px;width:min(1120px,94vw);max-width:94vw;height:min(880px,90vh);height:min(880px,90dvh);max-height:94vh;max-height:94dvh;margin:auto;background:#06162c;color:#fff;overflow:hidden;box-shadow:0 28px 90px #0008}
#photo-dialog[open]{display:flex;flex-direction:column}#photo-dialog::backdrop{background:#031022df;backdrop-filter:blur(6px)}
#photo-dialog .cm-viewer-image{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:14px;background:radial-gradient(ellipse at center,#18314d,#06162c)}
#photo-dialog #full-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
#photo-dialog .cm-viewer-bar{display:flex;align-items:center;gap:24px;flex-shrink:0;padding:17px 22px;background:#092447;border-top:1px solid #ffffff1a}
.cm-viewer-caption{flex:1;min-width:0}.cm-viewer-caption>span{display:block;color:#b5c6db;font-size:10px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:5px}.cm-viewer-caption strong{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#photo-dialog .lightbox-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin:0;flex-shrink:0}#photo-dialog #modal-count{font-size:13px;font-variant-numeric:tabular-nums;min-width:58px;text-align:center;color:#e8eff8}
#photo-dialog button{position:static;float:none;margin:0;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#ffffff0c;color:white;cursor:pointer;transition:background .18s,border-color .18s}
#photo-dialog button svg{width:20px;height:20px;flex-shrink:0}#photo-dialog button:hover{background:#ec1838;border-color:#ec1838}#photo-dialog button:focus-visible{outline:3px solid white;outline-offset:3px}#photo-dialog button[hidden]{display:none}
#photo-dialog #close-photo{width:auto;gap:7px;padding:0 14px;border-radius:9px;font-size:12px}
@media(max-width:640px){#photo-dialog{width:96vw;max-width:96vw;border-radius:12px;height:86vh;height:86dvh}#photo-dialog .cm-viewer-image{padding:7px}#photo-dialog .cm-viewer-bar{flex-wrap:wrap;justify-content:space-between;gap:12px;padding:13px}.cm-viewer-caption{flex-basis:100%}.cm-viewer-caption strong{font-size:12px}#photo-dialog .lightbox-controls{gap:8px}}
@media(max-height:500px){.cm-viewer-caption{display:none}#photo-dialog .cm-viewer-bar{padding:8px 16px;justify-content:space-between}}
@media print{#photo-dialog{display:none!important}}
