


.gallery-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 15px;
}

.gallery-card {
  width: 100%;

  margin: auto;
  padding: 14px;
  background: #ffffff;
 
  box-shadow: 0 20px 60px rgba(35, 42, 70, 0.14);
}

/* Main Image */
.carousel {
  overflow: hidden;
  border-radius: 1px;
    border: 1px solid grey!important;
}

.gallery-image {

  transition: transform 0.7s ease;
}

.carousel-item.active .gallery-image {
 
}

@keyframes zoomImage {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

/* Caption */
.custom-caption {
  right: auto;
  left: 8%;
  bottom: 12%;
  max-width: 500px;
  text-align: left;
}

.custom-caption span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: 1px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.custom-caption h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
}

.custom-caption p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 45px;
  height: 45px;
  margin: 0 18px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
}

/* Thumbnail Area */
.thumbnail-wrapper {
  display: flex;
  gap: 14px;
  padding: 18px 8px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.thumbnail-wrapper::-webkit-scrollbar {
  height: 5px;
}

.thumbnail-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.thumbnail-btn {
  flex: 0 0 105px;
  width: 105px;
  height: 75px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 3px solid transparent;
  border-radius: 1px;
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 1px solid grey !important;
}

.thumbnail-btn:hover {
  opacity: 0.9;
 
}

.thumbnail-btn:hover img {
 
}

.thumbnail-btn.active {
  border-color: var(--primary-color);
  opacity: 1;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .gallery-section {
    padding: 25px 10px;
  }

  .gallery-card {
    padding: 8px;
    border-radius: 1px;
  }

  .gallery-image {
   
  }

  .custom-caption {
    right: 8%;
    left: 8%;
    bottom: 8%;
  }

  .custom-caption h2 {
    font-size: 28px;
  }

  .custom-caption p {
    font-size: 14px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
    margin: 0 8px;
  }

  .thumbnail-btn {
    flex-basis: 82px;
    width: 82px;
    height: 60px;
  }
}