.slider-container {
    width: 90%;
    margin: 50px auto;
    margin-top: 0px;
    overflow: hidden;
    position: relative;
    /* Border removed */
  }

  
  
  .slider {
    display: flex;
    transition: transform 0.5s ease;
  }

  
  
  .slide {
    /* This forces a 3:2 ratio based on the slide’s width */
    aspect-ratio: 3 / 2;
    overflow: hidden;
    box-sizing: border-box;
    padding: 5px; /* if you want to keep the padding, or remove if not needed */
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .nav-buttons {
    position: absolute;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  
  .nav-btn {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ddd !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    display: flex;             /* Use flexbox */
    align-items: center;       /* Center vertically */
    justify-content: center;   /* Center horizontally */
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  