﻿.youtube-session {
    margin:0;
}

.youtube-container.youtube-gallery.active {
    width: 400px;
    height: 210px;
    bottom: 0px;
    position: fixed;
    z-index: 2025;
    right: 13%;
}

.youtube-container.youtube-gallery::-webkit-scrollbar {
    width: 3px;
}

.youtube-container.youtube-gallery::-webkit-scrollbar-track {
    background: #fff;
}

.youtube-container.youtube-gallery::-webkit-scrollbar-thumb {
    background: #D7D7D7;
    border-radius: 0px;
}

.youtube-gallery::-webkit-scrollbar-track {
    background: #D7D7D7;
}

.youtube-gallery {
    background: #f8f8f8;
}



.container--content .card-info.yt-item {
    display: table;
    border-radius: 0px;
    box-shadow: 1px 2px 20px 0 rgba(35, 19, 18, 0.05);
    background-color: #FFFFFF;
    width: 100%;
    margin-bottom: 0px;
}

.container--content .card-info .image.ytImage {
    /*width: 110px;*/
    width: 120px;
    height: 68px;
    float: left;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    margin-bottom: 8px;
    margin-top: 8px;
}

    .container--content .card-info .image.ytImage img {
        position: absolute;
        margin: auto;
        min-height: 100%;
        min-width: 100%;
        left: -100%;
        right: -100%;
        top: -100%;
        bottom: -100%;
    }

.container--content .card-info .content.ytContent {
    padding: 8px;
    width: calc(100% - 165px);
    float: left;
    /*height: 110px;*/
    height: 84px;
}

.yt-item .ytd-renderer {
    float: left;
    position: relative;
    top: 25px;
    padding-left: 8px;
    padding-right: 8px;
}

i.fas.fa-play {
    font-size: 13px;
    /*position: absolute;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    z-index: 2;
}

.item-videoId i.fas.fa-play::before {
    color: transparent;
}

.item-videoId.active i.fas.fa-play::before {
    content: '\f04b';
    color: #5a5a5a;
}

iframe#video_id.mini-iframe {
    width: 400px;
    height: 225px;
    bottom: 80px;
    position: fixed;
    z-index: 2025;
    right: 13%;
}

    iframe#video_id.mini-iframe.active {
        bottom: 316px;
    }

.youtube-title {
    display: none;
}

    .youtube-title.mini-iframe {
        width: 400px;
        height: 80px;
        position: fixed;
        bottom: 0;
        right: 13%;
        z-index: 2025;
        display: block;
    }

        .youtube-title.mini-iframe.active {
            height: 106px;
            bottom: 210px;
        }

        .youtube-title.mini-iframe .card-info {
            border-radius: 0px;
        }

            .youtube-title.mini-iframe .card-info .content {
                padding: 16px;
                height: 80px;
                position: relative;
            }

        .youtube-title.mini-iframe.active .card-info .content {
            height: 106px;
        }

        .youtube-title.mini-iframe .header h4:after {
            font-family: "Font Awesome 5 Pro";
            font-weight: 300;
            font-size: 1.5rem;
            content: "\f107";
            float: right;
            position: absolute;
            top: 18px;
            /*right: 20px;*/
            right: 35px;
            color: #5a5a5a;
            z-index: 0;
        }

        .youtube-title.mini-iframe.active .header h4:after {
            content: "\f106";
        }

    .youtube-title .resultsPage {
        display: none;
    }

        .youtube-title .resultsPage.show {
            display: block;
        }

    .youtube-title .resultsPage {
        font-size: 12px;
        line-height: 26px;
        color: #949494;
        font-family: thongterm-roman;
    }

.youtube__video_play h4 {
    font-size: 14px;
    line-height: 24px;
    height: 48px
}

.youtube-title .content .header {
    width: 91%;
}

.youtube-tab-playlist {
    margin-bottom: 30px !important;
}

    .youtube-tab-playlist .youtube-playlist {
        position: relative;
        cursor: pointer;
        margin-right: 20px;
    }

        .youtube-tab-playlist .youtube-playlist.active {
            font-weight: bold;
        }

            .youtube-tab-playlist .youtube-playlist.active:after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0%;
                width: 100%;
                height: 3px;
                background: #ffd400;
                transition: .3s cubic-bezier(.445, .05, .55, .95);
            }

@media screen and (min-width: 768px) {
    .m-yt {
        margin-top: 40px;
        margin-bottom: 80px !important;
    }

    .youtube-container.youtube-gallery {
        overflow: auto;
        height: 433px;
        border: 1px solid #ededed;
    }

    .img-youtube .image::after {
        content: ' ';
        height: 100%;
        width: 100%;
        background: linear-gradient(180deg, rgba(90, 90, 90, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
        position: absolute;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        margin: auto;
    }

    .youtube-container-active {
        width: 600px;
        margin: auto;
    }

    /*2*/
    .youtube_video {
        width: 100%;
        height: 100%;
        /*margin: auto;*/
        margin-bottom: 30px;
    }

    .youtube-title .fas.fa-play {
        display: none;
    }

    .ytd-renderer .h5 {
        display: none !important;
    }

    .container--content .card-info .image.ytImage img {
        height: 68px;
        height: auto;
        position: absolute;
    }

    .close-popup:before {
        content: '\f00d';
        font-family: 'Font Awesome 5 Pro';
        color: #5b5b5b;
        width: 16px;
        height: 16px;
        top: 15px;
        right: 5px;
        position: absolute;
    }
}

@media screen and (max-width: 768px) {
    .m-yt {
        margin-top: 0px !important;
        margin-bottom: 40px !important;
    }

    .text-ellipsis-1line {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }

    .description {
        bottom: 0;
        font-size: 14px;
    }

    .youtube-container-active .image img,
    .youtube-container .image img {
        height: 110px !important
    }

    /*2*/
    .youtube_video {
        width: 100%;
        height: 202px;
        margin: auto;
    }

    .youtube-gallery {
        width: 100%;
        height: 336px;
        margin: auto;
        overflow: auto;
    }

    .container--content .card-info.yt-item {
        height: 84px;
    }

    .container--content .card-info .image.ytImage {
        /*height: 100%;*/
    }

    /*mini*/
    iframe#video_id.mini-iframe {
        width: 32%;
        height: 68px;
        bottom: 25px;
        position: fixed;
        z-index: 2025;
        left: 0%;
    }

        iframe#video_id.mini-iframe.active {
            bottom: 235px;
        }

    .youtube-title.mini-iframe {
        width: 68%;
        height: 68px;
        position: fixed;
        bottom: 0;
        right: 0%;
        z-index: 2025;
        display: block;
    }

        .youtube-title.mini-iframe.active {
            height: 68px;
            bottom: 235px;
        }

    .youtube-container.youtube-gallery.active {
        width: 100%;
        height: 210px;
        bottom: 0;
        position: fixed;
        z-index: 2025;
        right: 0%;
    }

    .ytd-renderer .h5 {
        display: none !important;
    }

    .ytd-renderer .not-show {
        display: none !important;
    }

    .ytd-renderer .h5.show {
        display: block !important;
    }

    .ytd-renderer .h5 {
        font-size: 10px;
        line-height: 22px;
        color: #949494;
        font-family: thongterm-roman;
    }

    .youtube-title.mini-iframe {
        width: 68%;
        height: 68px;
        position: fixed;
        bottom: 25px;
        right: 0%;
        z-index: 2025;
        display: block;
    }

        .youtube-title.mini-iframe .card-info .content {
            width: 100%;
            padding: 10px;
            height: 68px;
            position: relative;
        }

        .youtube-title.mini-iframe.active .card-info .content {
            height: 68px;
            width: 100%;
        }

    .container--content .card-info .content.ytContent {
        height: 68px;
    }

    .youtube-title.mini-iframe.active .header h4:after,
    .youtube-title.mini-iframe .header h4:after {
        display: none;
    }

    .youtube-title .resultsPage.show {
        display: none !important;
    }

    .youtube-title .content .header {
        width: 100%;
        display: flex;
    }

    .youtube-title .mobile-play {
        position: relative;
        top: 10px;
        padding-left: 20px;
    }

        .youtube-title .mobile-play i.fas.fa-play {
            font-size: 16px;
        }

    .youtube-container-active .image img,
    .youtube-container .image img {
        height: 68px !important;
        height: 92px !important;
    }

    .youtube__video_play h4 {
        width: 68%;
    }

    .youtube__video_play .youtube-gallery h4 {
        width: 100%;
    }

    .yt-item .ytd-renderer {
        top: 30px;
    }

    .youtube-bar-mobile {
        display: none !important;
    }

        .youtube-bar-mobile.mini-iframe {
            display: block !important;
        }

        .youtube-bar-mobile.mini-iframe {
            width: 100%;
            height: 25px;
            position: fixed;
            bottom: 0px;
            right: 0%;
            z-index: 2025;
            display: block;
        }

            .youtube-bar-mobile.mini-iframe.active {
                bottom: 210px;
            }

            .youtube-bar-mobile.mini-iframe .resultsPage.show,
            .youtube-bar-mobile.mini-iframe .resultsPage {
                display: none;
            }

            .youtube-bar-mobile.mini-iframe.active .resultsPage.show,
            .youtube-bar-mobile.mini-iframe.active .resultsPage {
                display: block;
            }

        .youtube-bar-mobile .card-info.bar-mobile {
            height: 25px;
            font-size: 10px;
            line-height: 22px;
            color: #949494;
            font-family: thongterm-roman;
            padding-left: 8px;
            border-radius: unset;
        }

        .youtube-bar-mobile.mini-iframe .header-bar-mobile:after {
            font-family: "Font Awesome 5 Pro";
            font-weight: 300;
            font-size: 1.5rem;
            content: "\f107";
            float: right;
            position: absolute;
            top: 0;
            right: 20px;
            color: #5a5a5a;
            z-index: 0;
        }

        .youtube-bar-mobile.mini-iframe.active .header-bar-mobile:after {
            content: "\f106";
        }

    .close-popup:before {
        content: '\f00d';
        font-family: 'Font Awesome 5 Pro';
        color: #5b5b5b;
        width: 16px;
        height: 16px;
        top: 18px;
        right: 20px;
        position: absolute;
    }

    .youtube_video .ytp-button {
        margin-left: 25px;
        width: 40px;
    }
}


i.far.fa-play-circle {
    font-size: 56px;
    position: absolute;
    color: rgba(255,255,255,.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    text-align: center;
    z-index: 2;
}

.fa-play-circle::before {
    content: "\f144";
}

.img-youtube {
    cursor: pointer;
}

.youtube-thumbnail-store i {
    font-size: 56px;
    position: absolute;
    color: rgba(255,255,255,.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    text-align: center;
    z-index: 2;
}

#vdomodal .modal-content {
    margin: 0 auto;
    border: 0px;
}

#vdomodal button.close span {
    right: -30px;
    top: 20px;
    position: relative;
}

.close {
    color: #fff;
    text-shadow: none;
    opacity: 1;
    font-size: 26px;
    text-align: right;
}

p.text-yt {
    color: #5A5A5A;
    font-family: Thongterm-Roman;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 30px;
}

h3.text-yt {
    font-size: 20px;
    line-height: 30px;
}

@media screen and (min-width: 768px) {

    .card-info .image .youtube-thumbnail-store {
        height: 270px;
    }

    .card-info .image img.youtube-thumbnail {
        margin: auto;
        min-height: 100%;
        min-width: 100%;
        left: -100%;
        right: -100%;
        top: -100%;
        bottom: -100%;
    }

    #vdomodal .modal-content {
        background-color: transparent;
        box-shadow: none;
        border: none;
    }
}

@media screen and (max-width: 768px) {
    .image.img-youtube img {
        height: auto;
    }

    .card-info .image .youtube-thumbnail-store {
        height: 110px;
    }

    .card-info .image img.youtube-thumbnail {
        margin: auto;
        min-height: 100%;
        min-width: 100%;
        left: -100%;
        right: -100%;
        top: -100%;
        bottom: -100%;
    }

    .container--content .card-info .image {
        width: auto;
        float: left;
        border-top-left-radius: 3px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 3px;
    }
}

@media screen and (max-width: 991px) {
    #vdomodal button.close span {
        right: inherit;
        top: -15px;
        position: relative;
    }
}

@media only screen and (max-width: 767px) {
    #vdomodal .modal-content {
        background-color: transparent;
        max-height: 300px;
    }
}

@media screen and (min-width: 768px) {
    .card-info .image .youtube-thumbnail-store::after {
        content: ' ';
        height: 270px;
        width: 100%;
        background: rgba(0,0,0,0.05);
        ;
        position: absolute;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        margin: auto;
    }

    .image.img-youtube::after {
        content: ' ';
        height: 100%;
        width: 100%;
        background: rgba(0,0,0,0.05);
        ;
        position: absolute;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        margin: auto;
    }
}

@media screen and (max-width: 768px) {
    .card-info .image .youtube-thumbnail-store::after {
        content: ' ';
        height: 110px;
        width: 100%;
        background: linear-gradient(180deg, rgba(90,90,90,0) 0%, rgba(0,0,0,0.55) 100%);
        position: absolute;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        margin: auto;
    }

    .image.img-youtube::after {
        content: ' ';
        height: 110px;
        width: 100%;
        background: linear-gradient(180deg, rgba(90,90,90,0) 0%, rgba(0,0,0,0.55) 100%);
        position: absolute;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        margin: auto;
    }

    .mt-24px-mobile {
        margin-top: 24px;
    }

    .mb-16px-mobile {
        margin-bottom: 16px;
    }

    .container--content .card-info .content {
        height: auto;
        width: 100%;
    }
}

/* #region CI-023*/
.ci-023-modal .modal-content {
    background-color: transparent;
    border: none;
}

.ci-023-modal button {
    color: #FFF;
    text-align: end;
    text-shadow: none;
}

.ci-023-modal button span {
    color: #FFF;
}

i.far.fa-play-circle {
    font-size: 56px;
    position: absolute;
    color: rgba(255, 255, 255, .9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

/* #endregion CI-023*/

/* #region Ayudhya-lived */
.ayudhya-modal .modal-content {
    background-color: transparent;
    border: none;
}

.ayudhya-modal button {
    color: #FFF;
    text-align: end;
    text-shadow: none;
}

.ayudhya-modal button span {
    color: #FFF;
}

.ayudhya-modal i.far.fa-play-circle {
    font-size: 56px;
    position: absolute;
    color: rgba(255, 255, 255, .9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

/* #endregion Ayudhya-lived */


.ot-001 .container {
    width: 100%;
    padding:0;
    margin:0;
}

@media screen and (max-width: 768px) {
    .ot-001 .text-ellipsis-2line {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

/* #region CI-013 , CI-037 , OT-007 */
.ci-013 #vdomodal button.close span {
    right: -30px;
    top: 20px;
    position: relative;
    color: #000;
}

.ci-013 #vdomodal .modal-content {
    margin: 0; 
    border: 0px;
}

.ci-013 #vdomodal .modal-body {
    padding: 0;
}

.ci-037 #vdomodal button.close span {
    right: -30px;
    top: 20px;
    position: relative;
    /*color: #000;*/
    color:white;
}

.ci-037 #vdomodal .modal-content {
    margin: 0;
    border: 0px;
}

.ci-037 #vdomodal .modal-body {
    padding: 0;
}

.ot-007 #vdomodal button.close span {
    right: -30px;
    top: 20px;
    position: relative;
    color: #000;
}


.ot-007 #vdomodal .modal-content {
    margin: 0;
    border: 0px;
    background-color: transparent !important;
}

.ot-007 #vdomodal .modal-body {
    padding: 0;
}

@media screen and (max-width: 767px) {
    .ci-013 .ytp-cued-thumbnail-overlay-image {
        background-size: cover;
        -moz-background-size: cover;
        -webkit-background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .ci-013 #videoIframe {
        height: 274px;
    }

    .ci-013 .modal-dialog .modal-content {
        margin-top: 50px;
        top: 30%;
        position: absolute;
        right: 0;
        left: 0;
        padding: 0;
    }

    .ci-013 #vdomodal button.close span {
        right: inherit;
        top: -15px;
        position: relative;
    }

    .ci-037 .ytp-cued-thumbnail-overlay-image {
        background-size: cover;
        -moz-background-size: cover;
        -webkit-background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .ci-037 #videoIframe {
        height: 274px;
    }

    .ci-037 .modal-dialog .modal-content {
        margin-top: 50px;
        top: 30%;
        position: absolute;
        right: 0;
        left: 0;
        padding: 0;
    }

    .ci-037 #vdomodal button.close span {
        right: inherit;
        top: -15px;
        position: relative;
    }

    .ot-007 .ytp-cued-thumbnail-overlay-image {
        background-size: cover;
        -moz-background-size: cover;
        -webkit-background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .ot-007 #videoIframe {
        height: 274px;
    }

    .ot-007 .modal-dialog .modal-content {
        margin-top: 50px;
        top: 30%;
        position: absolute;
        right: 0;
        left: 0;
        padding: 0;
    }

    .ot-007 #vdomodal button.close span {
        right: inherit;
        top: -15px;
        position: relative;
    }
}

/* #endregion CI-013 */