/* Platform proof: the concept diagrams sit directly in the story card (no frame inside a frame)
   and carry a maximize control that opens them at full size so the labels can be read. */
.product-story .product-shot {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.product-story .product-shot img[data-expandable] { cursor: zoom-in; }

.shot-expand {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(23, 42, 70, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: #2a3b55;
  box-shadow: 0 8px 22px rgba(25, 42, 70, .12);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shot-expand svg { width: 18px; height: 18px; }
.shot-expand:hover,
.shot-expand:focus-visible {
  color: #6852ff;
  border-color: rgba(104, 82, 255, .45);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(104, 82, 255, .18);
}
.shot-expand:focus-visible { outline: 2px solid #6852ff; outline-offset: 2px; }

/* Full-size view: the dialog shrink-wraps the diagram, bounded by the viewport. */
.shot-lightbox {
  width: fit-content;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
}
.shot-lightbox-shell { position: relative; padding: 56px 28px 22px; }
.shot-lightbox-shell .close-button { position: absolute; top: 14px; right: 14px; }
.shot-lightbox img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: min(1720px, calc(100vw - 88px));
  max-height: calc(100vh - 150px);
}
.shot-lightbox-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #6f7b8d;
}

@media (max-width: 720px) {
  .shot-expand { width: 34px; height: 34px; border-radius: 10px; }
  .shot-expand svg { width: 16px; height: 16px; }
  /* Narrow screens: keep the diagram large enough to read and let it swipe sideways. */
  .shot-lightbox { width: calc(100% - 24px); max-width: none; }
  .shot-lightbox-shell { padding: 52px 0 16px; }
  .shot-lightbox-scroller { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .shot-lightbox img { width: 900px; max-width: none; max-height: none; padding: 0 12px; box-sizing: content-box; }
  .shot-lightbox-caption { font-size: 12px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-expand { transition: none; }
  .shot-expand:hover,
  .shot-expand:focus-visible { transform: none; }
}
