

.video-gallery {
    display: block;
    width: 100%;
    text-align: center;
    height: 230px;
    overflow-y: auto;
}

.video-gallery img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    margin: 8px;
    cursor: pointer;
}

#VideoGalleryModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 68px !important;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#VideoGalleryModal iframe {
    border-radius: 8px;
    width: 80%;
    height: 80%;
}

#VideoGalleryModal .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.9;
}


.video-gallery .VideoTitle{
    margin: 8px 2px;
    clear: both;
    font-weight: bold;
    padding: 10px;
    font-size: 24px;
    display: block;
}

.video-gallery-list{
    list-style: none;
    display: inline-block;
    width: 140px !important;
    height: 260px; /* 200px; SP - 20241219 - changed to display five line label. */
    vertical-align: bottom; /* SP - 20241219 - added to align items in same line.  */
}
.video-gallery-list label{
    display: block;
    width: 150px;
    text-align: center;
    padding: 4px 6px;
    height: 100px; /*60px; SP - 20241219 - changed to display 5 line label. */
    margin: 0px auto;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
}

#single-page .head-center .video-gallery ul{
    margin-bottom: 0px;
}

/*
Start
SP
20241217
Added to make scrollbar horizontal thin.
*/
::-webkit-scrollbar{
    height: 4px;
}
/* END */

@media screen and (max-width: 1024px) and (min-width: 600px){
.video-gallery img{
    margin-top: 20px;
    display: inline;
}
}

@media screen and (max-width: 599px){
.video-gallery-list{
    width: 160px !important;
}
.video-gallery img{
    width: 150px;
    height: 150px;
}

}

@media screen and (max-width: 400px){


.video-gallery .VideoTitle{
    font-size: 20px;
}

.video-gallery-list label{
    width: 114px;
    font-size: 12px;
    padding: 4px 0px;
    margin: 4px auto;

}
.video-gallery-list{
    width: 120px !important;
    height: 200px;
}
.video-gallery img{
    width: 110px;
    height: 110px;
}
}


