.product-gallery-wrapper {
  width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  height: 60vh;
}

.product-gallery-top {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  border-radius: 0.7rem;
}

.product-gallery-top.inactive::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.5); 
  z-index: 101;
  pointer-events: none; 
}


.product-gallery-top.inactive::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: url("../img/scroll-transparent.gif") no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  z-index: 101;
  pointer-events: none;
}

.product-gallery-top-image {
  display: inline-block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: white;
}

.product-gallery-top-image img {
  object-fit: contain;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.product-gallery-top-carousel-track {
  transition: transform 0.3s;
  position: relative;
  cursor: pointer;
  width: 100%;
  font-size: 0;
  position: relative;
  z-index: 100;
  height: 100%;
}

.product-gallery-bottom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-right: 20px;
}

.product-gallery-back {
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}

.product-gallery-forward {
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}

.product-gallery-back img {
  transform: rotate(90deg);
}

.product-gallery-forward img {
  transform: rotate(90deg);
}

.product-gallery-bottom {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  width: 100%;
}

.product-gallery-bottom-carousel-track {
  transition: transform 0.3s;
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
  box-sizing: border-box;
}

.product-gallery-bottom-image {
  box-sizing: border-box;
  display: flex;
  height: 20%; /* 100% / 5 visible items */
  font-size: 0px;
  padding:0.5% 0%;
  flex-shrink: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  box-sizing: border-box;
  width: 100%;
  border-radius: 0.5rem;
  transition: 300ms;
}

.product-gallery-bottom-image .thumbnail {
  background-color: white;
  border-radius: 0.5rem;
}

.thumbnail_image {
  border-radius: 0.5rem;
}

.product-gallery-bottom-image:hover {
  filter: brightness(0.9);
}

#product-lightbox-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 1rem;
  background-color: rgba(200, 200, 200, 0.8);
  backdrop-filter: blur(1rem);
  z-index: 100000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0;
  box-sizing: border-box;
}

#product-lightbox-buttons {
  position: absolute;
  right: 1%;
  top: 3%;
  display: flex;
  gap: 3rem;
  align-items: center;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#product-lightbox-zoom-wrapper {
  display: flex;
  align-items: center;
  font-size: 2rem !important;
  gap: 0.2rem;
}

#product-lightbox-zoom {
  accent-color: gray;
  cursor: pointer;
}

#product-lightbox-close {
  cursor: pointer;
  width: 8%;
  height: auto;
}

#product-lightbox-zoom-wrapper label {
  cursor: pointer;
  width: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}

#product-lightbox-zoom-wrapper label:hover {
  background-color: rgba(200, 200, 200, 0.6);
  border-radius: 50%;
}

#product-lightbox-carousel-main-wrapper {
  width: 70%;
  height: 70vh;
  display: flex;
  align-items: center;
}

#product-lightbox-carousel-main-left-button {
  height: 100%;
  width: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  transition: 0.3s ease-in-out;
  background-color: rgba(100, 100, 100, 0);
}

#product-lightbox-carousel-main-left-button:hover {
  background-color: rgba(100, 100, 100, 0.5);
}

#product-lightbox-carousel-main-left-button img {
  width: 20%;
}

#product-lightbox-carousel-main-right-button {
  height: 100%;
  width: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  transition: 0.3s ease-in-out;
  background-color: rgba(100, 100, 100, 0);
}

#product-lightbox-carousel-main-right-button:hover {
  background-color: rgba(100, 100, 100, 0.5);
}

#product-lightbox-carousel-main-right-button img {
  width: 20%;
}

#product-lightbox-main-carousel {
  width: 90%;
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

#product-lightbox-main-track {
  height: 100%;
  width: 100%;
  transition: transform 0.3s;
}

#product-lightbox-main-image {
  display: inline-block;
  width: 100%;
  height: 100%;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  cursor: pointer;
}

#product-lightbox-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: -1;
}

#product-lightbox-vertical-carousel-wrapper {
  width: 20%;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#product-lightbox-carousel-vertical-left-button {
  width: 100%;
  height: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  transition: 0.3s ease-in-out;
  background-color: rgba(100, 100, 100, 0);
}

#product-lightbox-carousel-vertical-left-button:hover {
  background-color: rgba(100, 100, 100, 0.5);
}

#product-lightbox-carousel-vertical-left-button img {
  height: 60%;
  transform: rotate(90deg);
}

#product-lightbox-carousel-vertical-right-button {
  width: 100%;
  height: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  transition: 0.3s ease-in-out;
  background-color: rgba(100, 100, 100, 0);
}

#product-lightbox-carousel-vertical-right-button:hover {
  background-color: rgba(100, 100, 100, 0.5);
}

#product-lightbox-carousel-vertical-right-button img {
  height: 60%;
  transform: rotate(90deg);
}

#product-lightbox-vertical-carousel {
  width: 100%;
  height: 90%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  font-size: 0;
}

#product-lightbox-vertical-track {
  height: 100%;
  width: 100%;
  transition: transform 0.3s;
}

#product-lightbox-vertical-image {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  width: 100%;
  height: 20%;
  padding: 4% 1%;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  cursor: pointer;
}

#product-lightbox-vertical-image img {
  height: 100%;
  width: auto;
  padding: 3%;
  object-fit: contain;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  position: relative;
  z-index: -1;
}

@media screen and (max-width:1700px) {
  .product-gallery-bottom-image {
    height: 25%;
  }
}

@media screen and (max-width: 1023px) {
  .product-gallery-wrapper {
    gap:1rem;
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }

  .product-gallery-top {
    height: 30vh;
  }

  .product-gallery-bottom-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .product-gallery-bottom-carousel-track {
    height: auto;
  }

  .product-gallery-bottom-image {
    display: inline-flex;
    width: 31.33%;
    margin-left:1%;
    margin-right:1%;
    height: auto;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    box-sizing: border-box;
  }

  #product-lightbox-vertical-carousel-wrapper {
    display: none;
  }

  #product-lightbox-carousel-main-wrapper {
    width: 100%;
  }

  #product-lightbox-carousel-main-right-button {
    width: 10%;
  }

  #product-lightbox-carousel-main-left-button {
    width: 10%;
  }

  #product-lightbox-wrapper {
    background-color: rgba(200, 200, 200, 1);
  }
}

@media screen and (max-width: 767px) {
  
}
