/* Wrapper: big preview on the left, containers on the right */
.jhg-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Big preview image */
.jhg-preview {
  flex: 1;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;   /* ensure rounded corners */
}

.jhg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Containers: side by side columns */
.jhg-containers {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: auto;
}

/* Each vertical slider column */
.jhg-thumbs-swiper {
  width: 150px;
  height: 400px;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;   /* rounded corners for container */
}

.jhg-thumbs-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

/* Thumbnail images */
.jhg-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.jhg-thumb:hover {
  transform: scale(1.1);
}

/* Mobile layout: stack preview and sliders */
@media (max-width: 768px) {
  .jhg-wrapper {
    flex-direction: column;
  }

  .jhg-preview {
    height: 250px;
    margin-bottom: 15px;
  }

  .jhg-containers {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .jhg-thumbs-swiper {
    width: 140px;
    height: auto;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
  }

  .jhg-thumb {
    width: 120px;
    height: 100px;
    margin-bottom: 10px;   /* gap between thumbs */
    border-radius: 8px;
  }
}