.permaslider {
  --ps-aspect-ratio: 16/9;
  --ps-mobile-aspect-ratio: 4/5;
  --ps-max-width: 100%;
  --ps-transition: 550ms;
  --ps-object-fit: cover;
  --ps-height: auto;
  position: relative;
  width: min(100%, var(--ps-max-width));
  max-width: 100%;
  margin-inline: auto;
  isolation: isolate;
  color: #fff;
}
.permaslider *, .permaslider *::before, .permaslider *::after { box-sizing: border-box; }
.ps-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--ps-height);
  aspect-ratio: var(--ps-aspect-ratio);
  background: #111;
}
.ps-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--ps-transition) ease;
  will-change: transform;
  touch-action: pan-y;
}
.ps-track.is-dragging { transition: none; cursor: grabbing; }
.ps-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.ps-media, .ps-media img, .ps-media video, .ps-embed, .ps-embed iframe {
  width: 100%;
  height: 100%;
}
.ps-media img, .ps-media video {
  display: block;
  object-fit: var(--ps-object-fit);
}
.ps-embed iframe {
  display: block;
  border: 0;
}
.ps-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12) 58%, rgba(0,0,0,.1));
  pointer-events: none;
}
.ps-layer {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 72px);
  bottom: clamp(24px, 8vw, 88px);
  max-width: min(620px, calc(100% - 40px));
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.ps-layer h2 {
  margin: 0 0 .45em;
  color: inherit;
  font-size: clamp(1.6rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.ps-layer p {
  margin: 0 0 1.2em;
  color: inherit;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.48;
}
.ps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75em 1.1em;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ps-button:hover, .ps-button:focus { color: #111; text-decoration: none; filter: brightness(.94); }
.ps-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.ps-arrow span {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 42px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  transform: translateY(-1px);
  pointer-events: none;
}
.ps-prev span { padding-right: 2px; }
.ps-next span { padding-left: 2px; }
.ps-arrow:hover, .ps-arrow:focus { background: #fff; }
.ps-prev { left: clamp(10px, 2.5vw, 28px); }
.ps-next { right: clamp(10px, 2.5vw, 28px); }
.ps-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}
.ps-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.ps-dot.is-active { width: 28px; background: #fff; }
.permaslider:focus-visible, .ps-arrow:focus-visible, .ps-dot:focus-visible, .ps-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ps-track { transition: none; }
}
@media (max-width: 768px) {
  .ps-viewport { aspect-ratio: var(--ps-mobile-aspect-ratio); }
  .ps-arrow { width: 42px; height: 42px; }
  .ps-arrow span { line-height: 39px; font-size: 30px; }
  .ps-layer { left: 18px; right: 18px; bottom: 50px; max-width: calc(100% - 36px); }
  .ps-hide-text-mobile .ps-layer { display: none; }
}
