.image-slider {
  max-width: 560px;
  height: 760px;
  margin: 0 auto;
  position: relative;
}

.main-image {
  text-align: center;
  object-fit: cover;
  background-size: cover;
}

#main-img {
  width: 560px;
  height: 660px;
  border-radius: 8px;
  object-fit: cover;

  background-size: cover;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border: 2px solid #007bff;
}

@media (max-width: 768px) {
  .image-slider {
    padding-top: 10px;
    max-width: 400px;
    height: 490px;
  }

  #main-img {
    width: 400px;
    height: 420px;
  }

  .thumb {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 430px) {
  .image-slider {
    padding-top: 10px;
    width: 100%;
    height: 390px;
  }

  #main-img {
    width: 100%;
    height: 320px;
  }
}
