/*! Prism Slats (prism-slats 1.0.0) by Frontier Templates. Styles for the vanilla build.
Free gem: Free for personal and commercial sites; do not resell the gem itself. https://frontiertemplates.com/gems/prism-slats */
/* Prism Slats. Every rule is scoped to .psh so the gem drops into any page. Size the element; the gem fills it. */
.psh {
  --psh-ink: #fff;
  --psh-scrim: rgba(8, 10, 14, 0.55);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  background: #0d0f12;
  color: var(--psh-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* the root sizes itself the same whatever the host page's reset says */
.psh, .psh *, .psh *::before, .psh *::after { box-sizing: border-box; }
.psh-stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 0;
}
.psh-slat {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.psh-face {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #15181d;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.psh-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.75));
  opacity: var(--sh, 0);
  pointer-events: none;
}
/* a soft scrim keeps overlaid copy and the controls readable on any image */
.psh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 45%, var(--psh-scrim) 100%);
}
.psh-content {
  position: relative;
  z-index: 2;
  height: 100%;
}
.psh-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.psh-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0.92;
  max-width: 46ch;
}
.psh-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  flex: none;
}
.psh-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.psh-progress {
  position: relative;
  width: 56px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  border-radius: 2px;
}
.psh-progress i {
  position: absolute;
  inset: 0;
  background: var(--psh-ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.psh-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.28);
  color: var(--psh-ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s, border-color 0.2s;
}
.psh-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }
.psh-btn:focus-visible { outline: 2px solid var(--psh-ink); outline-offset: 3px; }
.psh-btn svg { width: 18px; height: 18px; }
.psh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 639px) {
  .psh-caption { font-size: 13px; }
  .psh-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .psh-btn { transition: none; }
}
