/* Basic modal overlay */
 .custom_video_modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050; /* Ensure it is on top */
    align-items: center;
    justify-content: center;
}

/* Custom modal dialog */
.custom_modal_dialog {
    width: 90%; /* Make the modal responsive and smaller on mobile */
    max-width: 50%; /* Max width of the modal */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Modal header (Close button at the top) */
.custom_modal_header {
    display: flex;
    justify-content: flex-end;  /* Align close button to the right */
    padding: 1rem;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;  /* Optional: add a small border between header and body */
}

/* Modal content wrapper */
.custom_modal_content {
    width: 100%;
}

/* Modal body (where the video will be) */
.custom_modal_body {
    padding: 20px;
    text-align: center;  /* Center the video */
}

/* Video iframe to take full width of modal */
#modalVideo {
    width: 100%;    /* Set iframe width to 100% of the modal's width */
    height: 450px;  /* Fixed height for the video */
    border: none;   /* Remove border around the iframe */
}

/* Show modal */
.custom_video_modal.show {
    display: flex;
}
.dg_text_40{
    font-size: 40px;
}
.text-19{
    font-size: 19px;
}
.dg_text_60{
    font-size: 60px;
}
/* For smaller screens (like mobile devices) */
@media (max-width: 768px) {
    /* Adjust the modal width and iframe height for smaller screens */
    .custom_modal_dialog {
        width: 100%;
    }
    .text-19{
        font-size: 15px;
    }
    .dg_text_60{
        font-size: 35px;
    }
    #modalVideo {
        height: 300px; /* Adjust the iframe height for smaller screens */
    }
    .height_80{
        height: 80vh;
    }
}