{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shared-moment-gallery","type":"registry:component","title":"Shared Moment Gallery","description":"The image keeps its place when the room changes.","dependencies":[],"categories":["media","gallery","shared element","dialog","FLIP"],"files":[{"path":"components/lab/shared-moment-gallery/shared-moment-gallery.tsx","target":"components/lab/shared-moment-gallery/shared-moment-gallery.tsx","type":"registry:component","content":"\"use client\";\n\nimport {\n  useCallback,\n  useEffect,\n  useId,\n  useLayoutEffect,\n  useRef,\n  useState,\n  useSyncExternalStore,\n  type ReactNode,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport \"./shared-moment-gallery.css\";\n\nexport type MomentItem = {\n  id: string;\n  title: string;\n  category: string;\n  date: string;\n  caption: string;\n  /** The image, illustration or composition shown in both sizes. */\n  visual: ReactNode;\n  /** A short description for people who cannot see the visual. */\n  alt: string;\n  /** Optional editorial emphasis for the thumbnail ratio. */\n  span?: \"standard\" | \"tall\" | \"wide\";\n};\n\nexport type SharedMomentGalleryProps = {\n  items: MomentItem[];\n  label?: string;\n  layout?: \"editorial\" | \"uniform\";\n  captions?: boolean;\n  className?: string;\n};\n\nconst FOCUSABLE =\n  'a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex=\"-1\"])';\n\nlet locks = 0;\nlet release: (() => void) | null = null;\n\nfunction lockPage() {\n  if (typeof document === \"undefined\") return () => {};\n  locks += 1;\n  if (locks === 1) {\n    const body = document.body;\n    const html = document.documentElement;\n    const gap = window.innerWidth - html.clientWidth;\n    const before = {\n      body: body.style.overflow,\n      padding: body.style.paddingRight,\n      html: html.style.overflow,\n    };\n    body.style.overflow = \"hidden\";\n    html.style.overflow = \"hidden\";\n    if (gap > 0) body.style.paddingRight = `${gap}px`;\n    release = () => {\n      body.style.overflow = before.body;\n      body.style.paddingRight = before.padding;\n      html.style.overflow = before.html;\n      release = null;\n    };\n  }\n  let done = false;\n  return () => {\n    if (done) return;\n    done = true;\n    locks = Math.max(0, locks - 1);\n    if (locks === 0) release?.();\n  };\n}\n\nfunction prefersReduced() {\n  return (\n    typeof window !== \"undefined\" &&\n    window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches\n  );\n}\n\nconst noopSubscribe = () => () => {};\nfunction useClientReady() {\n  return useSyncExternalStore(\n    noopSubscribe,\n    () => true,\n    () => false,\n  );\n}\n\n/**\n * SHARED MOMENT GALLERY\n *\n * Opening a card lifts its media from the thumbnail's exact rectangle\n * into the detail panel with a FLIP measurement, while the caption\n * arrives in a deliberate sequence. Closing runs the same path back to\n * the source card. The detail view is a modal dialog with contained\n * focus, Escape/arrow keys and a stable non-View-Transition fallback.\n */\nexport function SharedMomentGallery({\n  items,\n  label = \"Gallery\",\n  layout = \"editorial\",\n  captions = true,\n  className,\n}: SharedMomentGalleryProps) {\n  const uid = useId();\n  const [selected, setSelected] = useState<number | null>(null);\n  const [closing, setClosing] = useState(false);\n  const ready = useClientReady();\n  const source = useRef<{ node: HTMLElement; rect: DOMRect } | null>(null);\n  const panelRef = useRef<HTMLDivElement>(null);\n  const mediaRef = useRef<HTMLDivElement>(null);\n  const closeRef = useRef<HTMLButtonElement>(null);\n  const previousIndex = useRef<number | null>(null);\n  const dialogTitle = useRef<HTMLHeadingElement>(null);\n  const closeTimer = useRef<number | null>(null);\n\n  useEffect(() => () => {\n    if (closeTimer.current !== null) window.clearTimeout(closeTimer.current);\n  }, []);\n\n  useEffect(() => {\n    if (selected === null) return;\n    return lockPage();\n  }, [selected]);\n\n  useEffect(() => {\n    if (selected === null) return;\n    const timer = window.setTimeout(() => closeRef.current?.focus(), 40);\n    return () => window.clearTimeout(timer);\n  }, [selected]);\n\n  const open = (index: number, node: HTMLElement) => {\n    source.current = { node, rect: node.getBoundingClientRect() };\n    previousIndex.current = null;\n    setClosing(false);\n    setSelected(index);\n  };\n\n  const close = useCallback(() => {\n    if (selected === null || closing) return;\n    setClosing(true);\n    const node = source.current?.node;\n    const media = mediaRef.current;\n    const reduced = prefersReduced();\n    const duration = reduced ? 0 : 300;\n\n    const finish = () => {\n      setSelected(null);\n      setClosing(false);\n      const target = source.current?.node;\n      if (target?.isConnected) target.focus();\n    };\n\n    if (node && media && !reduced) {\n      const from = media.getBoundingClientRect();\n      const to = node.getBoundingClientRect();\n      const dx = to.left - from.left;\n      const dy = to.top - from.top;\n      const sx = to.width / Math.max(from.width, 1);\n      const sy = to.height / Math.max(from.height, 1);\n      media.animate(\n        [\n          { transform: \"none\", opacity: 1 },\n          {\n            transform: `translate3d(${dx}px, ${dy}px, 0) scale(${sx}, ${sy})`,\n            opacity: 0.65,\n          },\n        ],\n        { duration, easing: \"cubic-bezier(0.4, 0, 0.2, 1)\", fill: \"forwards\" },\n      );\n    }\n\n    closeTimer.current = window.setTimeout(finish, duration + 20);\n  }, [selected, closing]);\n\n  const go = (delta: number) => {\n    if (selected === null) return;\n    previousIndex.current = selected;\n    setSelected((current) =>\n      current === null\n        ? null\n        : (current + delta + items.length) % items.length,\n    );\n  };\n\n  const onKeyDown = (event: {\n    key: string;\n    shiftKey: boolean;\n    preventDefault: () => void;\n  }) => {\n    if (event.key === \"Escape\") {\n      event.preventDefault();\n      close();\n      return;\n    }\n    if (event.key === \"ArrowRight\") {\n      event.preventDefault();\n      go(1);\n      return;\n    }\n    if (event.key === \"ArrowLeft\") {\n      event.preventDefault();\n      go(-1);\n      return;\n    }\n    if (event.key !== \"Tab\") return;\n    const panel = panelRef.current;\n    if (!panel) return;\n    const nodes = [...panel.querySelectorAll<HTMLElement>(FOCUSABLE)].filter(\n      (node) => node.getClientRects().length > 0,\n    );\n    if (!nodes.length) return;\n    const first = nodes[0];\n    const last = nodes[nodes.length - 1];\n    if (!panel.contains(document.activeElement)) {\n      event.preventDefault();\n      first.focus();\n    } else if (event.shiftKey && document.activeElement === first) {\n      event.preventDefault();\n      last.focus();\n    } else if (!event.shiftKey && document.activeElement === last) {\n      event.preventDefault();\n      first.focus();\n    }\n  };\n\n  useEffect(() => {\n    if (selected === null) return;\n    const handler = (event: globalThis.KeyboardEvent) => {\n      onKeyDown(event);\n    };\n    document.addEventListener(\"keydown\", handler);\n    return () => document.removeEventListener(\"keydown\", handler);\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [selected, closing, items.length]);\n\n  /* The media flight happens after the dialog has a real layout. */\n  useLayoutEffect(() => {\n    if (selected === null || closing) return;\n    const media = mediaRef.current;\n    if (!media) return;\n    const reduced = prefersReduced();\n    if (reduced) return;\n    if (previousIndex.current === null) {\n      const rect = source.current?.rect;\n      if (!rect) return;\n      const target = media.getBoundingClientRect();\n      const dx = rect.left - target.left;\n      const dy = rect.top - target.top;\n      const sx = rect.width / Math.max(target.width, 1);\n      const sy = rect.height / Math.max(target.height, 1);\n      media.animate(\n        [\n          {\n            transform: `translate3d(${dx}px, ${dy}px, 0) scale(${sx}, ${sy})`,\n            borderRadius: \"8px\",\n          },\n          { transform: \"none\", borderRadius: \"3px\" },\n        ],\n        {\n          duration: 430,\n          easing: \"cubic-bezier(0.16, 1, 0.3, 1)\",\n        },\n      );\n    } else {\n      media.animate(\n        [\n          { opacity: 0, transform: \"scale(1.012)\" },\n          { opacity: 1, transform: \"scale(1)\" },\n        ],\n        { duration: 280, easing: \"cubic-bezier(0.22, 1, 0.36, 1)\" },\n      );\n    }\n    previousIndex.current = selected;\n  }, [selected, closing]);\n\n  const item = selected === null ? null : items[selected];\n\n  return (\n    <div\n      className={`smg-root${className ? ` ${className}` : \"\"}`}\n      data-layout={layout}\n    >\n      <ul className=\"smg-grid\" aria-label={label}>\n        {items.map((entry, index) => (\n          <li\n            key={entry.id}\n            className=\"smg-cell\"\n            data-span={entry.span ?? \"standard\"}\n          >\n            <button\n              type=\"button\"\n              className=\"smg-card\"\n              onClick={(event) => open(index, event.currentTarget)}\n              aria-label={`${entry.title}, ${entry.category}. Open study.`}\n              data-active={\n                selected === index && !closing ? \"true\" : \"false\"\n              }\n            >\n              <span className=\"smg-thumb\" aria-hidden=\"true\">\n                {entry.visual}\n              </span>\n              <span className=\"smg-card-meta\">\n                <span className=\"smg-card-title\">{entry.title}</span>\n                <span className=\"smg-card-line\">\n                  {entry.category}\n                  {captions ? ` · ${entry.date}` : \"\"}\n                </span>\n              </span>\n            </button>\n          </li>\n        ))}\n      </ul>\n\n      {ready && item && selected !== null\n        ? createPortal(\n            <div\n              className=\"smg-overlay\"\n              data-closing={closing ? \"true\" : \"false\"}\n            >\n              <div\n                className=\"smg-backdrop\"\n                aria-hidden=\"true\"\n                onClick={() => {\n                  if (!closing) close();\n                }}\n              />\n              <div\n                ref={panelRef}\n                className=\"smg-panel\"\n                role=\"dialog\"\n                aria-modal=\"true\"\n                aria-labelledby={`${uid}-title`}\n                aria-describedby={`${uid}-caption`}\n                tabIndex={-1}\n              >\n                <div ref={mediaRef} className=\"smg-detail-media\" aria-hidden=\"true\">\n                  {item.visual}\n                </div>\n                <div className=\"smg-detail\">\n                  <div className=\"smg-detail-top\">\n                    <span className=\"smg-counter\">\n                      {String(selected + 1).padStart(2, \"0\")} /{\" \"}\n                      {String(items.length).padStart(2, \"0\")}\n                    </span>\n                    <button\n                      ref={closeRef}\n                      type=\"button\"\n                      className=\"smg-close\"\n                      onClick={close}\n                      aria-label=\"Close study\"\n                    >\n                      Close\n                      <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n                        <path\n                          d=\"M4 4l8 8M12 4l-8 8\"\n                          fill=\"none\"\n                          stroke=\"currentColor\"\n                          strokeWidth=\"1.4\"\n                          strokeLinecap=\"round\"\n                        />\n                      </svg>\n                    </button>\n                  </div>\n                  <div className=\"smg-detail-meta\" key={item.id}>\n                    <p className=\"smg-detail-category\">{item.category}</p>\n                    <h2 id={`${uid}-title`} ref={dialogTitle} tabIndex={-1}>\n                      {item.title}\n                    </h2>\n                    <p className=\"smg-detail-date\">{item.date}</p>\n                    <p id={`${uid}-caption`} className=\"smg-caption\">\n                      {item.caption}\n                    </p>\n                    <p className=\"smg-alt\">{item.alt}</p>\n                  </div>\n                  <div className=\"smg-nav\">\n                    <button type=\"button\" onClick={() => go(-1)} aria-label=\"Previous study\">\n                      <span aria-hidden=\"true\">←</span> Previous\n                    </button>\n                    <button type=\"button\" onClick={() => go(1)} aria-label=\"Next study\">\n                      Next <span aria-hidden=\"true\">→</span>\n                    </button>\n                  </div>\n                </div>\n              </div>\n            </div>,\n            document.body,\n          )\n        : null}\n    </div>\n  );\n}\n"},{"path":"components/lab/shared-moment-gallery/shared-moment-gallery.css","target":"components/lab/shared-moment-gallery/shared-moment-gallery.css","type":"registry:file","content":".smg-root {\n  --smg-ink: #1b1b1d;\n  --smg-muted: #74716a;\n  --smg-line: rgba(27, 27, 29, 0.12);\n  --smg-paper: #f0ede5;\n  --smg-surface: #fbf9f4;\n  --smg-ease: cubic-bezier(0.22, 1, 0.36, 1);\n  min-width: 0;\n  color: var(--smg-ink);\n  font: inherit;\n}\n\n.smg-grid {\n  columns: 2;\n  column-gap: 16px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.smg-cell {\n  width: 100%;\n  margin: 0 0 16px;\n  break-inside: avoid;\n  min-width: 0;\n}\n\n.smg-root[data-layout=\"uniform\"] .smg-grid {\n  display: grid;\n  grid-template-columns: repeat(12, minmax(0, 1fr));\n  gap: 12px;\n  columns: auto;\n  column-gap: normal;\n}\n\n.smg-root[data-layout=\"uniform\"] .smg-cell {\n  margin: 0;\n  grid-column: span 4;\n}\n\n.smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"tall\"] {\n  grid-column: span 4;\n}\n\n.smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"wide\"] {\n  grid-column: span 8;\n}\n\n.smg-card {\n  display: grid;\n  gap: 9px;\n  width: 100%;\n  padding: 0;\n  border: 0;\n  background: transparent;\n  color: inherit;\n  font: inherit;\n  text-align: left;\n  cursor: zoom-in;\n}\n\n.smg-card:focus-visible {\n  outline: 2px solid var(--smg-ink);\n  outline-offset: 3px;\n}\n\n.smg-thumb {\n  display: block;\n  overflow: hidden;\n  border-radius: 4px;\n  background: #d8d3c8;\n  aspect-ratio: 4 / 5;\n  transition:\n    opacity 220ms ease,\n    transform 400ms var(--smg-ease);\n}\n\n.smg-cell[data-span=\"wide\"] .smg-thumb {\n  aspect-ratio: 16 / 9;\n}\n\n.smg-cell[data-span=\"tall\"] .smg-thumb {\n  aspect-ratio: 3 / 5;\n}\n\n.smg-thumb > * {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  transition: transform 700ms var(--smg-ease);\n}\n\n.smg-card:hover .smg-thumb > *,\n.smg-card:focus-visible .smg-thumb > * {\n  transform: scale(1.025);\n}\n\n.smg-card[data-active=\"true\"] .smg-thumb {\n  opacity: 0.38;\n}\n\n.smg-card-meta {\n  display: grid;\n  gap: 1px;\n  min-width: 0;\n}\n\n.smg-card-title {\n  font-size: 0.8125rem;\n  font-weight: 600;\n  letter-spacing: -0.005em;\n  line-height: 1.35;\n  overflow-wrap: anywhere;\n}\n\n.smg-card-line {\n  color: var(--smg-muted);\n  font-family: ui-monospace, \"SF Mono\", \"Cascadia Mono\", Consolas, monospace;\n  font-size: 0.5625rem;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  line-height: 1.4;\n}\n\n.smg-overlay {\n  --smg-ink: #f2eee4;\n  --smg-muted: rgba(242, 238, 228, 0.66);\n  --smg-line: rgba(242, 238, 228, 0.16);\n  --smg-paper: #131315;\n  --smg-surface: #19191c;\n  position: fixed;\n  inset: 0;\n  z-index: 90;\n  display: grid;\n  place-items: center;\n  padding: 28px;\n  color: var(--smg-ink);\n  font: inherit;\n}\n\n.smg-backdrop {\n  position: absolute;\n  inset: 0;\n  background: rgba(12, 12, 14, 0.76);\n  opacity: 1;\n  transition: opacity 260ms ease;\n}\n\n.smg-overlay[data-closing=\"true\"] .smg-backdrop {\n  opacity: 0;\n}\n\n.smg-panel {\n  position: relative;\n  display: grid;\n  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);\n  width: min(1080px, 100%);\n  max-height: min(86dvh, 760px);\n  overflow: hidden;\n  border: 1px solid rgba(242, 238, 228, 0.14);\n  border-radius: 6px;\n  background: var(--smg-surface);\n  box-shadow: 0 40px 120px -50px rgba(0, 0, 0, 0.8);\n  transition:\n    background-color 240ms ease,\n    border-color 240ms ease,\n    box-shadow 240ms ease;\n}\n\n.smg-overlay[data-closing=\"true\"] .smg-panel {\n  background: transparent;\n  border-color: transparent;\n  box-shadow: none;\n}\n\n.smg-panel:focus {\n  outline: none;\n}\n\n.smg-detail-media {\n  position: relative;\n  z-index: 2;\n  min-height: 0;\n  overflow: hidden;\n  background: #24242a;\n  transform-origin: top left;\n  will-change: transform;\n}\n\n.smg-detail-media > * {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}\n\n.smg-detail {\n  display: flex;\n  flex-direction: column;\n  min-height: 0;\n  overflow-y: auto;\n  padding: 20px 24px 20px;\n  border-left: 1px solid var(--smg-line);\n  background: var(--smg-surface);\n  scrollbar-width: thin;\n}\n\n.smg-overlay[data-closing=\"true\"] .smg-detail {\n  opacity: 0;\n  transition: opacity 120ms ease;\n}\n\n.smg-detail-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n}\n\n.smg-counter {\n  font-family: ui-monospace, \"SF Mono\", \"Cascadia Mono\", Consolas, monospace;\n  font-size: 0.625rem;\n  letter-spacing: 0.12em;\n  color: var(--smg-muted);\n}\n\n.smg-close {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  min-height: 32px;\n  padding: 4px 9px;\n  border: 1px solid var(--smg-line);\n  border-radius: 999px;\n  background: transparent;\n  color: var(--smg-ink);\n  font: inherit;\n  font-size: 0.6875rem;\n  font-weight: 600;\n  cursor: pointer;\n  transition:\n    background-color 150ms ease,\n    color 150ms ease;\n}\n\n.smg-close:hover {\n  background: var(--smg-ink);\n  color: var(--smg-paper);\n}\n\n.smg-close:focus-visible,\n.smg-nav button:focus-visible {\n  outline: 2px solid var(--smg-ink);\n  outline-offset: 2px;\n}\n\n.smg-close svg {\n  width: 12px;\n  height: 12px;\n}\n\n.smg-detail-meta {\n  display: grid;\n  align-content: center;\n  flex: 1;\n  gap: 9px;\n  padding: 32px 0 24px;\n}\n\n.smg-detail-category {\n  margin: 0;\n  color: #d8c79d;\n  font-family: ui-monospace, \"SF Mono\", \"Cascadia Mono\", Consolas, monospace;\n  font-size: 0.625rem;\n  letter-spacing: 0.14em;\n  text-transform: uppercase;\n  animation: smg-enter 380ms var(--smg-ease) both;\n}\n\n.smg-detail-meta h2 {\n  margin: 0;\n  font-size: clamp(1.5rem, 3vw, 2.1rem);\n  font-weight: 550;\n  letter-spacing: -0.035em;\n  line-height: 1.08;\n  text-wrap: balance;\n  animation: smg-enter 420ms 60ms var(--smg-ease) both;\n}\n\n.smg-detail-meta h2:focus {\n  outline: none;\n}\n\n.smg-detail-date {\n  margin: 0;\n  color: var(--smg-muted);\n  font-size: 0.75rem;\n  animation: smg-enter 420ms 110ms var(--smg-ease) both;\n}\n\n.smg-caption {\n  margin: 12px 0 0;\n  color: var(--smg-muted);\n  font-size: 0.875rem;\n  line-height: 1.6;\n  text-wrap: pretty;\n  animation: smg-enter 440ms 170ms var(--smg-ease) both;\n}\n\n.smg-alt {\n  margin: 0;\n  padding-top: 12px;\n  border-top: 1px solid var(--smg-line);\n  color: var(--smg-muted);\n  font-size: 0.6875rem;\n  line-height: 1.55;\n  animation: smg-enter 440ms 220ms var(--smg-ease) both;\n}\n\n.smg-nav {\n  display: flex;\n  justify-content: space-between;\n  gap: 8px;\n  padding-top: 12px;\n  border-top: 1px solid var(--smg-line);\n}\n\n.smg-nav button {\n  display: inline-flex;\n  align-items: center;\n  gap: 7px;\n  min-height: 36px;\n  padding: 4px 2px;\n  border: 0;\n  border-radius: 4px;\n  background: transparent;\n  color: var(--smg-ink);\n  font: inherit;\n  font-size: 0.75rem;\n  font-weight: 550;\n  cursor: pointer;\n}\n\n.smg-nav button:hover {\n  color: #d8c79d;\n}\n\n@keyframes smg-enter {\n  from {\n    opacity: 0;\n    transform: translateY(9px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n\n@media (max-width: 900px) {\n  .smg-panel {\n    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);\n  }\n\n  .smg-root[data-layout=\"uniform\"] .smg-cell,\n  .smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"tall\"] {\n    grid-column: span 6;\n  }\n\n  .smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"wide\"] {\n    grid-column: span 12;\n  }\n}\n\n@media (max-width: 720px) {\n  .smg-root[data-layout=\"editorial\"] .smg-grid {\n    columns: 1;\n  }\n\n  .smg-overlay {\n    padding: 0;\n    align-items: stretch;\n  }\n  .smg-panel {\n    grid-template-columns: 1fr;\n    grid-template-rows: minmax(0, 52dvh) minmax(0, 1fr);\n    width: 100%;\n    max-height: none;\n    height: 100dvh;\n    border: 0;\n    border-radius: 0;\n  }\n\n  .smg-detail {\n    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));\n    border-left: 0;\n    border-top: 1px solid var(--smg-line);\n  }\n\n  .smg-detail-meta {\n    padding: 22px 0 18px;\n  }\n\n  .smg-overlay[data-closing=\"true\"] .smg-panel {\n    background: transparent;\n  }\n\n  .smg-overlay[data-closing=\"true\"] .smg-detail {\n    opacity: 0;\n  }\n}\n\n@media (max-width: 520px) {\n  .smg-root[data-layout=\"uniform\"] .smg-cell,\n  .smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"tall\"],\n  .smg-root[data-layout=\"uniform\"] .smg-cell[data-span=\"wide\"] {\n    grid-column: span 12;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .smg-backdrop,\n  .smg-panel,\n  .smg-detail,\n  .smg-thumb,\n  .smg-thumb > * {\n    transition-duration: 0.01ms;\n  }\n\n  .smg-detail-category,\n  .smg-detail-meta h2,\n  .smg-detail-date,\n  .smg-caption,\n  .smg-alt {\n    animation-duration: 0.01ms;\n  }\n\n  .smg-detail-media {\n    transform: none !important;\n  }\n}\n"}]}