.product-images > [hidden] { display: none !important; }
.product-images { position: relative; }
.product-images .dg-video-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-size: 13px;
  cursor: pointer;
}
.dg-modal-video {
  width: 100%;
  height: 75vh;
  border: 0;
  object-fit: contain;
  background: #111;
}
.dg-gallery-video {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  align-self: start;
  border: 0;
  background: #f6f6f6;
  object-fit: contain;
}
.product-images .thumbnails .dg-video-thumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #222;
  cursor: pointer;
}
.product-images .thumbnails .dg-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}
.dg-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #242424;
  pointer-events: none;
}
.dg-video-play::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 14px;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.product-images .thumbnails .dg-video-thumb[aria-pressed="true"],
.product-images .thumbnails .dg-video-thumb:focus-visible {
  outline: 2px solid #242424;
  outline-offset: -2px;
}
@media (max-width: 767px) {
  body#product .product-images .thumbnails:has(.dg-video-thumb) { display: flex; }
  .product-images .thumbnails .dg-video-thumb { width: 64px; height: 64px; }
}
