.custom-gallery {
      text-align: center;
      margin: 1rem auto 2rem auto ;
    }

    .carousel-wrapper {
      display: flex;
      align-items: center;
      margin: 0 auto;
      overflow: hidden;
    }

    .arrow {
        cursor: pointer;
        background: linear-gradient(145deg, #3a9fff, #1e63d4);
        border: none;
        padding: 12px;
        font-size: 18px;
        color: white;
        margin: 0 8px;
        flex-shrink: 0;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, background-color 0.3s ease;
    }

    .arrow:hover {
      opacity: 0.8;
    }

    .arrow:hover:not(:disabled) {
    background-color: #1e63d4;
  }

    .arrow:disabled {
    background-color: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }

    .thumbnails {
      display: flex;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      gap: 10px;
      flex: 1;
      overflow-x: auto;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none;  /* IE 10+ */
    }

    .thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

@keyframes imageIntro {
  0% {
    transform: scale(0.85);
    filter: blur(5px);
  }
  100% {
    transform: scale(1);
    filter: blur(0);
  }
}

    .thumbnail {
      scroll-snap-align: start;
      width: 120px;
      height: 80px;
      object-fit: cover;
      border-radius: 6px;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s ease;
      flex: 0 0 auto;
      animation: imageIntro 2s ease-out forwards;
    }

    .thumbnail.active {
  transform: scale(1.05);
  opacity: 1;
  border: 2px solid #007bff;
  transition: transform 0.3s ease, border 0.3s ease;
}

    .thumbnail:hover {
      opacity: 1;
      border: 2px solid #333;
    }
    .thumbnails::-webkit-scrollbar {
      display: none;
    }

    @media (max-width: 600px) {

      .thumbnail {
        width: 120px;
        height: 80px;
      }
    }