
:root {
    --playerwidth: 480px;
    --playerheight: calc(var(--playerwidth)/16*9);
}
@media only screen and (max-width: 1750px){
   :root {
       --playerwidth: 380px;
   }
}
@media only screen and (max-width: 1250px){
   :root {
       --playerwidth: 300px;
   }
}
@media only screen and (max-width: 850px){
   :root {
       --playerwidth: 220px;
   }
}
@media only screen and (max-width: 500px){
   :root {
       --playerwidth: 150px;
   }
}


@keyframes slideToLeft {
   0%{
       margin-left: var(--playerwidth);
   }
   100%{
       margin-left: 0px;
   }
}

/* scrollbar */
*::-webkit-scrollbar {
   height: 4px;
   width: 4px;
   background: #11111100;
}

*::-webkit-scrollbar-thumb {
   background: #a2a2a2;
   border-radius: 10px;
}


.videoCarousel div.player {
   width: 100% !important;
   aspect-ratio: 16/9;
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   cursor: pointer;
   border-radius: 10px;
}

.videoCarousel div.player i.fa-brands  {
   font-size: calc(var(--playerwidth)/8);
   color: #ff0000;
}

.container-fluid{
   padding: 0 !important;
}

/* p{
   font-size: 2.5rem;
}
@media only screen and (max-width : 1400px){
   p{
       font-size: 1.9rem;
   }
}
@media only screen and (max-width : 900px){
   p{
       font-size: 1.3rem;
   }
} */

.ourWorks > div img{
   border: solid 1px rgb(238, 238, 238);
}

/* Infinite carousel */
.infinite_carousel{
   flex-wrap: nowrap;
   overflow-x: scroll;
   overflow-y: visible;
   padding-left: 0px;
   /* height: 223px; */
   height: calc(var(--playerwidth)/16*9 +15px);
}

.infinite_carousel > div {
   z-index: 9;
   width: var(--playerwidth) !important;
   padding: 0 3px !important;
}
.container_carousel{
   position: relative;
}
.container_carousel span{
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   border: none;
   background-color: transparent;
   color: #ffffff;
   font-size: 2rem;
   cursor: pointer;
   user-select: none;
   z-index: 10;
}

[id^=left]{
   left: 0;
}
[id^=right]{
   right: 0;
}

/* transition animation on appendChild */
div.videoItemAnimation   {
   animation-name: slideToLeft;
   animation-duration: .6s;
   animation-timing-function: ease-in-out;
}
