.modal-video {
    display: none;
    position: absolute;
    /* Changed from fixed to absolute */
    z-index: 99999;
    left: 0;
    /* top will be set by JS */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-video-content {
    background-color: #fefefe;
    padding: 10px;
    border: 1px solid #888;
    width: 850px;
    max-width: 95vw;
    height: auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-video-modal {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-video-modal:hover,
.close-video-modal:focus {
    color: #ff5000;
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Specific overrides or additions if needed */
#lockScreenID.lock {
    overflow: hidden;
}

.video-fallback-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid #ff0000;
}

.video-fallback-btn:hover {
    background-color: white;
    color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.video-fallback-btn i {
    font-size: 20px;
}