/* --- Carousel Container --- */
.wp-block-query.wm-carousel {
	position: relative; 
	width: 100%;
	overflow: hidden; 
	margin: 0 auto;
	padding: 100px 0 20px;
	display: none; 
	margin-top: -110px;
    }
.review-heading-container{
	z-index: 1;
}
.wp-block-query.wm-carousel.loaded { 
    display: block;     
    } 
/* --- Carousel Track --- */ 
.wp-block-query.wm-carousel .carousel-track{
     display: flex; 
     transition: transform 2s ease-in-out; 
     will-change: transform; 
     transform: translateX(0%); 
     width: 100%; 
     margin: 0; 
     padding: 0; 
     list-style: none; 
    } 
/* --- Individual Slides --- */ 
.wp-block-query.wm-carousel .wp-block-post { 
    /*flex: 0 0 33.333%; max-width: 33.333%;*/ 
    flex: 0 0 100%; 
    max-width: 33.333%; 
    padding: 0 5px; 
    box-sizing: border-box; 
    transition: transform 0.3s ease; 
    transform: translateZ(0); /* Force hardware acceleration */ 
    backface-visibility: hidden; /* Prevent flickering */
	scroll-snap-align: start; /* snap each slide */
    }
.wp-block-query.wm-carousel .wp-block-post .wp-block-post-excerpt p{ 
    display: -webkit-box; /* Creates a flexible box for text */ 
    -webkit-box-orient: vertical; /* Vertical orientation */ 
    -webkit-line-clamp: 3; /* Number of lines to show */ 
    overflow: hidden; /* Hide overflowing text */ 
    text-overflow: ellipsis; 
    text-align: center;     
} 
.wp-block-query.wm-carousel .wp-block-post h2{
     text-align: center; 
	 text-transform: italic !important;
	 text-decoration: none;
    } 
.wp-block-query.wm-carousel .wp-block-post.activebk{ 
    display: list-item !important; 
    }
.carousel-button{
	color: #f5f5f5;
	border: 2px solid #2e7842;
	padding: 10px 0 10px 10px;
	position: absolute;
	top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
}
.carousel-button:hover, .carousel-button:focus {
	transform: scale(0.9);
	background: transparent;
	border: 2px solid #2e7842;
	backface-visibility: hidden; /* Prevent flickering */
}
.prev {left: 90% !important;}
.next{ left: 95% !important;}
 .next::before{
	content: ""; /* required for pseudo-element */
    display: inline-block; /* makes it visible */
    width: 30px;  /* set your image width */
    height: 16px; /* set your image height */
    background-image: url('/wp-content/uploads/2025/08/next.svg'); 
    background-size: contain; /* scale image proportionally */
    background-repeat: no-repeat;
    background-position: center;
	backface-visibility: hidden; /* Prevent flickering */
}
 .prev::before{
	content: ""; /* required for pseudo-element */
    display: inline-block; /* makes it visible */
    width: 30px;  /* set your image width */
    height: 16px; /* set your image height */
    background-image: url('/wp-content/uploads/2025/08/prev.svg'); 
    background-size: contain; /* scale image proportionally */
    background-repeat: no-repeat;
    background-position: center;
	backface-visibility: hidden; /* Prevent flickering */
}
/*.wp-block-query.wm-carousel .carousel-button:hover { background: rgba(0, 0, 0, 0.8); transform: translateY(-50%) scale(1.1); }*/
.wp-block-query.wm-carousel .carousel-button.prev { 
    left: 10px;
    } 
    .wp-block-query.wm-carousel .carousel-button.next { left: 70px; }
@media (max-width: 1025px){
	.prev {left: 87% !important;}
	.next{ left: 93% !important;}
}
@media (max-width: 991px){
	.next, .prev{
		display: none;
	}
}