#videoModal .modal-dialog {
    max-width: 750px !important;
    width: 90% !important;
    margin: 10px auto !important;
    transform: none !important;
}

#videoModal .modal-content {
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: none !important;
}

.modal-backdrop.show {
    opacity: 0.85 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 999998 !important;
}

#videoModal,
#videoModal .modal-dialog,
#videoModal .modal-content {
    z-index: 999999 !important;
}

body.modal-open > *:not(#videoModal) {
    filter: brightness(40%) !important;
    transition: 0.3s ease-in-out;
}

#videoModal,
#videoModal * {
    filter: brightness(100%) !important;
    opacity: 1 !important;
}

.video-close-btn {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 999999;
    background: transparent;
    border: none;
    color: #d00;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.video-close-btn:hover {
    opacity: 1;
}

#videoModal .modal-header {
    padding: 16px 22px;
    border-bottom: none !important;
}

#videoModal .modal-title {
    font-size: 20px;
    font-weight: 700;
}

.video-wrapper {
    width: 100%;
    height: 420px;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        max-width: 95% !important;
        margin: 20px auto !important;
    }

    .video-wrapper {
        height: 250px;
    }

    #videoModal .modal-title {
        font-size: 18px;
    }
}
