/* Cell-group photos: full-viewport viewer with the complete image visible. */
.cells-page .cell-gallery-stage{cursor:zoom-in}
.cells-page .cell-gallery-expand{position:absolute;top:14px;right:14px;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #a5c2d88c;border-radius:12px;background:#10365ae8;color:#f5d578;cursor:pointer;box-shadow:0 3px 12px #0003}
.cells-page .cell-gallery-expand:hover{background:#205982;color:#fff}
.cells-page .cell-gallery-expand:focus-visible{outline:3px solid #f1cb65;outline-offset:3px}
.cell-gallery-expand svg,.cell-photo-viewer button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.cell-photo-open{overflow:hidden;overscroll-behavior:none}
.cell-photo-viewer{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;background:#061424;color:#f8fafc;overflow:hidden;overscroll-behavior:contain;font-family:inherit}
.cell-photo-viewer:not([open]),.cell-photo-viewer [hidden]{display:none!important}
.cell-photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.cell-photo-viewer::backdrop{background:#061424}
.cell-photo-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:linear-gradient(120deg,#123455,#0b223a);border-bottom:1px solid #8daecc30}
.cell-photo-header h2{margin:0;min-width:0;color:#f5d578;font-size:clamp(1rem,2vw,1.3rem);font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.cell-photo-viewer button{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;padding:10px;border:1px solid #8fb4d377;border-radius:50%;background:#123b60ee;color:#fff;cursor:pointer;touch-action:manipulation}
.cell-photo-viewer button:hover{background:#235f8b;border-color:#d9bd72}
.cell-photo-viewer button:focus-visible{outline:3px solid #f1cb65;outline-offset:3px}
.cell-photo-viewer button:disabled{opacity:.35;cursor:default}
.cell-photo-header button{border-radius:12px}
.cell-photo-stage{position:relative;display:grid;place-items:center;min-height:0;min-width:0;padding:12px max(76px,env(safe-area-inset-right)) 12px max(76px,env(safe-area-inset-left));overflow:hidden;touch-action:pan-y pinch-zoom}
.cell-photo-stage img{display:block;width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;object-position:center;user-select:none;-webkit-user-drag:none}
.cell-photo-stage>[data-cell-photo]{position:absolute;top:50%;transform:translateY(-50%);z-index:2}
.cell-photo-stage>[data-cell-photo="prev"]{left:max(16px,env(safe-area-inset-left))}
.cell-photo-stage>[data-cell-photo="next"]{right:max(16px,env(safe-area-inset-right))}
#cellPhotoStatus{position:absolute;inset:50% 65px auto;margin:0;text-align:center;transform:translateY(-50%);font-size:.95rem;line-height:1.5;color:#d2dfeb}
.cell-photo-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(22px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));border-top:1px solid #8daecc30;background:#0b223a}
.cell-photo-footer p{margin:0;min-width:0;color:#e0e9f1;font-size:.9rem;line-height:1.55;overflow-wrap:anywhere}
#cellPhotoCount{flex-shrink:0;white-space:nowrap;color:#f5d578;font-size:.85rem;font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:700px){.cell-photo-header{gap:10px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.cell-photo-stage{padding:6px max(6px,env(safe-area-inset-right)) 6px max(6px,env(safe-area-inset-left))}.cell-photo-stage>[data-cell-photo="prev"]{left:max(10px,env(safe-area-inset-left))}.cell-photo-stage>[data-cell-photo="next"]{right:max(10px,env(safe-area-inset-right))}.cell-photo-footer{gap:12px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.cell-photo-footer p{font-size:.8rem}.cells-page .cell-gallery-expand{top:10px;right:10px}}
@media(max-height:450px){.cell-photo-header{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}.cell-photo-footer{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.cell-photo-footer p{font-size:.75rem}}
