.hl-product-gallery-slider {
    display: flex;
    gap: 15px;
    flex-direction: row-reverse;
}
.hl-gallery-main {
    position: relative;
    width: calc(100% - 113.75px - 15px);
    height: 530px;
    overflow: hidden;
}
.hl-prev,
.hl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var( --e-global-color-211253f );
    opacity: 1;
    color: #fff;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 10;
}
.hl-prev { left: 10px; }
.hl-next { right: 10px; }
.hl-gallery-thumbs {
    width: 113.75px;
    height: 530px;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 113.75px;
    gap: 15px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.hl-gallery-thumbs::-webkit-scrollbar {
    width: 0; height: 0;
}
.hl-main-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
	pointer-events: none;
}
.hl-main-slide.active {
    display: block;
}
.hl-thumb.active::after, .hl-main-slide.active::after{
    display: none;
}
.hl-main-slide img,
.hl-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.hl-thumb {
    opacity: 0.5;
    cursor: pointer;
}
.hl-thumb.active {
    opacity: 1;
}

@media (max-width: 768px) {
  .hl-product-gallery-slider {
    flex-direction: column;
gap: 10px;
  }

  .hl-gallery-main {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hl-main-slide,
  .hl-main-slide img {
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .hl-gallery-thumbs {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hl-gallery-thumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .hl-thumb {
    flex: 0 0 80px;
    height: 80px;
  }

  .hl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hl-prev,
  .hl-next {
    top: 50%;
    transform: translateY(-50%);
display: none;
  }
}

@media (max-width: 768px) {
  .hl-product-gallery-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto !important;
  }

  .hl-gallery-main {
    position: static !important; /* Let it contribute height */
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .hl-main-slide {
    position: static !important; /* Let it flow inside .hl-gallery-main */
    display: none;
    pointer-events: none;
  }

  .hl-main-slide.active {
    display: block;
    pointer-events: auto;
  }

  .hl-prev,
  .hl-next {
    top: 50%;
    transform: translateY(-50%);
  }
}


