* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f0f0f0;
}

.image-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.after-image {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.5s ease;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 7px;
    height: 100%;
    background-color: #343a40;
    cursor: ew-resize;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid black; */
}

.buttons {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.corner-button {
    padding: 10px 20px;
    background-color: rgba(190, 190, 190, 0.8);
    border: 2px solid rgb(42, 42, 42);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.corner-button:hover {
    /* background-color: rgb(44, 44, 44); */
    background-color: #90744c;
}


.imagesBox {
    transition: transform 0.6s ease;

    box-shadow: black; 
    transition: box-shadow 0.3s ease;
  }