.video-thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0px 15px;
    margin-bottom: 7px;
}

.video-thumbnail img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    pointer-events: none;
}

.ring.unwatched {
    border: 2px dashed rgb(110, 110, 110);
}

.ring.watched {
    border: 3px dashed #963bae;
}

#modal-gallery.modal,
#video-modal.modal {
    display: none;
    position: fixed;
    top: 15px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1010;
}

#modal-gallery .modal-content ,
#video-modal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#modal-gallery .close-modal ,
#video-modal .close-modal {
    font-size: 46px;
    font-weight: 900;
    font-family: monospace;
    position: absolute;
    top: -35px;
    right: -90px;
    z-index: 1001;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#modal-gallery .close-modal {
    top: -13px;
    right: 19px;
}

#modal-gallery .close-modal:hover ,
#video-modal .close-modal:hover {
    transform: scale(1.2);
}

#modal-gallery .swiper-slide ,
#video-modal .swiper-slide {
    overflow: hidden;
}

.swiper-gallery ,
.video-swiper {
    width: 100%;
    height: 100%;
}

.swiper-gallery .swiper-slide ,
.video-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: relative;
}

.video-wrapper > .plyr {
    width: 82vw;
    height: 85vh;
}

.plyr__video-embed {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#category-video-banner {
    margin: 40px 0px;
}

#category-video-banner .swiper-slide {
    width: fit-content;
    text-align: center;
}

.video-thumbnail img {
    cursor: pointer;
}

.video-thumbnail:hover .ring {
    top: -6px;
    left: -6px;
    width: 112px;
    height: 112px;
}

.swiper-button-prev:after {
    color: #fff;
    content: '\276E' !important;
}

.swiper-button-next:after {    
    color: #fff;
    content: '\276F' !important;
}

.video-container-gallery ,
.video-container {
    max-height: 85vh;
    position: relative;
    max-width: 82vw;
    overflow: hidden;
}
.video-container-gallery >div,
.video-container >div{
    height: 100%;
    width: 100%;
}
/* Original rule using :has (supported in some browsers) */
.video-container-gallery:has(iframe) ,
.video-container:has(iframe) {
    height: 85vh;
    width: 82vw;
}
.video-container-gallery iframe,
.video-container iframe,
.video-container-gallery video,
.video-container video{
    height: 100%;
    width: 100%;
    border: unset;
}

@media (max-width: 850px) {
    #category-video-banner {
        margin-top: 5px;
    }
    body:has(#category-video-banner) .featured-title .page-title-inner {
        padding-bottom: 12px;
    }
}

@media (max-width: 700px) {
    .video-wrapper > .plyr,
    .plyr__video-embed {
        width: 100vw;
        height: 100vh;
    }

    #video-modal.modal {
        top: 0px;
    }
}

#modal-gallery .zoom-container img{
    height: 80vh;
    width: auto;
    object-fit: cover;
}
#modal-gallery .gallery-image-container{
    position: relative;
}

@media (max-width: 500px) {
    .video-container,
    .plyr--video {
        height: 100vh;
        width: 100vw;
        max-width: unset;
        max-height: unset;
    }

    .video-container:has(iframe) {
        max-width: unset;
        max-height: unset;
        height: 100vh;
        width: 100vw;
    }
    #video-modal .btn_voir_produti{
        font-size: 14px;
    }

    #modal-gallery .zoom-container img{
        height: 100vh;
    }
    .video-container-gallery, .video-container{
        height: 100vh !important;
        width: 100vw !important;
        max-width: unset !important;
        max-height: unset !important;
    }

}

#category-video-banner .product_name {
    text-align: center;
    margin-top: 14px;
    font-size: 16px;
}

#category-video-banner .product_name:hover {
    color: #963bae;
}

#video-modal .btn_voir_produti {
    position: absolute;
    bottom: 44px;
    background: #963bae;
    padding: 4px 30px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s, opacity 0.3s;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    text-shadow: none;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: inset -0.01em -0.1em 0 0 rgba(0, 0, 0, 0.15);
}

#video-modal .btn_voir_produti:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.22);
    opacity: 1;
    outline: none;
}

.right_produit_info {
    overflow: hidden;
}




@media not all and (min-resolution: 0.001dpcm) { 
  @supports (-webkit-appearance: none) {
    .video-container-gallery iframe ,
    .video-container iframe {
      height: 85vh;
      width: 82vw;
    }
    @media (max-width: 500px) {
      .video-container-gallery iframe ,
      .video-container iframe {
        height: 100vh;
        width: 100vw;
      }
    }
    .featured-title .page-title-inner {
      padding-bottom: 12px;
    }

    .ring,
    #video-modal .close-modal,
    .btn_voir_produti {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        z-index: 1001;
    }

    #modal-gallery .zoom-container img{
        height: 100vh;
    }
  }
}

