.slider {
    width: 100%;
    max-width: 800px;
    height: 250px;
    position: absolute;
    display: grid;
  }
  
  .slide {
    width: 100%;
    max-width: 800px;
    height: 250px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    
  }
  
  .slide.active {
    opacity: 1;
  }
  
  .slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  
  .btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    background-color: transparent;
    font-size: 18px;
    color: white;
    margin: 0 auto;
    align-self: center;
  }
  
  .btn:active {
    transform: scale(1.1);
  }
  
  .btn-prev {
    left: 2%;
  }
  
  .btn-next {
    right: 2%;
  }
  