/* DP Videos — product gallery */

/* video thumbnails: poster is a plain .thumb img (aligns exactly like photo thumbs); ▶ overlaid on the li. JS sizes poster to match sibling photos. */
/* display:inline-block (not the theme's default inline <li>) so this box wraps
   tightly around the poster image — top:50%/left:50% below needs a real, matching
   box to center against, and an inline <li>'s box can end up a different size
   depending on surrounding line-height/font-size context (seen breaking only
   inside the quickview modal, where those ancestors differ from the product page) */
.dpv-thumb { cursor: pointer; position: relative !important; display: inline-block !important; }
.dpv-thumb img.dpv-poster,
.dpv-thumb .dpv-noposter { object-fit: cover; display: inline-block; }
.dpv-thumb .dpv-noposter { width: 98px; height: 98px; background: #14121a; }
.dpv-thumb .dpv-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.5); pointer-events: none; z-index: 2;
}
.dpv-thumb .dpv-play::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent #fff;
}
.dpv-thumb.dpv-active img.dpv-poster { outline: 2px solid #a259d6; outline-offset: -2px; }

/* cover hover arrows (prev/next through photos + videos) */
.product-cover .dpv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 8;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity .18s; display: flex; align-items: center; justify-content: center;
}
.product-cover:hover .dpv-nav { opacity: 1; }
.product-cover .dpv-nav:hover { background: rgba(0,0,0,.62); }
.product-cover .dpv-prev { left: 10px; }
.product-cover .dpv-next { right: 10px; }
.product-cover .dpv-nav span { display: block; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.product-cover .dpv-prev span { transform: rotate(135deg); margin-left: 4px; }
.product-cover .dpv-next span { transform: rotate(-45deg); margin-right: 4px; }

/* click video body => enlarge (leave bottom controls strip free) */
.dpv-cover-video .dpv-vzoom-catch {
  position: absolute; left: 0; right: 0; top: 0; bottom: 48px; z-index: 7; cursor: zoom-in;
}
/* centered magnifier on the cover video */
.dpv-cover-video .dpv-zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 8;
  width: 58px; height: 58px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88);
  cursor: zoom-in; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .18s;
}
.product-cover:hover .dpv-cover-video .dpv-zoom { opacity: 1; }
.dpv-cover-video .dpv-zoom .material-icons { font-size: 30px; color: #333; }
/* quickview IS already an enlarged view — the "zoom to full lightbox" affordance
   is redundant (and its target #product-modal lightbox isn't meant for this context) */
.quickview .dpv-zoom,
.quickview .dpv-vzoom-catch { display: none !important; }

/* blurred background layer (shared) */
.dpv-blur {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(26px) brightness(.82); transform: scale(1.25);
}

/* main cover video */
.product-cover { position: relative; }
.dpv-cover-video {
  position: absolute; inset: 0; z-index: 6; overflow: hidden; border-radius: inherit;
  display: flex; align-items: center; justify-content: center; background: #0b0b0b;
}
.dpv-cover-video video {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent;
}

/* modal: panel background + dim behind */
#product-modal.js-product-images-modal { background: rgba(20,16,26,.42); }
#product-modal .modal-dialog { max-width: 900px; width: auto; margin: 1.75rem auto; }
#product-modal .modal-content { background: #fff; border-radius: 12px; overflow: visible; box-shadow: 0 12px 50px rgba(0,0,0,.42); }
#product-modal .modal-body { max-width: 100%; margin: 0 !important; align-items: center; }
#product-modal .modal-body figure { position: relative; }
/* unified SQUARE media stage: photos & video share one size; edges blurred to fill */
#product-modal .modal-body figure picture {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: min(58vh, 540px); height: min(58vh, 540px); margin: 0 auto; overflow: hidden; background: #0b0b0b; border-radius: 6px;
}
#product-modal .modal-body figure picture::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--dpv-pbg, none); background-size: cover; background-position: center;
  filter: blur(28px) brightness(.82); transform: scale(1.25);
}
#product-modal .modal-body figure picture img {
  position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}
/* modal nav arrows (over the big image) */
.dpv-mnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dpv-mnav:hover { background: rgba(0,0,0,.62); }
.dpv-mprev { left: 10px; }
.dpv-mnext { right: 10px; }
.dpv-mnav span { display: block; width: 11px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.dpv-mprev span { transform: rotate(135deg); margin-left: 4px; }
.dpv-mnext span { transform: rotate(-45deg); margin-right: 4px; }

/* fullscreen modal video (blurred bg fills the frame) */
.dpv-modal-vwrap {
  position: relative; width: min(58vh, 540px); height: min(58vh, 540px); margin: 0 auto; overflow: hidden; background: #0b0b0b; border-radius: 6px;
}
.dpv-modal-vwrap .dpv-blur { filter: blur(32px) brightness(.82); transform: scale(1.3); }
.dpv-modal-video {
  position: relative; z-index: 1; display: block; margin: 0 auto;
  width: 100%; height: 100%; object-fit: contain; background: transparent;
}
