.gallery-container {
  position: relative;
  max-width: 100%;
  text-align: center;
}

.slider img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: opacity 0.5s ease-in-out;
}

.fade-in {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slider:hover .gallery-overlay {
  opacity: 1;
}

.controls {
  position: absolute;
  top: 50%;
  width: 93%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.prev-btn,
.next-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.thumbnail-list {
  gap: 20px;
}

.thumbnail-img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border 0.3s;
}

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

.thumbnail-img.active {
  border: 3px solid #007bff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-card {
    margin: 10px;
  }

  .controls {
    gap: 10px;
  }

  .thumbnail-list {
    flex-wrap: wrap;
  }

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

.ellipsis-text {
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Adjust this to place the tooltip above the text */
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}
