.images-with-before-after-slider-row .wpb_content_element,.images-with-before-after-slider-row .wpb_content_element .ut-image-gallery-image,.images-with-before-after-slider-row .wpb_content_element .ut-image-gallery-image .ut-image-gallery-item,.images-with-before-after-slider-row .wpb_content_element .ut-image-gallery-image .ut-image-gallery-item .ut-animated-image-zoom, .images-with-before-after-slider-row .wpb_content_element .ut-image-gallery-image .ut-image-gallery-item .ut-animated-image-zoom img {
	height:100%;
}

.images-with-before-after-slider-row .ut-animated-image-zoom:hover {
    cursor: pointer;
}

[class*="open-shortcode-popup-"] img:hover {
  cursor: pointer;
}

/* The Modal Overlay */
.modal-overlay {
	display: none;
	position: fixed;
	z-index: 9999999 !important;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
}

/* Modal Content Box */
.modal-content-box {
	padding: 30px;
	width: 100%;
	position:relative;
	height:100vh;
	top:4vh;
	border-radius: 8px;
	z-index: 9999;
}

/* The Close Button */
.modal-close {
	color: #aaa;
	position: absolute;
	cursor: pointer;
	top: -30px;
    right: 10px;
	z-index: 99999999 !important;
}
.modal-close:after{
	content: "";
	background-image: url('/wp-content/uploads/2025/10/close.svg');
  	background-size: cover;
  	background-position: center;
	width:20px;
	height:20px;
	display: block;
}

.ba-slider {
	position: relative; /* Establishes a positioning context for children */          
	height:100%;
	width: 100%; /* Max width of the slider */
	overflow: hidden; /* Clips the images */
	border-radius: 8px;
	height:85vh;
	/* Prevents text selection while dragging */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Container for BOTH images */
.ba-img-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* The actual <img> elements */
.ba-img-container img {
	display: block;
	height: 100%;
	/* Ensures images fill the container without stretching */
	object-fit: contain; 
	/* Ensures images are aligned perfectly */
	object-position: center; 
	margin:0 auto;
}

.ba-img-before {
	z-index: 5; /* Stays on the bottom */
}

/* The draggable handle */
.ba-slider-handle {
	position: absolute;
	z-index: 20; /* On top of everything */
	top: 0;
	left: 50%; /* Initial position */

	/* This is the grabbable area */
	width: 40px; 
	height: 100%;
	cursor: ew-resize; /* East-West resize cursor */

	/* Center the handle visually */
	transform: translateX(-50%); 
}

/* The vertical line */
.ba-slider-handle::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%; /* Centered within the handle */
	width: 4px;
	height: 100%;
	background: white;
	transform: translateX(-50%);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* The circular grip with arrows */
.ba-slider-handle::after {
	content: '\2194'; /* Left-right arrow unicode */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	width: 36px;
	height: 36px;
	background: white;
	color: #333;
	border-radius: 50%;

	/* Center the arrow inside */
	display: grid;
	place-items: center;
	font-size: 20px;
	font-weight: bold;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.ba-img-before {
    z-index: 5; /* Stays on the bottom */
}
        
.ba-img-after {
    z-index: 10; /* Sits on top */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}