.type-product .dkLabVisitedProductsNew {
  margin-left: auto;
  margin-right: auto;
}

.p-image-wrapper {
  min-width: 1px;
}

#cboxLoadedContent iframe {
  height: 95%;
}

.detail-images {
  position: relative;
}

.detail-images--one-image .detail-images__in {
  grid-template-columns: 1fr;
}

.detail-images--one-image .detail-images__item:nth-child(-n + 2) {
  grid-column: auto;
}

.detail-images--one-image .detail-images__item:nth-child(-n + 2) img {
  display: block;
  margin-inline: auto;
  max-width: 540px;
}

.detail-images__item img,
.detail-images__item video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-images__item--youtube {
  position: relative;
  overflow: hidden;
}

.detail-images__item--youtube iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.35);
  aspect-ratio: 3/4;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 767px) {
  .type-product .p-image,
  .type-product .p-thumbnails-wrapper,
  .type-product .p-image-wrapper .row {
    display: none !important;
  }
  .detail-images {
    margin-inline: -20px;
    overflow: hidden;
  }
  .detail-images__wrap.carousel {
    overflow: hidden;
    position: relative;
  }
  .carousel-track {
    display: flex;
    transition: transform 0.3s ease;
  }
  .carousel-slide {
    flex-shrink: 0;
    width: 100%;
  }
  .detail-images__more {
    display: none;
  }
  .p-detail-inner {
    gap: 20px;
  }
  .p-image-wrapper .countdown-wrapper {
    z-index: 2;
    position: absolute;
    left: 0;
    bottom: 12px;
  }
  .carousel-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .carousel-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
  }
  .carousel-nav__btn--prev {
    left: 12px;
  }
  .carousel-nav__btn--next {
    right: 12px;
  }
  .carousel-nav__btn--prev::before,
  .carousel-nav__btn--next::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
  }
  .carousel-nav__btn--prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
  }
  .carousel-nav__btn--next::before {
    transform: rotate(45deg);
    margin-right: 3px;
  }
}

@media (min-width: 768px) {
  .type-product .p-image,
  .type-product .p-thumbnails-wrapper,
  .type-product .p-image-wrapper .row {
    display: none !important;
  }
  .type-product .dkLabVisitedProductsNew {
    max-width: 747px;
  }
  .p-image-wrapper {
    display: block;
    width: 100%;
    min-width: 1px;
  }
  .p-image-wrapper .flags.flags-extra {
    display: none;
  }
  .p-image-wrapper .p-image {
    margin: 0;
  }
  .detail-images__in {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .detail-images__item:nth-child(-n + 2) {
    grid-column: span 3;
  }
  .detail-images__item:nth-child(n + 3) {
    grid-column: span 2;
  }
  .detail-images__item:nth-child(n + 6) {
    display: none;
  }
  .detail-images__more {
    z-index: 2;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 8px;
  }
  .detail-images__more span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: white;
    font-weight: 300;
  }
  .detail-images__more span:hover {
    background-color: var(--color-primary);
    color: white;
  }
}

@media (min-width: 992px) {
  .type-product .dkLabVisitedProductsNew {
    max-width: 972px;
  }
  .p-image-wrapper {
    padding-left: 86px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: max-content;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .p-image-wrapper::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 992px) {
  .one-column-body .dkLabVisitedProductsNew .dvpnProducts__item {
    min-width: 50%;
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .type-product .dkLabVisitedProductsNew {
    max-width: 1418px;
  }
}