  
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

  .slider1 {
  position: relative;
  overflow: hidden; /* hides overflow slides */
  width: 100%;
  max-height: 80vh;
}

.slides1 {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide1 {
  width: 100%; /* ensures one full slide at a time */
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.slide1 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

    @media screen and (max-width: 768px) {
  .slide1 {
    height: 60vh;
  }
}

    @media screen and (max-width: 768px) {
  .slides1 img {
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background-color: #000; /* Optional: fills space around image */
  }
}

 .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: black;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }


    @media screen and (max-width: 768px) {
      .slides1 img {
        height: 60vh;
      }

      .nav-arrow {
        padding: 8px;
      }
    }