
/* Site OS app previews: full product images with readable, separate captions. */
.site-app-store .sas-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.site-app-store button.sas-visual.sas-screenshot {
  display: grid;
  grid-template-areas: "count" "image" "caption";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  aspect-ratio: auto;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  max-height: none;
  padding: 0;
  border-radius: 0;
  white-space: normal;
}
.site-app-store .sas-screenshot > .sas-preview-count {
  grid-area: count;
  position: static;
  inset: auto;
  justify-self: end;
  max-width: calc(100% - 24px);
  min-height: 32px;
  margin: 12px 12px 9px;
  padding: 6px 10px;
  border-color: var(--sas-line);
  border-radius: 999px;
  background: var(--sas-surface);
  color: var(--sas-ink);
  box-shadow: none;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.site-app-store .sas-screenshot > .sas-preview-count svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--sas-accent);
}
.site-app-store .sas-screenshot > .sas-screenshot-frame {
  grid-area: image;
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 36 / 25;
  padding: 0 12px 12px;
  overflow: visible;
}
.site-app-store .sas-screenshot > .sas-screenshot-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-color: color-mix(in srgb, var(--sas-ink) 18%, transparent);
  border-radius: 9px;
  box-shadow: 0 5px 16px rgb(10 31 49 / 12%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption {
  grid-area: caption;
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: auto;
  min-height: 82px;
  padding: 14px 16px;
  border-top: 1px solid var(--sas-line);
  background: var(--sas-surface);
  color: var(--sas-ink);
  opacity: 1;
  text-align: left;
}
.site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption > span {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}
.site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption small {
  display: block;
  color: var(--sas-muted);
  opacity: 1;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption strong {
  display: block;
  overflow: visible;
  color: var(--sas-ink);
  opacity: 1;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption > svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 7px;
  border: 1px solid var(--sas-line);
  border-radius: 50%;
  background: var(--sas-inset);
  color: var(--sas-accent);
  transition: transform .18s ease, border-color .18s ease;
}
.site-app-store button.sas-visual.sas-screenshot:focus-visible {
  outline: 3px solid var(--sas-accent);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px var(--sas-surface);
}
.site-app-store button.sas-visual.sas-screenshot:focus-visible .sas-screenshot-frame img {
  border-color: var(--sas-accent);
}
@media (hover: hover) and (pointer: fine) {
  .site-app-store button.sas-visual.sas-screenshot:hover .sas-screenshot-frame img {
    transform: translateY(-2px);
    border-color: var(--sas-accent);
    box-shadow: 0 8px 20px rgb(10 31 49 / 18%);
  }
  .site-app-store button.sas-visual.sas-screenshot:hover .sas-screenshot-caption > svg {
    transform: translateX(2px);
    border-color: var(--sas-accent);
  }
}
@container (max-width: 670px) {
  .site-app-store .sas-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .site-app-store .sas-screenshot > .sas-screenshot-frame {
    padding: 0 10px 10px;
  }
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption {
    gap: 12px;
    padding: 14px;
  }
}
@container (max-width: 330px) {
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption {
    gap: 10px;
    padding: 12px;
  }
}
@media (prefers-contrast: more) {
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption small {
    color: var(--sas-ink);
  }
  .site-app-store .sas-screenshot > .sas-screenshot-frame img,
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption {
    border-color: var(--sas-ink);
  }
}
@media (forced-colors: active) {
  .site-app-store button.sas-visual.sas-screenshot,
  .site-app-store .sas-screenshot > .sas-preview-count,
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption,
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption > svg {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
  .site-app-store .sas-screenshot > .sas-visual-caption.sas-screenshot-caption :is(small, strong),
  .site-app-store .sas-screenshot > .sas-preview-count svg {
    color: CanvasText;
  }
  .site-app-store button.sas-visual.sas-screenshot:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-app-store button.sas-visual.sas-screenshot:hover .sas-screenshot-frame img,
  .site-app-store button.sas-visual.sas-screenshot:hover .sas-screenshot-caption > svg {
    transform: none;
  }
}
