
    /* Styles for dialog window */
    #small-dialog {
        background: #ffffff;
        padding: 0;
        max-width: 1200px;
        width: 90%;
        margin: 40px auto;
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(0, 0, 0, 0.05);
        animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    div#small-dialog iframe {
        width: 100%;
        height: 675px;
        display: block;
        border: none;
        background: #000;
    }

    /* Responsive adjustments */
    @media (max-width: 1280px) {
        #small-dialog {
            max-width: 1000px;
        }
        div#small-dialog iframe {
            height: 562px;
        }
    }

    @media (max-width: 1024px) {
        #small-dialog {
            max-width: 800px;
        }
        div#small-dialog iframe {
            height: 450px;
        }
    }

    @media (max-width: 768px) {
        #small-dialog {
            max-width: 95%;
            border-radius: 16px;
        }
        div#small-dialog iframe {
            height: 350px;
        }
    }

    @media (max-width: 480px) {
        #small-dialog {
            border-radius: 12px;
        }
        div#small-dialog iframe {
            height: 250px;
        }
    }

    /* Close button styling */
    .video-modal-close {
        position: absolute;
        top: -50px;
        right: 0;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .video-modal-close:hover {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
        background: linear-gradient(135deg, #764ba2, #667eea);
    }

    .video-modal-close:active {
        transform: scale(0.95) rotate(90deg);
    }

    .video-modal-close i {
        pointer-events: none;
    }

    @media (max-width: 768px) {
        .video-modal-close {
            top: -45px;
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }

    /* Hide default Magnific Popup close button */
    .mfp-close {
        display: none !important;
    }


    /**
* Fade-zoom animation for first dialog
*/

    /* start state */
    .my-mfp-zoom-in .zoom-anim-dialog {
        opacity: 0;

        -webkit-transition: all 0.2s ease-in-out;
        -moz-transition: all 0.2s ease-in-out;
        -o-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;



        -webkit-transform: scale(0.8);
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);
    }

    /* animate in */
    .my-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
        opacity: 1;

        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

    /* animate out */
    .my-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
        -webkit-transform: scale(0.8);
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);

        opacity: 0;
    }

    /* Dark overlay, start state */
    .my-mfp-zoom-in.mfp-bg {
        opacity: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        -webkit-transition: opacity 0.3s ease-out;
        -moz-transition: opacity 0.3s ease-out;
        -o-transition: opacity 0.3s ease-out;
        transition: opacity 0.3s ease-out;
    }

    /* animate in */
    .my-mfp-zoom-in.mfp-ready.mfp-bg {
        opacity: 1;
    }

    /* animate out */
    .my-mfp-zoom-in.mfp-removing.mfp-bg {
        opacity: 0;
    }



    /**
* Fade-move animation for second dialog
*/

    /* at start */
    .my-mfp-slide-bottom .zoom-anim-dialog {
        opacity: 0;
        -webkit-transition: all 0.2s ease-out;
        -moz-transition: all 0.2s ease-out;
        -o-transition: all 0.2s ease-out;
        transition: all 0.2s ease-out;

        -webkit-transform: translateY(-20px) perspective(600px) rotateX(10deg);
        -moz-transform: translateY(-20px) perspective(600px) rotateX(10deg);
        -ms-transform: translateY(-20px) perspective(600px) rotateX(10deg);
        -o-transform: translateY(-20px) perspective(600px) rotateX(10deg);
        transform: translateY(-20px) perspective(600px) rotateX(10deg);

    }

    /* animate in */
    .my-mfp-slide-bottom.mfp-ready .zoom-anim-dialog {
        opacity: 1;
        -webkit-transform: translateY(0) perspective(600px) rotateX(0);
        -moz-transform: translateY(0) perspective(600px) rotateX(0);
        -ms-transform: translateY(0) perspective(600px) rotateX(0);
        -o-transform: translateY(0) perspective(600px) rotateX(0);
        transform: translateY(0) perspective(600px) rotateX(0);
    }

    /* animate out */
    .my-mfp-slide-bottom.mfp-removing .zoom-anim-dialog {
        opacity: 0;

        -webkit-transform: translateY(-10px) perspective(600px) rotateX(10deg);
        -moz-transform: translateY(-10px) perspective(600px) rotateX(10deg);
        -ms-transform: translateY(-10px) perspective(600px) rotateX(10deg);
        -o-transform: translateY(-10px) perspective(600px) rotateX(10deg);
        transform: translateY(-10px) perspective(600px) rotateX(10deg);
    }

    /* Dark overlay, start state */
    .my-mfp-slide-bottom.mfp-bg {
        opacity: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        -webkit-transition: opacity 0.3s ease-out;
        -moz-transition: opacity 0.3s ease-out;
        -o-transition: opacity 0.3s ease-out;
        transition: opacity 0.3s ease-out;
    }

    /* animate in */
    .my-mfp-slide-bottom.mfp-ready.mfp-bg {
        opacity: 1;
    }

    /* animate out */
    .my-mfp-slide-bottom.mfp-removing.mfp-bg {
        opacity: 0;
    }
