/* style.css */
.carousel-wrapper {
  position: relative;
  width: 90%;
  margin: auto;
  overflow: visible;
  padding-bottom: 120px;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: 500px;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: #f77f00;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 2em;
}

.nav img {
  width: 24px;
  height: 24px;
}

.nav.prev {
  left: -30px;
}

.nav.next {
  right: -30px;
}

.carousel-thumbnails {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  overflow-x: hidden;
  padding: 1rem 0;
}

.thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  opacity: 0.5;
  cursor: pointer;
  transform: scale(0.9);
  transition: transform 0.3s, opacity 0.3s;
  margin: 0;
}

.thumbnail:first-child {
  margin-left: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  z-index: 2;
}

@media (max-width: 768px) {

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .nav {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    top: 45%;
  }

  .nav.prev {
    left: 10px;
  }

  .nav.next {
    right: 10px;
  }

  .carousel-wrapper {
    overflow: hidden;
  }
}