.before-after-container {
    position: relative;
    width: 100%; /* set your desired width */
    height: 250px;
    overflow: hidden;
    cursor: ew-resize;
}
.solo {
  width: 100%; /* set your desired width */
  height: 250px;
}
.before-image,
.after-image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; 
}
  
.after-image {
    clip-path: inset(0 50% 0 0); /* fully hidden initially */
  
}

.tall-fix {
  height: 250px; /* or whatever fixed height you need */
  overflow: hidden;
}

.tall-fix .before-image,
.tall-fix .after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ Slider handle style */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e1b12c;
    cursor: ew-resize;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.before-after-image-gallery {
    
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows:  auto;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        padding: 0 0 100px 0;
   
}


@media (max-width: 1280px) {
  .before-after-image-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet (e.g. 768px - 1024px) */
@media (max-width: 1024px) {
  .before-after-image-gallery  {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
  .before-after-container {
    height: 150px;
}
  .before-after-image-gallery  {
    grid-template-columns: repeat(2, 1fr); /* or 1fr for single column */
    grid-template-rows: auto;
    grid-column-gap: 6px;
  }
}