.infinite-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    background: $secondary;
  }
  .infinite-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-left 60s linear infinite;
  }
  .infinite-carousel-track[style*="paused"] {
    animation-play-state: paused !important;
  }
  .carousel-image {
    flex: 0 0 auto;
    width: 16.66vw; /* 6 per row on lg */
  }
  .carousel-image img {
    width: 100%;
    cursor: pointer;
    object-fit: cover;
  }
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  @media (max-width: 1200px) {
    .carousel-image { width: 25vw; } /* 4 per row */
  }
  @media (max-width: 768px) {
    .carousel-image { width: 33.33vw; } /* 3 per row */
  }
  @media (max-width: 480px) {
    .carousel-image { width: 33.33vw; } /* 3 per row for mobile */
  }
  .gallery-popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(5px);
  }
  .gallery-popup-content {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  .gallery-close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      z-index: 10000;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
  }
  .gallery-close-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
  }
  .gallery-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      z-index: 10000;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
  }
  .gallery-nav-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: translateY(-50%) scale(1.1);
  }
  .gallery-prev-btn {
      left: 20px;
  }
  .gallery-next-btn {
      right: 20px;
  }
  .gallery-image-container {
      max-width: 90%;
      max-height: 70%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 20px 0;
  }
  .gallery-main-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease;
  }
  .gallery-main-image:hover {
      transform: scale(1.02);
  }
  .gallery-counter {
      position: absolute;
      top: 20px;
      left: 20px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 600;
      z-index: 10000;
  }
  .gallery-thumbnails {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      max-width: 90%;
      overflow-x: auto;
      padding: 10px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
      backdrop-filter: blur(10px);
  }
  .gallery-thumbnail {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.3s ease;
      flex-shrink: 0;
  }
  .gallery-thumbnail.active {
      border-color: #007bff;
      transform: scale(1.1);
  }
  .gallery-thumbnail:hover {
      transform: scale(1.05);
  }
  .thumbnail-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  @media (max-width: 768px) {
      .gallery-nav-btn {
          width: 50px;
          height: 50px;
          font-size: 20px;
      }
      .gallery-prev-btn {
          left: 10px;
      }
      .gallery-next-btn {
          right: 10px;
      }
      .gallery-close-btn {
          top: 15px;
          right: 15px;
          width: 45px;
          height: 45px;
          font-size: 18px;
      }
      .gallery-counter {
          top: 15px;
          left: 15px;
          padding: 6px 12px;
          font-size: 12px;
      }
      .gallery-thumbnails {
          bottom: 15px;
          gap: 8px;
      }
      .gallery-thumbnail {
          width: 50px;
          height: 50px;
      }
      .gallery-image-container {
          max-width: 95%;
          max-height: 60%;
      }
  }
  @media (max-width: 480px) {
      .gallery-nav-btn {
          width: 40px;
          height: 40px;
          font-size: 16px;
      }
      .gallery-close-btn {
          width: 40px;
          height: 40px;
          font-size: 16px;
      }
      .gallery-thumbnail {
          width: 40px;
          height: 40px;
      }
      .gallery-thumbnails {
          gap: 6px;
      }
  }