.gallery {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  /* margin-top: 14.4vh; */
}
@media screen and (max-width: 600px) {
  .gallery {
    height: 35em;
  }
  .mySlides {
    object-fit: cover;
  }
}
.mySlides {
  height: 100%;
  transition: all 0.3s;
}

#product-page-new .grid-60-40 {
  column-gap: 2.5em;
}

@media screen and (max-width: 1024px) {
  #product-page-new .grid-60-40 {
    column-gap: 2em;
  }
  .productInfo {
    padding-right: 0.5em;
  }
}

/* IMAGE GALLERY WITH BUTTONS AND THUMBNAILS */
section.ng {
  background-color: #f2f2f2;
}
section.ng .productGallery {
  max-width: calc(100% - 40em);
  height: fit-content;
  display: grid;
  position: relative;
  margin-inline: auto;
}
section.ng .productGallery .ctrl-btns {
  width: 120%;
  height: 94.7%;
  position: absolute;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: -10%;
  margin-top: -2em;
}
section.ng .productGallery .slider {
  height: 720px !important;
  margin-bottom: 2em;
}
section.ng .productGallery .thumbnails img {
  object-fit: cover;
  width: 90px;
  height: 90px;
  margin: 0.82%;
}
.productGallery {
  height: fit-content;
  display: grid;
  position: relative;
}
.productGallery .slider {
  width: 100%;
  height: 800px !important;
  position: relative;
  overflow: hidden; /* <===  */
  margin-bottom: 1em;
}
.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: all 0.5s;
}
.productGallery .slide img {
  height: 100%;
}
.productGallery .ctrl-btns {
  width: 100%;
  height: 94.7%;
  position: absolute;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.productGallery .ctrl-btns img {
  width: 0.7em;
  margin-inline: 2em;
  cursor: pointer;
}
.productGallery .thumbnails {
  width: 100%;
  column-gap: 0.8em;
  align-items: center;
  justify-content: center;
}
.productGallery .dots {
  position: absolute;
  bottom: 5%;
  margin-bottom: 2em;
  right: 0%;
  left: 0%;
  padding-left: 1.8em;
}
.productGallery .dot {
  cursor: pointer;
  height: 0.4em;
  width: 0.4em;
  margin: 0 3px;
  background-color: #ffffff6a;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.dots .dot.active,
.dot:hover {
  background-color: #ffffff;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@media screen and (max-width: 1440px) {
  section.ng .productGallery {
    max-width: calc(100% - 30em);
  }
  section.ng .productGallery .slider {
    height: 550px !important;
  }
  section.ng .productGallery .thumbnails img {
    object-fit: cover;
    width: 100px;
    height: 80px;
    margin: 0.82%;
  }
  section.ng .productGallery .ctrl-btns {
    width: 130%;
    margin-left: -15%;
  }
}
@media screen and (min-width: 1025px) {
  .productInfo {
    padding-right: 2em;
  }
}

@media screen and (max-width: 768px) {
  .productInfo {
    padding-right: 2.5em;
    padding-left: 0;
  }
  .productGallery {
    margin-left: -0.85em;
    padding-bottom: 0 !important;
    margin-bottom: 2em;
  }
  .productGallery .thumbnails {
    display: none !important;
  }
  .productGallery .slider {
    height: 32em !important;
    width: 100vw;
    margin-left: -1.73em;
  }
  /* .productGallery .ctrl-btns,
  .productGallery .dots {
    margin-left: -1em;
  } */
  .productGallery .slide img {
    object-fit: cover;
  }
  #product-page-new .productGallery .dots {
    bottom: 2%;
  }
}

/* Used in the new product page to change the height of the gallery to 100% instead of a set height */
.productGallery.full {
  height: 100%;
}
.productGallery.full .slider {
  height: 100%;
}

/* New Gallery */
.new-gallery .content {
  width: 100%;
  position: absolute;
  bottom: 0%;
  left: 0%;
  z-index: 9;
  padding: 2em 3.5em;
}
.new-gallery .gradient {
  height: 100%;
  position: absolute;
  left: 0%;
  bottom: 0%;
  width: 25%;
  background-image: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.3));
}
.new-gallery .dot {
  cursor: pointer;
  height: 0.4em;
  width: 0.4em;
  background-color: #ffffff6a;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.new-gallery .dot:not(:first-child) {
  margin-left: 9.5px;
}
.new-gallery .dots .dot.active,
.new-gallery .dot:hover {
  background-color: #ffffff;
}
.new-gallery .text {
  margin-bottom: 1em;
}
.new-gallery .text * {
  color: #ffffff;
}
.new-gallery .text h2.heading-large {
  margin: 0.5em 0 0.8em;
  font-size: 2.4em;
}
.new-gallery h2 {
  font-weight: 400;
}
.new-gallery .flex a {
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75em;
  border-color: #ffffff;
  color: #ffffff;
  font-weight: 500;
  padding-bottom: 0.3em;
}
.new-gallery .flex a:hover {
  text-decoration: none;
}
.new-gallery .flex {
  flex-direction: column;
  row-gap: 2em;
  align-items: flex-start;
}

@media screen and (max-width: 768px) {
  .new-gallery .content {
    padding: 1em;
  }
  .new-gallery .flex {
    flex-direction: row;
    justify-content: space-between;
  }
  .new-gallery .gradient {
    width: 100%;
    background-image: linear-gradient(
      to bottom,
      transparent,
      rgba(0, 0, 0, 0.4)
    );
    height: 40%;
  }
  .new-gallery .content {
    bottom: 0%;
    left: 0%;
    padding: 2em 2.25em 3em;
  }
}
@media screen and (max-width: 430px) {
  .new-gallery h2.heading-large {
    max-width: 65%;
  }
  .new-gallery h2 {
    font-size: 18px;
  }
}
