.template-preview {
  container-type: size;
  overflow: auto;
  overscroll-behavior: contain;
  background: #111113;
}
.template-preview-first {
  height: 100%;
  overflow: hidden;
}
.template-preview-first img {
  display: block;
  width: 100%;
  height: auto;
}
.template-preview-more {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100cqh;
  overflow: clip;
  isolation: isolate;
}
.template-preview-more img {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 200cqh;
  margin-top: -100cqh;
  object-fit: cover;
  object-position: center top;
  filter: blur(clamp(3px, .45vw, 6px)) brightness(.64);
  z-index: -1;
}
.template-preview .template-preview-cta {
  grid-area: 1 / 1;
  place-self: start center;
  position: sticky;
  top: calc(50cqh - 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  color: #0a0a0b;
  background: #fafafa;
  font: 600 clamp(16px, 2vw, 19px)/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
}
.template-preview-cta:focus-visible {
  outline: 3px solid #8fbaff;
  outline-offset: 5px;
}
@media (prefers-reduced-motion: no-preference) {
  .template-preview-cta { animation: template-cta-pulse 2.4s ease-in-out infinite; }
  .template-preview-cta:is(:hover, :focus-visible) { animation-play-state: paused; }
  @keyframes template-cta-pulse {
    50% { transform: scale(1.06); box-shadow: 0 0 0 9px #ffffff15; }
  }
}
