/* Child Pages Slider. Change the two colors here. */
.cps{
  --cps-primary:#122a42;
  --cps-accent:#d3a957;
  position:relative;
  width:100%;
  margin:0 auto;
  outline:none;
}
.cps-viewport{
  position:relative;
  overflow:hidden;
  perspective:1400px;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
}
.cps-slide{
  position:absolute;
  top:0;
  left:50%;
  width:min(800px,72%);
  aspect-ratio:800/370;
  border-radius:20px;
  overflow:hidden;
  background:var(--cps-primary);
  box-shadow:0 12px 30px rgba(18,42,66,.18);
  transform:translateX(-50%);
  transition:transform .55s ease, opacity .55s ease;
  will-change:transform,opacity;
}
.cps .cps-img{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  max-width:none;
  object-fit:cover;
  display:block;
  -webkit-user-drag:none;
}
.cps-overlay{
  position:absolute;
  top:0;right:0;bottom:0;left:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  padding:28px 50px;
  background:linear-gradient(to top,rgba(0,0,0,.6) 0%,rgba(0,0,0,0) 55%);
}
.cps .cps-title{
  margin:0 0 6px;
  font-size:clamp(22px,3vw,34px);
  line-height:1.15;
  font-weight:700;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.cps .cps-title a,
.cps .cps-btn{
  color:#fff;
  text-decoration:none;
}
.cps .cps-btn{
  font-size:17px;
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:3px;
}
.cps .cps-btn:hover,
.cps .cps-title a:hover{color:var(--cps-accent)}

.cps-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:22px;
}
.cps-dots button{
  width:12px;height:12px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#e4e4e4;
  cursor:pointer;
  transition:background .2s, transform .2s;
}
.cps-dots button.is-active{background:var(--cps-accent);transform:scale(1.1)}

@media (max-width:600px){
  .cps-slide{width:84%}
  .cps-overlay{padding:18px 20px}
  .cps .cps-btn{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .cps-slide{transition:none}
}
