/* Swift Invoice product page — compact gallery-sized screenshots */

.swift-page .nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.96);
  border-color: rgba(191, 219, 254, 0.75);
}

.swift-page .seo-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.swift-page .seo-visual {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 16px;
}

.swift-page .seo-visual > img,
.swift-page .seo-split > img {
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.swift-screen-card {
  flex: 0 0 clamp(132px, 14vw, 170px);
  align-self: flex-start;
  height: fit-content;
  width: clamp(132px, 14vw, 170px);
  min-width: clamp(132px, 14vw, 170px);
  max-width: 170px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.swift-screen-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.swift-screen-card figcaption {
  display: grid;
  gap: 3px;
  padding: 11px 10px 12px;
  border-top: 1px solid #e2e8f0;
}

.swift-screen-card figcaption strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
}

.swift-screen-card figcaption span {
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.swift-page .seo-proof-strip {
  width: 100%;
  max-width: 170px;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 12px;
}

.swift-page .seo-proof-strip span {
  padding: 8px 10px;
}

.swift-page .seo-split {
  grid-template-columns: minmax(0, 1fr) auto;
}

.swift-page #freelancer-workflow .seo-split {
  grid-template-columns: auto minmax(0, 1fr);
}

.swift-page .seo-split .swift-screen-card {
  justify-self: center;
}

.swift-preview-section {
  overflow: hidden;
}

.swift-screen-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 5px 5px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd #eff6ff;
}

.swift-screen-row .swift-screen-card {
  scroll-snap-align: start;
}

.swift-screen-row::-webkit-scrollbar {
  height: 9px;
}

.swift-screen-row::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eff6ff;
}

.swift-screen-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #93c5fd;
}

@media (max-width: 900px) {
  .swift-page .seo-hero,
  .swift-page .seo-split,
  .swift-page #freelancer-workflow .seo-split {
    grid-template-columns: 1fr;
  }

  .swift-page .seo-visual,
  .swift-page .seo-split .swift-screen-card {
    justify-self: start;
  }

  .swift-page #freelancer-workflow .swift-screen-card {
    order: 2;
  }
}

@media (max-width: 620px) {
  .swift-screen-card {
    flex-basis: clamp(96px, 31vw, 122px);
    width: clamp(96px, 31vw, 122px);
    min-width: clamp(96px, 31vw, 122px);
    max-width: 122px;
    border-radius: 18px;
  }

  .swift-screen-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .swift-screen-card figcaption {
    padding: 8px;
  }

  .swift-screen-card figcaption strong {
    font-size: 11px;
  }

  .swift-screen-card figcaption span {
    display: none;
  }

  .swift-page .seo-proof-strip {
    max-width: 122px;
  }

  .swift-screen-row {
    gap: 9px;
    padding: 4px 4px 10px;
  }
}

@media (max-width: 430px) {
  .swift-screen-card {
    flex-basis: 32vw;
    width: 32vw;
    min-width: 32vw;
  }

  .swift-screen-card img {
    height: auto;
    min-height: 0;
  }
}
