/* ==========================================================================
   OWL Controller (Networked) - Video Modal
   Uses shared modal styles, adds kiosk sizing
   ========================================================================== */

#video-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
}

#video-modal .modal-body {
    padding: 1rem;
    background: #000;
}

#video-feed-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Frame Viewer Modal (grab frame for inspection)
   ========================================================================== */

.frame-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.frame-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 95vw;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.frame-viewer-close {
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-viewer-close:active {
    background: rgba(255,255,255,0.15);
}

.frame-viewer-body {
    flex: 1;
    width: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.frame-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
