.product-gallery {
  --pg-ink: #1a0b54;
  --pg-muted: #7c7196;
  --pg-gradient: linear-gradient(100deg, #2ba7ff, #ca45ff 52%, #fe881b);
  color: var(--pg-ink);
  font-family: 'Mazzard H', Inter, Arial, sans-serif;
  padding-top: clamp(72px, 7vw, 112px);
  isolation: isolate;
  overflow-x: clip;
}
.product-gallery:not(.pg-enhanced) .pg-controls,
.product-gallery:not(.pg-enhanced) .pg-enlarge { display: none; }
.pg-intro { text-align: center; max-width: 940px; }
.pg-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 19px; border-radius: 999px;
  background: #f7f7fa; color: #33205d; font-size: 14px; font-weight: 500;
}
.pg-badge > span { color: #b262ef; font-size: 20px; }
.pg-intro h2 {
  font-size: clamp(32px, 4vw, 56px); font-weight: 500;
  line-height: 1.13; margin: 25px 0 19px; letter-spacing: -.035em;
}
.pg-intro h2 > span {
  background: var(--pg-gradient); background-clip: text;
  -webkit-background-clip: text; color: transparent;
}
.pg-intro > p { color: var(--pg-muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; }
.pg-track { position: relative; margin-top: 24px; }
.pg-stage.container { width: min(92%, 1440px); }
.pg-stage { display: flex; align-items: center; padding-block: 112px 32px; }
.pg-layout {
  width: 100%; display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 4vw, 64px);
}
.pg-visual {
  width: 100%; min-width: 0; max-width: calc(150svh - 336px);
  justify-self: center; padding-top: 18px;
}
.pg-stack { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.pg-card {
  position: absolute; inset: 0; margin: 0; display: flex;
  flex-direction: column; overflow: hidden;
  border: 1px solid #dde1eb; border-radius: 18px;
  background: #f7f8fb;
  box-shadow: 0 18px 48px -24px #29234535, 0 3px 8px #1b245408;
  transform-origin: 50% 50%; opacity: 0; visibility: hidden;
}
.pg-card.is-current { opacity: 1; visibility: visible; }
.pg-card.is-back { background: #f5f6fa; box-shadow: none; }
.pg-card.is-back .pg-image-wrap { visibility: hidden; }
/* The captured app already has its own title bar. A second browser frame is redundant. */
.pg-card-top { display: none; }
.pg-image-wrap {
  flex: 1; min-height: 0; display: flex; align-items: center;
  justify-content: center; padding: 0; position: relative; background: #f7f8fb;
}
.pg-image-wrap > img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  max-height: 100%; object-fit: contain; object-position: center;
}
.pg-image-wrap.pg-accounts { padding-bottom: 66px; }
.pg-image-wrap > img.pg-dock-detail {
  position: absolute; bottom: 12px; left: 2%; width: 96%;
  height: auto; max-height: 46px; object-fit: contain;
  border: 1px solid #e5e7ee; border-radius: 8px; background: #fff;
}
.pg-image-footer {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; margin-top: 13px; gap: 14px;
  color: #858195; font-size: 11px;
}
.pg-image-footer > span { display: flex; align-items: center; gap: 7px; }
.pg-image-footer > span::before {
  content: ''; width: 5px; height: 5px; flex-shrink: 0;
  border-radius: 50%; background: #7e6ac8;
}
.pg-enlarge {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 42px; padding: 9px 15px;
  border: 1px solid #e8e5ef; border-radius: 999px;
  background: #fff; color: #49346a;
  font: inherit; font-size: 12px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pg-enlarge > span { font-size: 16px; }
.pg-enlarge:disabled { cursor: wait; }
.pg-copy { min-width: 0; }
.pg-stories { display: grid; align-items: center; min-height: 260px; }
.pg-story { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; }
.pg-story.is-current { opacity: 1; visibility: visible; pointer-events: auto; }
.pg-eyebrow {
  color: #82719f; font-size: 10px; font-weight: 500;
  letter-spacing: .12em; line-height: 1.5; margin-bottom: 18px;
}
.pg-story h3 {
  max-width: 440px; font-size: clamp(28px, 2.65vw, 40px);
  font-weight: 500; letter-spacing: -.035em; line-height: 1.16;
  text-wrap: balance;
}
.pg-description { margin-top: 19px; color: var(--pg-muted); font-size: 15px; line-height: 1.75; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 21px 0 0; }
.pg-tags li {
  border: 1px solid #ebe7f2; border-radius: 999px; padding: 6px 10px;
  background: #faf9fc; color: #74648e; font-size: 10px; line-height: 1.4;
}
.pg-controls { margin-top: 30px; padding-top: 18px; border-top: 1px solid #ece9f2; }
.pg-control-row { display: flex; align-items: center; gap: 14px; }
.pg-counter { color: #a39bac; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-counter b { color: #33224f; font-size: 21px; font-weight: 500; }
.pg-scroll-hint { flex: 1; color: #9a91a7; font-size: 10px; line-height: 1.4; }
.pg-scroll-hint > span { margin-left: 4px; }
.pg-arrows { display: flex; gap: 8px; margin-left: auto; }
.pg-arrows button {
  display: grid; place-items: center; width: 44px; height: 44px;
  flex-shrink: 0; padding: 0; border: 1px solid #e7e2ef; border-radius: 50%;
  background: #fff; color: #49346a; font: 19px Arial, sans-serif; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pg-arrows button:disabled { opacity: .32; cursor: default; }
.pg-steps { display: flex; gap: 6px; margin-top: 5px; }
.pg-step { flex: 1; min-width: 0; height: 44px; padding: 20px 0; border: 0; background: none; cursor: pointer; }
.pg-step > span { display: block; height: 3px; border-radius: 999px; background: #e9e6ef; transition: background .2s; }
.pg-step[aria-current] > span { background: var(--pg-gradient); }
.product-gallery button:focus-visible { outline: 2px solid #8069d9; outline-offset: 4px; }
.product-gallery.pg-enhanced .pg-stage { position: sticky; top: 0; height: 100svh; }
.product-gallery.pg-enhanced .pg-card { opacity: 1; }
.product-gallery[data-transitioning='true'] .pg-card { will-change: transform; }
.product-gallery.pg-discrete .pg-stage { position: relative; height: auto; padding-block: 66px 56px; }
.product-gallery.pg-discrete .pg-scroll-hint { visibility: hidden; }
.pg-dialog {
  position: fixed; inset: 0; width: min(1500px, 96vw); max-width: none;
  max-height: 96svh; padding: 18px; border: 1px solid #e2e0eb;
  border-radius: 20px; background: #fff; color: #33224f;
  box-shadow: 0 24px 80px #11132635;
}
.pg-dialog::backdrop { background: #17142ab8; backdrop-filter: blur(6px); }
.pg-dialog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 16px; color: #776887; font-size: 12px;
}
.pg-close {
  min-height: 44px; padding: 10px 16px; border: 1px solid #e8e4ef;
  border-radius: 999px; background: #fff; color: #49346a;
  font: inherit; font-size: 12px; cursor: pointer;
}
.pg-dialog > img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(96svh - 132px); object-fit: contain; margin: auto;
}
.pg-dialog > p { margin-top: 14px; text-align: center; color: #92859e; font-size: 10px; }
@media (hover: hover) {
  .pg-enlarge:hover, .pg-arrows button:not(:disabled):hover, .pg-close:hover { background: #f8f6fc; border-color: #d9d0e8; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .pg-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
  .pg-story h3 { font-size: 28px; }
  .pg-description { font-size: 14px; }
  .pg-stories { min-height: 250px; }
  .pg-scroll-hint { max-width: 100px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .pg-stage { padding-block: 104px 24px; }
  .pg-visual { max-width: calc(150svh - 312px); }
  .pg-story h3 { font-size: clamp(27px, 2.4vw, 34px); }
  .pg-description { margin-top: 16px; }
  .pg-controls { margin-top: 22px; }
}
@media (max-width: 760px) {
  .product-gallery { padding-top: 72px; }
  .pg-intro h2 { font-size: 32px; margin: 22px 0 17px; }
  .pg-intro > p { max-width: 330px; margin: auto; font-size: 14px; }
  .pg-badge { padding: 10px 17px; font-size: 13px; }
  .pg-track { margin-top: 16px; }
  .pg-stage.container { width: min(90%, 540px); }
  .pg-stage { padding-block: 108px 24px; }
  .pg-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pg-visual { max-width: none; padding-top: 14px; }
  .pg-card { border-radius: 13px; }
  .pg-image-wrap.pg-accounts { padding-bottom: 42px; }
  .pg-image-wrap > img.pg-dock-detail { bottom: 8px; max-height: 28px; border-radius: 5px; }
  .pg-image-footer { min-height: 44px; margin-top: 10px; gap: 8px; font-size: 9px; }
  .pg-enlarge { min-height: 44px; padding: 8px 12px; gap: 7px; font-size: 11px; }
  .pg-stories { min-height: 0; align-items: start; }
  .pg-eyebrow { margin-bottom: 12px; font-size: 9px; }
  .pg-story h3 { max-width: 460px; font-size: 27px; line-height: 1.15; }
  .pg-description { margin-top: 13px; font-size: 13px; line-height: 1.65; }
  .pg-tags { margin-top: 15px; gap: 6px; }
  .pg-tags li { padding: 5px 9px; font-size: 10px; }
  .pg-controls { margin-top: 21px; padding-top: 13px; }
  .pg-counter b { font-size: 20px; }
  .pg-scroll-hint { font-size: 10px; }
  .pg-dialog { width: 96vw; padding: 12px; border-radius: 15px; }
  .pg-dialog-toolbar { gap: 10px; font-size: 10px; }
  .product-gallery.pg-discrete .pg-stage { padding-block: 52px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-card, .pg-story, .pg-step > span { transition: none !important; will-change: auto !important; }
}
