 

#gallery {
  text-align: center;
  padding: 40px 20px;
}

.slider {
  position: relative;
  width: 80%;          /* 80% of screen width */
  height: 450px;       /* fixed height */
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slides img {
  width: 100%;
  height: 100%;        /* force image to fit slider height */
  object-fit: cover;   /* crop/scale nicely without distortion */
  display: none;
}

.slides img.active {
  display: block;
}


.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(178,34,34,0.8);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

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

@media (max-width: 768px) {
  .slider {
    width: 95%;
    height: 300px; /* smaller height for phones */
  }
  
}