/* InShot watermark remover: editorial content layouts built around the existing AIAI visual system. */
.inshot-layout-page {
  --inshot-accent: #fd7c0f;
  --inshot-ink: #111827;
}

.inshot-layout-page
  main
  > section:nth-child(n + 2):nth-child(-n + 12)
  > div
  > div:first-child {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.inshot-layout-page
  main
  > section:nth-child(n + 2):nth-child(-n + 12)
  > div
  > div:first-child
  h2 {
  letter-spacing: -0.035em;
}

/* Hero media remains a compact, fully visible vertical reference. */
.inshot-layout-page main > section:first-child figure {
  overflow: hidden;
}
.inshot-layout-page main > section:first-child figure > video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 1.75rem;
  object-fit: contain;
}
.inshot-layout-page main > section:first-child figure > figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 5rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0.38) 56%,
    transparent
  );
}
.inshot-layout-page
  main
  > section:first-child
  figure
  > figcaption
  > p:first-child {
  color: var(--inshot-accent);
}
.inshot-layout-page main > section:first-child figure > figcaption > div {
  margin-bottom: 0.7rem;
}
.inshot-layout-page main > section:first-child figure > figcaption > div span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
}
.inshot-layout-page
  main
  > section:first-child
  figure
  > figcaption
  > p:last-child {
  color: #d1d5db;
}

.inshot-layout-page main > section:nth-child(n + 2):nth-child(-n + 12) article {
  position: relative;
  overflow: hidden;
  border-color: rgba(229, 231, 235, 0.92);
  border-radius: 1.4rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.045);
}

.inshot-layout-page
  main
  > section:nth-child(n + 2):nth-child(-n + 12)
  .section-content-grid
  > p {
  color: #4b5563;
}
.inshot-layout-page .inshot-layout-action {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}
.inshot-layout-page main > section:first-child #video-result-wrapper {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Give the lead cards a visual preview while keeping their supporting copy easy to scan. */
.inshot-layout-page
  main
  > section:nth-child(3)
  article:nth-of-type(-n + 2)::before,
.inshot-layout-page
  main
  > section:nth-child(4)
  article:nth-of-type(-n + 2)::before,
.inshot-layout-page
  main
  > section:nth-child(6)
  article:nth-of-type(-n + 2)::before {
  display: block;
  height: 10rem;
  margin: -0.2rem 0 1.25rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.04), rgba(253, 124, 15, 0.12)),
    url("../assets/inshot-full-frame-restoration.jpg") center / cover;
  content: "";
}

/* The two primary review moments need stronger, more legible symbols. */
.inshot-layout-page
  main
  > section:nth-child(7)
  article:nth-of-type(-n + 2)
  > div:first-child {
  width: 3.5rem;
  min-width: 3.5rem;
  height: 3.5rem;
  padding-inline: 0;
  font-size: 1.25rem;
}

/* Remove the redundant editorial image and let the section content use the full row. */
.inshot-layout-page main > section:nth-child(5) > div > .grid {
  display: block;
}
.inshot-layout-page
  main
  > section:nth-child(5)
  > div
  > .grid
  > div:first-child {
  display: none;
}

/* Match the photo section to the page width and give its visual lead more room. */
.inshot-layout-page main > section:nth-child(11) > div > div:nth-child(2) {
  max-width: none;
}

@media (min-width: 1024px) {
  /* Keep the vertical source complete while allowing results to span the full work area. */
  .inshot-layout-page main > section:first-child > div > .grid {
    grid-template-areas:
      "video workspace"
      "result result";
    grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }
  .inshot-layout-page main > section:first-child > div > .grid > figure {
    grid-area: video;
    width: min(100%, 23rem);
    justify-self: center;
  }
  .inshot-layout-page main > section:first-child #inshot-workspace-column {
    display: contents;
  }
  .inshot-layout-page main > section:first-child #right-column {
    grid-area: workspace;
    width: 100%;
  }
  .inshot-layout-page
    main
    > section:first-child
    #inshot-media-workspace
    > .order-3 {
    grid-area: result;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .inshot-layout-page main > section:first-child #video-upload-wrapper {
    width: 100%;
  }
  .inshot-layout-page main > section:first-child #vid-upload-card {
    height: 100%;
  }
  .inshot-layout-page main > section:first-child #vid-upload-drop-zone {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
  }
  .inshot-layout-page main > section:first-child #vid-upload-drop-zone.hidden {
    display: none;
  }
  .inshot-layout-page main > section:first-child #video-result-wrapper {
    grid-area: result;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-inline: 0;
  }

  /* The source uses a few utility grid variants; these page rules intentionally win. */
  .inshot-layout-page main > section:nth-child(2) .section-content-grid,
  .inshot-layout-page main > section:nth-child(8) .section-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .inshot-layout-page main > section:nth-child(2) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(8) .section-content-grid > p {
    grid-column: 1 / -1 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(2)
    .section-content-grid
    > article,
  .inshot-layout-page
    main
    > section:nth-child(8)
    .section-content-grid
    > article {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .inshot-layout-page main > section:nth-child(3) .section-content-grid,
  .inshot-layout-page main > section:nth-child(4) .section-content-grid,
  .inshot-layout-page main > section:nth-child(6) .section-content-grid,
  .inshot-layout-page main > section:nth-child(7) .section-content-grid,
  .inshot-layout-page main > section:nth-child(5) .section-content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  .inshot-layout-page main > section:nth-child(3) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(4) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(5) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(6) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(7) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(3) .inshot-layout-action,
  .inshot-layout-page main > section:nth-child(7) .inshot-layout-action {
    grid-column: 1 / -1 !important;
  }
  .inshot-layout-page main > section:nth-child(11) .section-content-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
  }
  .inshot-layout-page main > section:nth-child(11) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(11) .inshot-layout-action {
    grid-column: 1 / -1 !important;
  }
  .inshot-layout-page main > section:nth-child(12) .section-content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(12)
    .section-content-grid
    > article {
    grid-column: 1 / -1 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(1),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(2),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(2) {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(3),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(3) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(4),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(4) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(5),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(5) {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(1),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(2),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(2) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(3),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(4),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(4) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(5),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(5) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }

  /* Give the two left cards the same completed stack height as the three cards on the right. */
  .inshot-layout-page main > section:nth-child(3) .section-content-grid,
  .inshot-layout-page main > section:nth-child(7) .section-content-grid {
    grid-template-rows: auto auto repeat(6, minmax(5.25rem, 1fr));
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(1),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(1) {
    grid-row: 3 / span 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(2),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(2) {
    grid-row: 6 / span 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(3),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(3) {
    grid-row: 3 / span 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(4),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(4) {
    grid-row: 5 / span 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(3)
    .section-content-grid
    > article:nth-of-type(5),
  .inshot-layout-page
    main
    > section:nth-child(7)
    .section-content-grid
    > article:nth-of-type(5) {
    grid-row: 7 / span 2 !important;
  }
  .inshot-layout-page main > section:nth-child(4) .section-content-grid,
  .inshot-layout-page main > section:nth-child(6) .section-content-grid {
    grid-template-rows: auto repeat(6, minmax(5.25rem, 1fr));
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(1),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(1) {
    grid-row: 2 / span 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(2),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(2) {
    grid-row: 5 / span 3 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(3),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(3) {
    grid-row: 2 / span 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(4),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(4) {
    grid-row: 4 / span 2 !important;
  }
  .inshot-layout-page
    main
    > section:nth-child(4)
    .section-content-grid
    > article:nth-of-type(5),
  .inshot-layout-page
    main
    > section:nth-child(6)
    .section-content-grid
    > article:nth-of-type(5) {
    grid-row: 6 / span 2 !important;
  }

  /* 2. Draft availability becomes three equally weighted choices. */
  .inshot-layout-page
    main
    > section:nth-child(2)
    > div
    > .grid
    > div:first-child {
    display: none;
  }
  .inshot-layout-page main > section:nth-child(2) > div > .grid {
    display: block;
  }
  .inshot-layout-page main > section:nth-child(2) .section-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .inshot-layout-page main > section:nth-child(2) .section-content-grid > p {
    grid-column: 1 / -1;
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }
  .inshot-layout-page main > section:nth-child(2) article {
    display: flex;
    flex-direction: column;
  }
  .inshot-layout-page main > section:nth-child(2) article > div:first-child,
  .inshot-layout-page
    main
    > section:nth-child(5)
    article:nth-of-type(4)
    > div:first-child,
  .inshot-layout-page main > section:nth-child(8) article > div:first-child,
  .inshot-layout-page main > section:nth-child(12) article > div:first-child {
    display: none;
  }
  .inshot-layout-page main > section:nth-child(2) article::before,
  .inshot-layout-page
    main
    > section:nth-child(5)
    article:nth-of-type(4)::before,
  .inshot-layout-page main > section:nth-child(8) article::before {
    display: block;
    height: 11rem;
    margin: -0.2rem 0 1.35rem;
    border-radius: 1rem;
    background:
      linear-gradient(135deg, rgba(17, 24, 39, 0.05), rgba(253, 124, 15, 0.14)),
      url("../assets/inshot-full-frame-restoration.jpg") center / cover;
    content: "";
  }
  .inshot-layout-page main > section:nth-child(2) article > button,
  .inshot-layout-page main > section:nth-child(2) article > a {
    margin-top: auto;
  }

  /* Reusable two-left / three-right narrative stack. */
  .inshot-layout-page main > section:nth-child(3) .section-content-grid,
  .inshot-layout-page main > section:nth-child(4) .section-content-grid,
  .inshot-layout-page main > section:nth-child(6) .section-content-grid,
  .inshot-layout-page main > section:nth-child(7) .section-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
  }
  .inshot-layout-page main > section:nth-child(3) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(4) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(6) .section-content-grid > p,
  .inshot-layout-page main > section:nth-child(7) .section-content-grid > p {
    grid-column: 1 / -1;
    margin: 0 auto 0.25rem;
    max-width: 48rem;
    text-align: center;
  }
  .inshot-layout-page main > section:nth-child(3) .inshot-layout-action,
  .inshot-layout-page main > section:nth-child(7) .inshot-layout-action {
    grid-column: 1 / -1;
  }
  .inshot-layout-page main > section:nth-child(3) article:nth-of-type(1),
  .inshot-layout-page main > section:nth-child(7) article:nth-of-type(1) {
    grid-column: 1;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(3) article:nth-of-type(2),
  .inshot-layout-page main > section:nth-child(7) article:nth-of-type(2) {
    grid-column: 1;
    grid-row: 4;
  }
  .inshot-layout-page main > section:nth-child(3) article:nth-of-type(3),
  .inshot-layout-page main > section:nth-child(7) article:nth-of-type(3) {
    grid-column: 2;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(3) article:nth-of-type(4),
  .inshot-layout-page main > section:nth-child(7) article:nth-of-type(4) {
    grid-column: 2;
    grid-row: 4;
  }
  .inshot-layout-page main > section:nth-child(3) article:nth-of-type(5),
  .inshot-layout-page main > section:nth-child(7) article:nth-of-type(5) {
    grid-column: 2;
    grid-row: 5;
  }
  .inshot-layout-page main > section:nth-child(4) article:nth-of-type(1),
  .inshot-layout-page main > section:nth-child(6) article:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }
  .inshot-layout-page main > section:nth-child(4) article:nth-of-type(2),
  .inshot-layout-page main > section:nth-child(6) article:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(4) article:nth-of-type(3),
  .inshot-layout-page main > section:nth-child(6) article:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .inshot-layout-page main > section:nth-child(4) article:nth-of-type(4),
  .inshot-layout-page main > section:nth-child(6) article:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(4) article:nth-of-type(5),
  .inshot-layout-page main > section:nth-child(6) article:nth-of-type(5) {
    grid-column: 2;
    grid-row: 4;
  }

  /* 5. The ownership check is the visual lead, with contextual checks alongside. */
  .inshot-layout-page main > section:nth-child(5) .section-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
  }
  .inshot-layout-page main > section:nth-child(5) .section-content-grid > p {
    grid-column: 1 / -1;
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }
  .inshot-layout-page main > section:nth-child(5) article:nth-of-type(4) {
    grid-column: 1;
    grid-row: 2 / span 3;
  }
  .inshot-layout-page main > section:nth-child(5) article:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;
  }
  .inshot-layout-page main > section:nth-child(5) article:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(5) article:nth-of-type(3) {
    grid-column: 2;
    grid-row: 4;
  }
  .inshot-layout-page
    main
    > section:nth-child(5)
    article:nth-of-type(4)::before {
    display: none;
  }

  /* 8. Finished-video uses: a consistent three-by-two visual catalog. */
  .inshot-layout-page
    main
    > section:nth-child(8)
    > div
    > .grid
    > div:first-child {
    display: none;
  }
  .inshot-layout-page main > section:nth-child(8) > div > .grid {
    display: block;
  }
  .inshot-layout-page main > section:nth-child(8) .section-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .inshot-layout-page main > section:nth-child(8) .section-content-grid > p {
    grid-column: 1 / -1;
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }
  .inshot-layout-page main > section:nth-child(8) article {
    display: flex;
    min-height: 100%;
    flex-direction: column;
  }
  .inshot-layout-page main > section:nth-child(8) article::before {
    height: 11rem;
  }

  /* 9. The workflow has one deliberate action immediately under its heading. */
  .inshot-layout-page
    main
    > section:nth-child(9)
    > div
    > div:first-child
    .inshot-layout-action {
    margin-top: 1rem;
  }
  .inshot-layout-page main > section:nth-child(10) .section-content-grid > p {
    grid-column: 1 / -1;
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }

  /* 11. Image cleanup uses a visual lead-in and two compact review cards. */
  .inshot-layout-page main > section:nth-child(11) .section-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr) !important;
    gap: 1rem;
  }
  .inshot-layout-page main > section:nth-child(11) .section-content-grid > p {
    grid-column: 1 / -1;
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }
  .inshot-layout-page
    main
    > section:nth-child(11)
    .section-content-grid::before {
    grid-column: 1;
    grid-row: 3 / span 2;
    min-height: 27rem;
    border-radius: 1.5rem;
    background:
      linear-gradient(135deg, rgba(17, 24, 39, 0.06), rgba(253, 124, 15, 0.14)),
      url("../assets/inshot-full-frame-restoration.jpg") center / cover;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.1);
    content: "";
  }
  .inshot-layout-page main > section:nth-child(11) .inshot-layout-action {
    grid-column: 1 / -1;
  }
  .inshot-layout-page main > section:nth-child(11) article:nth-of-type(1) {
    grid-column: 2;
    grid-row: 3;
  }
  .inshot-layout-page main > section:nth-child(11) article:nth-of-type(2) {
    grid-column: 2;
    grid-row: 4;
  }

  /* 12. Internal tools follow the current Picsart route-list pattern. */
  .inshot-layout-page main > section:nth-child(12) .section-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .inshot-layout-page main > section:nth-child(12) .section-content-grid > p {
    max-width: 48rem;
    margin: 0 auto 0.25rem;
    text-align: center;
  }
  .inshot-layout-page main > section:nth-child(12) article {
    display: grid;
    grid-template-columns: minmax(11rem, 0.32fr) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.5rem;
  }
  .inshot-layout-page main > section:nth-child(12) article h3,
  .inshot-layout-page main > section:nth-child(12) article p {
    margin: 0;
  }
  .inshot-layout-page main > section:nth-child(12) article a {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* CTA mirrors the approved Picsart visual treatment while preserving the InShot content. */
.inshot-layout-page main > section:nth-child(14) .visual-story {
  min-height: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.06), rgba(253, 124, 15, 0.18)),
    url("../assets/inshot-full-frame-restoration.jpg") center / cover;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}
.inshot-layout-page
  main
  > section:nth-child(14)
  .visual-story
  > :not(.sr-only) {
  display: none;
}

/* Keep each FAQ question and its answer in one easy-to-scan vertical stream. */
.inshot-layout-page main > section:nth-child(13) .grid.items-start {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .inshot-layout-page main > section:nth-child(14) .visual-story {
    min-height: 24rem;
  }
}
@media (max-width: 1023px) {
  .inshot-layout-page
    main
    > section:nth-child(n + 2):nth-child(-n + 12)
    > div
    > div:first-child,
  .inshot-layout-page
    main
    > section:nth-child(n + 2):nth-child(-n + 12)
    .section-content-grid
    > p {
    text-align: center;
  }
  .inshot-layout-page
    main
    > section:nth-child(2)
    > div
    > .grid
    > div:first-child,
  .inshot-layout-page
    main
    > section:nth-child(8)
    > div
    > .grid
    > div:first-child {
    display: none;
  }
}

/* Page-specific editorial imagery, ordered from top to bottom. */
@media (min-width: 1024px) {
  .inshot-layout-page main > section:nth-child(2) article::before,
  .inshot-layout-page main > section:nth-child(8) article::before {
    height: 240px;
    flex: 0 0 240px;
    background-position: center;
    background-size: cover;
  }

  .inshot-layout-page
    main
    > section:nth-child(2)
    article:nth-of-type(1)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/aee03cd99fc3b47205794b849d540a0e.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(2)
    article:nth-of-type(2)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/b752241cc575f9925fae82cfa488a7bb.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(2)
    article:nth-of-type(3)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/ea029649d22b735bb8e68538f70f6803.webp");
  }

  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(1)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/b9b418ddaa96c39c99ce3e7424eff64e.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(2)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/6a1c5ecf8e6aae8ad5d500f39aa557c8.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(3)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/4a4befb9951942f84310309dc2c2863e.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(4)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/54fe5c765cd9032c14c9238e33c51a28.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(5)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/ebab4047fee5399daa4cebb7b2479c13.webp");
  }
  .inshot-layout-page
    main
    > section:nth-child(8)
    article:nth-of-type(6)::before {
    background-image: url("https://image.aiai.com/newtabrewards/20260805/ba6d3315ea49f2a8fc312e0bd5219f26.webp");
  }
}

.inshot-layout-page main > section:nth-child(3) article:nth-of-type(1)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/08a13d71389b03a230f41f21294d78b6.webp");
}
.inshot-layout-page main > section:nth-child(3) article:nth-of-type(2)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/ebf81d0864eb08932715ac3f44bcffd6.webp");
}
.inshot-layout-page main > section:nth-child(4) article:nth-of-type(1)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/2018df5cff865995d3369ab9423f3e3e.webp");
}
.inshot-layout-page main > section:nth-child(4) article:nth-of-type(2)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/40c2ff3732ceab86f27c5e2de2e41857.webp");
}
.inshot-layout-page main > section:nth-child(6) article:nth-of-type(1)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/67c58a4cdeaacf3499c9aa58b823b5ea.webp");
}
.inshot-layout-page main > section:nth-child(6) article:nth-of-type(2)::before {
  background-image: url("https://image.aiai.com/newtabrewards/20260805/2e00278f9ea135c2c4633a9a221addf2.webp");
}

.inshot-layout-page
  main
  > section:nth-child(3)
  article:nth-of-type(-n + 2)::before,
.inshot-layout-page
  main
  > section:nth-child(4)
  article:nth-of-type(-n + 2)::before,
.inshot-layout-page
  main
  > section:nth-child(6)
  article:nth-of-type(-n + 2)::before {
  height: 240px;
  flex-basis: 240px;
  background-position: center;
  background-size: cover;
}

.inshot-layout-page main > section:nth-child(11) .section-content-grid::before {
  height: 240px;
  min-height: 240px;
  background: url("https://image.aiai.com/newtabrewards/20260805/d824b5df2ad930ba40376298bad5c77d.webp")
    center / cover no-repeat;
}

/* Photo-support visual keeps its intrinsic ratio while stretching the lead card to the review stack. */
@media (min-width: 1024px) {
  .inshot-layout-page
    main
    > section:nth-child(11)
    .section-content-grid::before {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch;
    justify-self: center;
    border-radius: 1.5rem;
    background: none !important;
    content: url("https://image.aiai.com/newtabrewards/20260805/d824b5df2ad930ba40376298bad5c77d.webp");
    object-fit: contain;
    object-position: center;
  }
}

.inshot-layout-page main > section:nth-child(14) .visual-story {
  height: 240px;
  min-height: 240px;
  background: url("https://image.aiai.com/newtabrewards/20260805/33ac577e5157fbcdd68297f8b25c2080.webp")
    center / cover no-repeat;
}

@media (min-width: 768px) {
  .inshot-layout-page main > section:nth-child(14) .visual-story {
    min-height: 240px;
  }
}
