* {
    box-sizing: border-box;
  }
  
  .slider {
    position: relative;
    width: 80%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto; /* horizontal centering */
  }
  
  .slides {
    display: none;
    width: 100%;
  }
  
  .slides img {
    width: 100%;
    height: auto; /* auto height based on image aspect ratio */
    display: block;
    border-radius: 12px;
  }
  
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
  }
  
  .dots {
    position: absolute;
    top: 15px; /* position at top of image */
    width: 100%;
    text-align: center;
  }
  
  .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
  }
  
  .active-dot {
    background-color: white;
  }
  