.vwh-viewer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 20px;
  margin: 24px 0;
}

.vwh-viewer,
.vwh-details-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.vwh-viewer .vwh-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #4f6176, #20242b);
}

.vwh-frame,
.vwh-hotspot-layer {
  position: absolute;
  inset: 0;
}

.vwh-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.vwh-viewer-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vwh-frame-label {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.vwh-ghost-button,
.vwh-prev-frame,
.vwh-next-frame {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.vwh-ghost-button {
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  padding: 10px 14px;
}

.vwh-ghost-button.is-active {
  background: #c2410c;
}

.vwh-controls {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 12px;
  margin-top: 16px;
}

.vwh-slider-wrap {
  display: grid;
  gap: 6px;
}

.vwh-timeline {
  position: relative;
  height: 12px;
  margin-top: 4px;
}

.vwh-timeline-track,
.vwh-timeline-markers {
  position: absolute;
  inset: 0;
}

.vwh-timeline-track {
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.vwh-timeline-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.35);
  cursor: pointer;
}

.vwh-timeline-marker.is-active {
  background: rgba(14, 116, 144, 0.55);
}

.vwh-timeline-marker.is-selected {
  background: #c2410c;
}

.vwh-slider-wrap span,
.vwh-details-title,
.vwh-details-empty,
.vwh-details-copy {
  color: #667085;
}

.vwh-frame-slider {
  width: 100%;
}

.vwh-prev-frame,
.vwh-next-frame {
  background: #111827;
  color: #fff;
}

.vwh-details-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.vwh-details-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.vwh-details-heading {
  margin: 0 0 8px;
}

.vwh-details-copy {
  margin: 0 0 12px;
}

.vwh-details-link {
  color: #c2410c;
  font-weight: 600;
}

.vwh-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border: 0;
  border-radius: 50%;
  background: rgba(194, 65, 12, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.vwh-marker::before,
.vwh-marker::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.vwh-marker::before {
  width: 10px;
  height: 10px;
  background: #c2410c;
}

.vwh-marker::after {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(194, 65, 12, 0.6);
  animation: vwh-pulse 1.8s infinite;
}

.vwh-marker.is-selected::after {
  border-width: 2px;
}

@keyframes vwh-pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}

@media (max-width: 900px) {
  .vwh-viewer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vwh-controls {
    grid-template-columns: 1fr;
  }
}
