.theme2-product-gallery .wrap-slick3 {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
}

.theme2-product-gallery .wrap-slick3-dots {
  flex: 0 0 72px;
  width: 72px;
}

.theme2-product-gallery .wrap-slick3-arrows {
  position: absolute;
  z-index: 100;
  left: 96px;
  right: 0;
  top: calc(50% - 20px);
  width: auto;
}

.theme2-product-gallery .slick3 {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.theme2-product-gallery .slick3-dots {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme2-product-gallery .slick3-dots li {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.theme2-product-gallery .slick3-dots li img {
  width: 72px;
  height: 104px;
  object-fit: cover;
}

.theme2-product-gallery .slick3-dot-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.theme2-product-gallery .slick3-dot-overlay:hover,
.theme2-product-gallery .slick3-dots .slick-active .slick3-dot-overlay {
  border-color: #ccc;
}

.theme2-product-gallery .arrow-slick3 {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 25px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}

.theme2-product-gallery .arrow-slick3:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.theme2-product-gallery .prev-slick3 {
  left: 0;
}

.theme2-product-gallery .next-slick3 {
  right: 0;
}

.theme2-product-gallery .wrap-pic-w {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f9fa;
}

.theme2-product-gallery .wrap-pic-w > img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  margin: 0 auto;
}

.theme2-product-gallery .flex-c-m {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme2-product-gallery .size-108 {
  width: 40px;
  height: 40px;
}

.theme2-product-gallery .how-pos1 {
  position: absolute;
  top: 10px;
  right: 10px;
}

.theme2-product-gallery .bor0 {
  border-radius: 50%;
}

.theme2-product-gallery .cl10 {
  color: #1d1d1d;
}

.theme2-product-gallery .bg0 {
  background-color: #fff;
}

.theme2-product-gallery .hov-btn3:hover {
  color: #fff;
  background-color: #222;
}

.theme2-product-gallery .trans-04 {
  transition: all 0.4s;
}

@media (max-width: 767px) {
  .theme2-product-gallery {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .theme2-product-gallery .wrap-slick3 {
    flex-direction: column-reverse;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .theme2-product-gallery .slick3 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .theme2-product-gallery .slick3 .slick-list {
    max-width: 100%;
    overflow: hidden;
  }

  .theme2-product-gallery .slick3 .slick-list,
  .theme2-product-gallery .slick3 .slick-slide,
  .theme2-product-gallery .item-slick3,
  .theme2-product-gallery .wrap-pic-w {
    width: 100%;
  }

  .theme2-product-gallery .slick3 .slick-list,
  .theme2-product-gallery .slick3 .slick-track,
  .theme2-product-gallery .slick3 .slick-slide,
  .theme2-product-gallery .item-slick3,
  .theme2-product-gallery .wrap-pic-w {
    height: min(520px, 118vw);
  }

  .theme2-product-gallery .wrap-pic-w {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme2-product-gallery .wrap-pic-w > img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .theme2-product-gallery .wrap-slick3-dots {
    flex: none;
    width: 100%;
  }

  .theme2-product-gallery .slick3-dots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }

  .theme2-product-gallery .slick3-dots li {
    flex: 0 0 64px;
    margin-bottom: 0;
  }

  .theme2-product-gallery .slick3-dots li img {
    width: 64px;
    height: 88px;
  }

  .theme2-product-gallery .wrap-slick3-arrows {
    left: 0;
    top: min(240px, calc(59vw - 20px));
  }
}
