.candidate-zoom-viewport {
    position: absolute;
    inset: 76px 56px 80px;
    width: auto;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* The controller handles two-finger image zoom and one-finger panning. */
    touch-action: none;
    user-select: none;
}
.candidate-zoom-viewport > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    cursor: zoom-in;
    border-radius: 8px;
}
.candidate-zoom-viewport.is-zoomed > img { cursor: grab; }
.candidate-zoom-viewport.is-zoomed:active > img { cursor: grabbing; }
.candidate-zoom-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(0,0,0,.75);
    border-radius: 12px;
    z-index: 10002;
}
.candidate-zoom-controls button {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.2);
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}
.candidate-zoom-controls button:hover { background: rgba(255,255,255,.35); }
.candidate-zoom-controls button:disabled { opacity: .4; cursor: default; }
.candidate-zoom-controls button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#candidate-post-lightbox > button,
#candidate-lightbox-modal > button,
.candidate-zoom-controls button { touch-action: manipulation; }
@media (max-width: 640px) {
    .candidate-zoom-viewport { left: 8px; right: 8px; }
}
