/* PICTURES AND LIVE FIGURES: product UI on its lavender field, the figures that play (scenes/share.html, scenes/memory.html), pictures two up, and the lightbox a picture opens into. */

figure.block {
  margin: 40px 0 0;
}
/* product UI sits on the hero's lavender field, the same way the hero does: an inset, top corners rounded, cut flush at the bottom, no shadow */
.ff {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--grain), var(--field);
  padding: 20px 16px 0;
}
.ff > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
}
/* 02: the share window, live: the walkthrough's own scene, cut to the window and looping the invite */
/* a live figure: the modal on its own little page, played like a screen recording while it's on screen; the still under it is the first frame of reading */
.lv {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #fff;
  aspect-ratio: var(--w) / var(--h);
}
.lv-in {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform-origin: 0 0;
}
.lv-in > img,
.lv-in > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.lv-in > iframe {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.lv.live iframe {
  opacity: 1;
}
/* a picture, opened over the page, as on Rishabh's: the page goes soft behind it, the picture grows out of where it sat, a plain cross closes it */
[data-lb] {
  cursor: zoom-in;
}
[data-lb]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(251, 251, 251, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  backdrop-filter: blur(22px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.34s ease,
    visibility 0s 0.34s;
  cursor: zoom-out;
} /* hidden, not just see-through: a see-through layer that blurs what is behind it is still worked out on every frame, over the whole screen */
.lb.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.34s ease;
}
.lb-pic {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  cursor: default;
}
.lb-pic > * {
  margin: 0 !important;
  width: 100% !important;
}
.lb-pic > .hero img,
.lb-pic > .hero video,
.lb-pic .lv {
  border-radius: var(--r) var(--r) 0 0;
} /* a UI on its field grows as one picture: padding and corners scale with it */
.lb-pic > img {
  display: block;
  height: 100%;
  border-radius: 12px;
  outline: 1px solid rgba(58, 59, 54, 0.08);
  outline-offset: -1px;
}
.lb-x {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}
.lb-x:hover {
  background: rgba(58, 59, 54, 0.07);
}
.lb-x:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.lb-x svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
@media (max-width: 820px) {
  .lb-x {
    top: 10px;
    right: 10px;
  }
}
/* 03 and 04: things that aren't our UI, two up, the way Rishabh lays his tries side by side */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.duo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 364 / 228;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 10px;
  outline: 1px solid rgba(58, 59, 54, 0.08);
  outline-offset: -1px;
}
.duo p {
  margin-top: 10px;
  font: 400 13px/18px Inter;
  color: var(--tertiary);
}
.duo + .cap {
  margin-top: 14px;
}
.cap {
  margin-top: 12px;
  font: 400 13px/18px Inter;
  color: var(--tertiary);
}
@media (max-width: 820px) {
  .ff {
    padding: 12px 10px 0;
  }
  .duo {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}
