/* ROY DIAMOND — shared jewellery video lightbox (homepage + collection galleries) */
.home-jewellery-video-frame,
.rd-video-gallery-frame {
  cursor: zoom-in;
}

.home-jewellery-video-frame:focus-visible,
.rd-video-gallery-frame:focus-visible {
  outline: 3px solid rgba(0, 0, 0, .20);
  outline-offset: 3px;
}

.rd-video-zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(0, 0, 0, .78);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  pointer-events: none;
  transition: transform .18s ease, background .18s ease;
}

.rd-video-zoom-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rd-video-zoom-icon svg path {
  fill: none !important;
  stroke: #ffffff !important;
}

.home-jewellery-video-frame:hover .rd-video-zoom-icon,
.home-jewellery-video-frame:focus-visible .rd-video-zoom-icon,
.rd-video-gallery-frame:hover .rd-video-zoom-icon,
.rd-video-gallery-frame:focus-visible .rd-video-zoom-icon {
  background: #000000;
  transform: scale(1.06);
}

/* Full-viewport dialog shell keeps the viewer truly centered on PC + phone. */
.rd-video-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
  border: 0;
  color: #ffffff;
}

.rd-video-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-video-lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.rd-video-lightbox__panel {
  position: relative;
  flex: 0 0 auto;
  width: min(92vw, 1280px);
  height: auto;
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.rd-video-lightbox__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #000000;
}

.rd-video-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(0, 0, 0, .80);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.rd-video-lightbox__close svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
  stroke-width: 2;
  stroke-linecap: round;
}

.rd-video-lightbox__close svg path {
  fill: none !important;
  stroke: #ffffff !important;
}

.rd-video-lightbox__close:hover,
.rd-video-lightbox__close:focus-visible {
  background: #000000;
  transform: scale(1.04);
}

.rd-video-lightbox__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

html.rd-video-lightbox-open,
html.rd-video-lightbox-open body {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .rd-video-zoom-icon {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
  }

  .rd-video-lightbox__panel {
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 22px);
    border-radius: 9px;
  }

  .rd-video-lightbox__close {
    top: 7px;
    right: 7px;
    width: 38px;
    height: 38px;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
  }

  .rd-video-lightbox__close svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-video-zoom-icon,
  .rd-video-lightbox__close {
    transition: none;
  }
}
