.card-product-motion .card-frame {
  background: #eef2f6 url('/superb-ai-webmotion.webp') center / contain no-repeat;
}

.card-product-motion .card-frame video[aria-label="Product motion preview"] {
  object-fit: contain !important;
}

.legacy-case iframe[title*="Lyna"][title$="prototype"] {
  display: block;
  width: 100%;
  height: 760px;
  max-height: 85svh;
  min-height: 480px;
  aspect-ratio: auto !important;
}

@media (max-width: 640px) {
  .legacy-case iframe[title*="Lyna"][title$="prototype"] {
    height: 680px;
    min-height: 540px;
    max-height: none;
  }

  .legacy-case div:has(> h4) > div[style*="display: flex"] {
    flex-direction: column;
    gap: 24px !important;
  }

  .legacy-case div:has(> h4) > div[style*="display: flex"] > div {
    border-left: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }

  .legacy-case div:has(> h4) > div[style*="display: flex"] > div > div:first-child {
    font-size: 14px !important;
    line-height: 1.5;
    color: #476360 !important;
  }

  .legacy-case div:has(> h4) div[style*="text-align: center"] {
    font-size: 16px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
  }
}

.lyna-scenes-section {
  margin-top: clamp(48px, 7vw, 88px);
}

.lyna-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.lyna-scenes figure {
  margin: 0;
}

.lyna-scenes-media {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line, #d9ddd8);
  border-radius: 14px;
  background: #f3f1ed;
}

.lyna-scenes img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.lyna-scenes figcaption {
  margin-top: 10px;
  color: var(--muted, #66736f);
  font-size: 14px;
}

@media (max-width: 640px) {
  .lyna-scenes {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .lyna-scenes figure {
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }
}
