.woocommerce-product-gallery .custom-product-gallery {
  display: none;
  position: relative;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.woocommerce-product-gallery .custom-product-gallery > *:nth-child(1) {
  grid-column: 1/span 4;
  grid-row: 1/span 2;
}
.woocommerce-product-gallery .custom-product-gallery > *:nth-child(2) {
  grid-column: 5/span 2;
  grid-row: 1;
}
.woocommerce-product-gallery .custom-product-gallery > *:nth-child(3) {
  grid-column: 5/span 2;
  grid-row: 2;
}
.woocommerce-product-gallery .custom-product-gallery > *:nth-child(n+4) {
  grid-column: span 3;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item img,
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item video,
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item img {
  aspect-ratio: 1/1;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item video {
  aspect-ratio: 1/1;
  object-fit: cover;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item video[autoplay] {
  autoplay: false;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item .video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item .video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item .video-play-overlay:hover circle {
  fill: rgba(0, 0, 0, 0.8);
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item .video-play-overlay:active {
  transform: translate(-50%, -50%) scale(0.95);
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item .video-play-overlay svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.woocommerce-product-gallery .custom-product-gallery .custom-gallery-item iframe {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.woocommerce-product-gallery .custom-product-gallery .see-all-photos-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--base-white);
  color: var(--grey-1);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md, 8px);
  padding: 12px 24px;
  font-family: var(--font-family-body, Montserrat);
  font-size: var(--font-size-2, 14px);
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.woocommerce-product-gallery .custom-product-gallery .see-all-photos-btn:hover {
  background: var(--grey-1);
  color: var(--base-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.woocommerce-product-gallery .custom-product-gallery .see-all-photos-btn:active {
  transform: scale(0.98);
}
@media (max-width: 768px) {
  .woocommerce-product-gallery .custom-product-gallery {
    display: none !important;
  }
  .woocommerce-product-gallery .primary-slider {
    display: block !important;
  }
}

.custom-gallery-lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.custom-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.custom-gallery-lightbox .lightbox-media-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-gallery-lightbox .lightbox-media-container img,
.custom-gallery-lightbox .lightbox-media-container video,
.custom-gallery-lightbox .lightbox-media-container iframe {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.custom-gallery-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  color: var(--grey-4);
  transition: all 0.3s ease;
  z-index: 10000;
  padding: 20px;
  width: auto;
  height: auto;
}
.custom-gallery-lightbox .lightbox-close:hover {
  color: var(--base-white);
  transform: scale(1.1);
}
.custom-gallery-lightbox .lightbox-prev,
.custom-gallery-lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-4);
  transition: all 0.3s ease;
  z-index: 10000;
  padding: 20px;
}
.custom-gallery-lightbox .lightbox-prev:hover,
.custom-gallery-lightbox .lightbox-next:hover {
  color: var(--base-white);
}
.custom-gallery-lightbox .lightbox-prev {
  left: 20px;
}
.custom-gallery-lightbox .lightbox-next {
  right: 20px;
}
.custom-gallery-lightbox .lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-family-body, Montserrat);
  font-size: var(--font-size-2, 14px);
  font-weight: 600;
  z-index: 10000;
}

/*# sourceMappingURL=custom_product_gallery.css.map */
