.slideshow-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  margin: 30px auto;
  box-sizing: border-box;
}

.slide {
  display: none;
  text-align: center;
  position: relative;
}

.slide.active {
  display: block;
}

.slide-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 3px solid #9fd6ff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  display: block;
  background: rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.slide p {
  font-family: Mudah;
  font-size: 20px;
  margin-top: 15px;
  color: grey;
}

/* Navigation buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom: 0;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  z-index: 10;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Counter */
.counter {
  color: grey;
  font-size: 16px;
  padding: 8px 12px;
  text-align: center;
  margin-top: 10px;
}

/* Thumbnails */
.thumbnail-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.thumbnail {
  cursor: pointer;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid #9fd6ff;
  opacity: 0.6;
  transition: 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active-thumb {
  opacity: 1;
  border-color: #ff9f9f;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
  .prev, .next {
    padding: 10px 8px;
    font-size: 18px;
  }

  .slide p {
    font-size: 15px;
  }

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