/* Container */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-height: 250px;
    overflow: hidden;
    margin: 20px auto;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Images */
.before-after-container img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Before Image */
.before-after-container .before-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* After Image */
.before-after-container .after-image {
    z-index: 1;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    opacity: 1;
}

.before-after-slider:before {
    content: " ";
    display: block;
    background: #fff;
    position: absolute;
    z-index: 30;
    width: 3px;
    height: 9999px;
    left: 50%;
    margin-left: -1.5px;
    bottom: 50%;
    margin-bottom: 22px;
    box-shadow: 0 3px 0 var(--awb-handle-color), 0 0 12px rgba(51, 51, 51, .5);
}

.before-after-slider:after {
    content: " ";
    display: block;
    background: #fff;
    position: absolute;
    z-index: 30;
    width: 3px;
    height: 9999px;
    left: 50%;
    margin-left: -1.5px;
    top: 50%;
    margin-top: 22px;
    box-shadow: 0 -3px 0 var(--awb-handle-color), 0 0 12px rgba(51, 51, 51, .5);
}

.before-after-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0px;
    z-index: 99;
    max-height: 100%;
}

span.slider-icons:before {
    content: '';
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border-right: 6px solid #fff;
    left: 50%;
    margin-left: -17px;
}
span.slider-icons:after {
    content: '';
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border-left: 6px solid #fff;
    right: 50%;
    margin-right: -17px;
}
span.slider-icons {
    border: 2px solid #fff;
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50px;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
img.before-img, img.after-img {
    width: 50%;
    padding: 0 5px;
}
.before-after-contain {
  display: flex;
  min-height: 200px; /* Set your desired minimum height */
  width: 100%;
  overflow: hidden;
}

.before-after-contain img {
  flex: 1;
  height: 100%;
  object-fit: cover;
}