.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;
      color: white;
      background-color: #3086FF;
      border: none;
      padding: 10px;
      font-size: 30px;
      margin: 0 5px;
      flex-shrink: 0;
      border-radius: 50%;
    }

    .arrow:hover {
      opacity: 0.7;
    }

    .thumbnails {
      display: flex;
      overflow-x: auto;
      scroll-behavior: smooth;
      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 */
}

    .thumbnail {
      width: 100px;
      height: 120px;
      object-fit: cover;
      border-radius: 6px;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s ease;
      flex-shrink: 0;
    }

    .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) {
      .main-image {
        aspect-ratio: 4 / 3;
      }

      .thumbnail {
        width: 70px;
        height: 80px;
      }
      .arrow {
        font-size: 20px;
      }
    }