.wp4d-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 9999;
}
.wp4d-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp4d-modal-inner {
  position: relative;
  width: 90%;
  max-width: 420px;
}
.wp4d-close {
  position: absolute;
  top: -30px;
  right: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* === VIEWER 4D GIỮ NGUYÊN === */
.viewer-4d-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  cursor: grab;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.viewer-4d-container:active {
  cursor: grabbing;
}
.viewer-4d-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Support image display when no video */
.viewer-4d-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.instruction-overlay {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 12px;
  opacity: 0.8;
}
