/* Visor de fotos: la imagen completa ocupa el espacio disponible. */
#m-img{cursor:zoom-in}
#m-img:focus-visible{outline:3px solid var(--or);outline-offset:-4px}
.cvm-photo-expand{position:absolute;top:12px;left:12px;z-index:3;display:flex;align-items:center;gap:7px;padding:10px 13px;border-radius:999px;background:rgba(20,18,15,.86);color:#fff;font:600 13px var(--body,sans-serif);cursor:pointer;box-shadow:0 2px 10px #0003}
.cvm-photo-expand[hidden]{display:none}
.cvm-photo-expand:focus-visible,.cvm-photo-viewer button:focus-visible{outline:3px solid #ff993f;outline-offset:3px}
.cvm-photo-viewer{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#101010;color:#fff;overflow:hidden;overscroll-behavior:contain}
.cvm-photo-viewer[open]{display:flex;flex-direction:column}
.cvm-photo-viewer::backdrop{background:#101010}
.cvm-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));flex:none;background:#101010}
.cvm-photo-title{font:600 16px var(--body,sans-serif);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cvm-photo-viewer button{border:0;cursor:pointer;color:#fff;background:#ffffff20;min-width:44px;min-height:44px;border-radius:999px;font:600 14px var(--body,sans-serif)}
.cvm-photo-close{padding:0 16px;flex:none}
.cvm-photo-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}
.cvm-photo-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.cvm-photo-viewer .cvm-photo-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;background:#101010bb;font:36px/1 sans-serif;box-shadow:0 2px 10px #0004}
.cvm-photo-prev{left:max(12px,env(safe-area-inset-left))}.cvm-photo-next{right:max(12px,env(safe-area-inset-right))}
.cvm-photo-viewer .cvm-photo-arrow[hidden]{display:none}
.cvm-photo-count{padding:12px 16px max(14px,env(safe-area-inset-bottom));flex:none;text-align:center;font:600 14px var(--body,sans-serif);background:#101010}
@media(max-width:600px){.cvm-photo-title{font-size:14px}.cvm-photo-toolbar{gap:10px}.cvm-photo-viewer .cvm-photo-arrow{width:44px;height:44px}.cvm-photo-expand{font-size:12px;padding:9px 11px}}
