﻿        /* Fixed Modal Styles */
        #videoModal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0; top: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.95);
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-sizing: border-box;
            flex-direction: column;
        }

        #videoModal.show {
            display: flex !important;  /* Properly activates flex layout */
        }

        #videoModal video {
            max-width: 95%;
            max-height: 95vh;
            width: 90vw;               /* Fixes tiny video */
            height: auto;
            border: 4px solid #333;
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(0,150,255,0.6);
        }

        #videoModal .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            background: rgba(0,0,0,0.6);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            text-align: center;
            line-height: 50px;
            z-index: 10000;            /* Above video */
            pointer-events: all;       /* Ensures clickable */
        }

        #videoModal .close-btn:hover {
            background: red;
            transition: background 0.3s;
        }

        /* Force video controls to be visible */
        #videoModal video::-webkit-media-controls-panel,
        #videoModal video::-moz-media-controls-panel {
            display: flex !important;
        }
