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

body {
  font-family: Arial, sans-serif;
}

.slideshow-container {
  width: 100%;
  height: 56.25vw;  /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-container {
  display: flex;
  justify-content: space-evenly; /* Distribute thumbnails with equal spacing */
  align-items: center; /* Center thumbnails vertically */
  margin-top: 20px;
  width: 100%; /* Full width for the container */
  flex-wrap: nowrap; /* Prevent wrapping of thumbnails */
}

.thumbnail {
  flex: 0 0 14%; /* Set each thumbnail to take 10% of the container's width */
  max-width: 14%; /* Ensure no thumbnail exceeds 10% of the container's width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure images fit nicely within their space */
  flex-wrap: nowrap;
}






.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thumbnails img:hover {
  opacity: 0.7;
}

button {
  background-color: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #000;
}

button:hover {
  opacity: 0.7;
}

/* Button positioning for moving slides */
.prev, .next {
  margin: 0 20px;
}

/* Ensure the left arrow points left and the right one points right */
.prev {
  transform: rotate(180deg);  /* Rotate left arrow 180 degrees */
}

.next {
  /* No rotation needed, but if you want, you can add styles here */
}

/* Button positioning for moving slides */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #000;
  z-index: 10;  /* Make sure the buttons stay on top */
}

.prev {
  left: 10px;
  transform: translateY(-50%) rotate(180deg);  /* Left arrow with rotation */
}

.next {
  right: 10px;
  transform: translateY(-50%);  /* Right arrow with no rotation */
}
