/* Modal Background Overlay */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1040; /* Behind the modal */
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

/* Modal Container */
.modal.fade {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10050; /* On top of the backdrop */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Modal Active State (for open modal) */
.modal.show {
    display: block;
    opacity: 1;
}

/* Modal Dialog */
.modal-dialog {
    /*max-width: 80%;*/
    margin: 0 auto;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button Styling */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
}

/* Modal Body */
.modal-body {
    padding: 0;
    position: relative;
}

/* Modal Footer (Optional) */
.modal-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

/* Default styling for iframe (larger screens) */
#videoIframe {
    /*width: 670px;*/
    height: 390px;
    margin-right: 152px; /* Default margin */
}

/* For mobile screens (portrait mode) */
@media (max-width: 768px) {
    /*#videoIframe {
        width: 380px;
        height: 320px;
        margin-right: 90px;*/ /* Adjust margin for mobile */
    /*}*/
}

/* For smaller tablets and landscape mobiles */
@media (max-width: 1024px) {
    #videoIframe {
        width: 380px;
        height: 320px;
        margin-right: 90px; /* Remove margin */
    }
}