/*
Theme Name: Hello Elementor Child
Theme URI: https://yourwebsite.com/
Description: Hello Elementor Child Theme
Author: Your Name
Author URI: https://yourwebsite.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Add your custom CSS below this line */
.before_after_wrapper{
    padding-bottom: 6%;
    margin-top: -40px;
}
.main_before_after_slider {
    display: grid;
    place-items: center;
  }
  
  .before_after_container {
    display: grid;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    --position: 50%;
  }
  
  .image-container-before-after {
    max-height: 90vh;
  }
  
  .slider-image-new {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: left;
  }
  
  .image-before-new {
    position: absolute;
    inset: 0;
    width: var(--position);
  }
  
  .slider-range-new:focus-visible ~ .slider-button {
    outline: 5px solid black;
    outline-offset: 3px;
  }
  
  .slider-range-new {
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
  }
  
  .slider-line {
    position: absolute;
    inset: 0;
    width: 0.2rem;
    height: 100%;
    background-color: #000000;
    left: var(--position);
    transform: translateX(-50%);
    pointer-events: none;
  }
  
  .slider-button {
    position: absolute;
    background-color: #fff;
    color: black;
    padding: 0.5rem;
    border-radius: 100vw;
    display: grid;
    place-items: center;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 30;
    box-shadow: 1px 1px 1px hsl(0, 50%, 2%, 0.5);
  }
  .before-label, .after-label, .after-scroll {
    position: absolute;
    top: -30px;
    padding: 5px 50px;
    background-color: #161616;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    z-index: 40;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
  }
  
  .before-label {
    left: 10px;
  }
  
  .after-label {
    right: 10px;
  }
  
  .after-scroll{
    background-color: #161616E5;
    padding: 5px 30px;
    right: 4px;
    text-transform: unset;
    top: 4px;
    border-radius: 9px;
  }
  
  .after-scroll-wrapper{
    position: sticky;
      top: 0;
      z-index: 1;
      margin: 0 !important;
  }
  
  @media only screen and (max-width: 600px) {
    .before-label, .after-label {
      padding: 5px 15px;
      font-size: 12px;
      top: -45px;
    }
    .after-scroll{
      padding: 5px 15px;
      font-size: 12px;
    }
    .before-label {
      left: -10px;
    }
    .after-label {
      right: -10px;
    }
    .slider-button svg{
      width: 12px;
      height: 12px;
    }
    .percent-value{
      font-size: 30px !important;
    }
  }