/* video-gallery.css */

.b-videos{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 100px;
}
.b-videos_wrap{
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 50px;
}
.b-videos_thumbnails{
    display: inline-block;
    position: relative;
    width: 450px;
    height: 450px;
}
.b-videos_thumbnails .thumb-image{
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s;
}
.b-videos_thumbnails .thumb-image:nth-child(1) {
    transform: rotateZ(10deg);
}
.b-videos_thumbnails .thumb-image:nth-child(2) {
    transform: rotateZ(4deg);
}
.b-videos_wrap:hover .thumb-image:nth-child(1){
    transform: rotateZ(0deg);
}
.b-videos_wrap:hover .thumb-image:nth-child(2){
    transform: rotateZ(0deg);
}
.b-videos_wrap:hover .b-videos_count {
    background: rgba(43, 43, 43, 0.9);
}

.b-videos_count{
    width: 150px;
    height: 150px;
    background: rgba(43, 43, 43, 0.4);
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 18px;
}
.b-videos_count_content{
    display: inline-block;
    color: #ffffff;
    text-align: center;
    margin-top: 50%;
    width: 100%;
    transform: translateY(-50%);
}
.b-videos_count_number{
    font-size: 50px;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    margin: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
 }
 
 .close-modal {
    position: absolute;
    right: -30px;
    top: -30px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    z-index: 1001;
 }
 
 .main-video-container {
    width: 100%;
    aspect-ratio: 16/9;
 }
 
 .main-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
 }
 
 .thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
 }
 .thumbnail-strip::-webkit-scrollbar{
    height: 6px;
    width: 4px;
    background: black;
}
.thumbnail-strip::-webkit-scrollbar-thumb:horizontal{
    background: gray;
    border-radius: 10px;
    cursor: pointer;
}
 
 .thumb {
    width: 160px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    /* opacity: 0.5;
    transition: opacity 0.3s; */
 }
 
 /* .thumb:hover {
    opacity: 0.8;
 }
 
 .thumb.active {
    opacity: 1;
 } */
 
 @media (max-width: 768px) {
    .modal-content {
        margin: 10px;
    }
    
    .thumb {
        width: 120px;
        height: 67px;
    }
    
    .close-modal {
        top: -40px;
        right: -10px;
    }
    .b-videos_wrap,
    .b-videos_thumbnails{
        max-width: 100%;
    }
    .b-videos_wrap{
        padding: 0 20px;
    }
    .b-videos_thumbnails{
        height: 330px;
    }
    .b-videos_count {
        width: 120px;
        height: 120px;
    }
    .b-videos_count_number {
        font-size: 40px;
    }
 }
 
 @media (max-width: 480px) {
    .thumb {
        width: 80px;
        height: 45px;
    }
}
 
@media (min-width: 1024px) {
   .main-video-container{
    max-height: 80vh;
   }
}