/* Core look based on your provided stylesheet (class names changed to wdms-) */
.wdms-slider-container{
	overflow:auto;
	scroll-snap-type:x mandatory;
	display:block;
	cursor: grab;
	width: 100%;
	/* Hide scrollbar for Chrome, Safari and Opera */
	scrollbar-width: none;  /* Firefox */
	-ms-overflow-style: none;  /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.wdms-slider-container::-webkit-scrollbar {
	display: none;
}

.wdms-slider-track{
	display:flex;
	gap:var(--wdms-gap,10px);
	padding:5px;
	width: max-content;
}

.wdms-slide{
	display: inline-block;
    position: relative;
    width: calc((100% - var(--wdms-gap,10px) * (var(--slides-per-row,1) - 1)) / var(--slides-per-row,1));
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', sans-serif;
    flex-shrink: 0;
	scroll-snap-align:start;
}

.wdms-image-container{
	position:relative;
	width: 100%;
    height: 100%;
	overflow:hidden;
	border-radius:12px;
}

.wdms-image-container img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	position: absolute;
    inset: 0;
    transition: opacity 0.3s ease, transform 0.5s ease; /* Added transform transition */
}

/* Hover effect for image scaling */
.wdms-slide:hover .wdms-image-container img {
    transform: scale(1.05); /* Scale image to 1.05x on hover */
}

.wdms-image-overlay{
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.70) 0%,
        rgba(0,0,0,0.55) 35%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.00) 100%
    );
    z-index: 2;
}

.wdms-slide-info{
	position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%; /* Takes up 40% of the slide height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    z-index: 3;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.70) 35%,
        rgba(0,0,0,0.45) 60%,
        rgba(0,0,0,0.00) 100%
    );
}

.wdms-slide-info h3{
	font-size: clamp(16px, 4vw, 20px);
    color: #ffffff !important; /* Force white color */
    margin-bottom: 8px;
    width: 100%;
}
.wdms-slide-info p{
	font-size: clamp(12px, 3vw, 14px);
    color: #cccccc;
    margin-bottom: 10px;
    width: 100%;
}
.wdms-button.wdms-vod{
	display: inline-block;
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 14px);
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: clamp(12px, 3vw, 14px);
	background-color: #FFDE17;
    color: #000000;
    margin-top: 5px;
    margin-bottom:15px;
}
.wdms-button.wdms-vod:hover {
    opacity: 0.85;
    transition: 0.3s ease;
}

.wdms-video-hover-effect{
	display:none;
	position:absolute;
	inset:0;z-index:2;
}
.wdms-video-hover-effect video{
	width:100%;
	height:100%;
	object-fit:cover;
}
.wdms-left-badge{
	position:absolute;
	left:8px;
	top:50%;
	transform:translateY(-50%);
	width:6px;
	height:28%;
	border-radius:3px;
	background:#0DB14B;
	z-index:4;
}
.wdms-left-badge-label{
	position:absolute;
	left:14px;
	top:12px;
	font-size:clamp(10px, 2.5vw, 12px);
	color:#cbd5e1;
	z-index:5;
}
/* No arrows or dots by design */
.wdms-nav{display:none!important}

/* Responsive styles */
@media (max-width: 1024px) {
    .wdms-slider-shell[data-wdms*='"visDesktop":3'] .wdms-slide {
        --slides-per-row: 3;
    }
    .wdms-slider-shell[data-wdms*='"visDesktop":2'] .wdms-slide {
        --slides-per-row: 2;
    }
}

@media (max-width: 768px) {
    .wdms-slider-track {
        gap: 15px;
        padding-left: 15px;
    }
    
    .wdms-slider-shell[data-wdms*='"visTablet":2'] .wdms-slide {
        --slides-per-row: 2;
    }
    .wdms-slider-shell[data-wdms*='"visTablet":1'] .wdms-slide {
        --slides-per-row: 1;
    }
    
    .wdms-slide-info {
        height: 45%; /* Slightly more height on tablet */
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .wdms-slider-track {
        gap: 5px;
    }
    
    .wdms-slider-shell[data-wdms*='"visMobile":1'] .wdms-slide {
        --slides-per-row: 1;
    }
    
    .wdms-slide-info {
        height: 50%; /* More height on mobile for better readability */
        padding: 10px;
    }
    
    .wdms-slide-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
        color: #ffffff !important;
    }
    
    .wdms-slide-info p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* Reduce hover effect on mobile for better performance */
    .wdms-slide:hover .wdms-image-container img {
        transform: scale(1.02);
    }
}