.gallery-container {
  width: 100%;
  max-width: 600px;
  /*     margin: 0 auto; */
  padding: 1rem;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
}

.image-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.main-image:hover .image-slide {
  cursor: zoom-in;
}

.image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
  gap: 10px;
}

.image-thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: border 0.3s, transform 0.3s;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-thumb-20 {
  width: 20px;
  height: 20px;
}
.image-thumb-30 {
  width: 30px;
  height: 30px;
}
.image-thumb-40 {
  width: 40px;
  height: 40px;
}
.image-thumb-50 {
  width: 50px;
  height: 50px;
}
.image-thumb-60 {
  width: 60px;
  height: 60px;
}
.image-thumb-70 {
  width: 70px;
  height: 70px;
}
.image-thumb-80 {
  width: 80px;
  height: 80px;
}
.image-thumb-90 {
  width: 90px;
  height: 90px;
}
.image-thumb-100 {
  width: 100px;
  height: 100px;
}
.image-thumb-110 {
  width: 110px;
  height: 110px;
}
.image-thumb-120 {
  width: 120px;
  height: 120px;
}

.image-thumb-130 {
  width: 130px;
  height: 130px;
}

.image-thumb-140 {
  width: 140px;
  height: 140px;
}

.image-thumb.round {
  border-radius: 50%;
}

/* Overlapping thumbnails if there are more than 5 */
.image-thumbnails.overlap .image-thumb {
  margin-left: -30px;
  z-index: 1;
  border: 2px solid #ffffff;
}

.image-thumbnails.overlap .image-thumb:first-child {
  margin-left: 0;
}

.image-thumb:hover,
.image-thumb.active {
  transform: scale(1.1);
  z-index: 10;
}

.image-magnifier {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid #000;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .image-thumb {
    width: 60px;
    height: 60px;
  }
  .image-magnifier {
    display: none !important;
  }

  .main-image:hover .image-slide {
    transform: none;
  }
}

@media (max-width: 480px) {
  .image-thumb {
    width: 50px;
    height: 50px;
  }
  /* Disable grey highlight on iOS (WebKit browsers) */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Optional: Prevent user selection (if you want no text/image selection on tap/hold) */
  body {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
  }

  /* Optional: Smooth interaction */
  body {
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation; /* Reduce delay on tap, especially on buttons/images */
  }
}

