#gallery {
  margin: 60px 0px;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 25px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.main-image-container:hover .image-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-arrows:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-arrows.prev {
  left: 15px;
}

.nav-arrows.next {
  right: 15px;
}

.nav-arrows i {
  font-size: 16px;
  color: #333;
}

.thumbnail-container {
  position: relative;
  overflow: hidden;
}

.thumbnail-track {
  transition: transform 0.5s ease;
}

.thumbnail-item {
  flex: 0 0 auto;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.thumbnail-item:last-child {
  margin-right: 0;
}

.thumbnail-item.active {
  border-color: #007bff;
  transform: scale(1.05);
}

.thumbnail-item:hover {
  transform: scale(1.1);
}

.thumbnail-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  transition: brightness 0.3s ease;
}

.thumbnail-item:not(.active) .thumbnail-image {
  brightness: 0.7;
}

.thumbnail-item.active .thumbnail-image,
.thumbnail-item:hover .thumbnail-image {
  brightness: 1;
}

.gallery-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }

  .thumbnail-item {
    margin-right: 8px;
  }

  .thumbnail-image {
    width: 60px;
    height: 45px;
  }

  .nav-arrows {
    width: 40px;
    height: 40px;
  }

  .nav-arrows i {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 40px 0;
  }

  .main-image {
    height: 250px;
  }

  .thumbnail-image {
    width: 50px;
    height: 38px;
  }
}
