.slider {
    position: relative;
    max-width: 980px;
    margin: 1.5rem auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 500ms ease-in-out;
  }
  
  .slide { flex: 0 0 100%; width: 100%; height: 100%; }
  .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  
  .nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(20,20,20,0.45); color: #fff; border: none;
    width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
    display: grid; place-items: center; transition: background 150ms ease; z-index: 5;
  }
  .nav:hover { background: rgba(20,20,20,0.65); }
  .prev { left: 10px; } .next { right: 10px; }
  
  .dots {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
  }
  .dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: rgba(255,255,255,0.55); border: 0; cursor: pointer;
  }
  .dot[aria-selected="true"] { background: #fff; }
  
  @media (max-width: 768px) {
    .slider { border-radius: 8px; }
    .nav { width: 36px; height: 36px; }
  }
  