:root {
  --cps-overlay: rgba(3, 8, 12, 0.82);
  --cps-shell: #050b10;
  --cps-gold: #d9a441;
  --cps-border: rgba(217, 164, 65, 0.42);
}
html.cps-modal-open,
body.cps-modal-open {
  overflow: hidden !important;
}
#consensio-picture-story-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  place-items: center;
}
#consensio-picture-story-modal.is-open {
  display: grid;
}
.cps-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--cps-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cps-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 560px);
  height: min(94dvh, 940px);
  background: var(--cps-shell);
  border: 1px solid var(--cps-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.72),
              0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}
.cps-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cps-shell);
}
.cps-modal-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  background: rgba(5, 11, 16, 0.88);
  color: #fff;
  font: 300 30px/38px Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.cps-modal-close:hover,
.cps-modal-close:focus-visible {
  outline: none;
  border-color: var(--cps-gold);
  background: rgba(17, 25, 31, 0.96);
}
.cps-modal-close:active {
  transform: scale(0.96);
}
@media (max-width: 640px) {
  .cps-modal-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .cps-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cps-modal-close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: no-preference) {
  #consensio-picture-story-modal.is-opening .cps-modal-dialog {
    animation: cps-dialog-in 220ms ease-out both;
  }
  #consensio-picture-story-modal.is-opening .cps-modal-overlay {
    animation: cps-overlay-in 180ms ease-out both;
  }
  @keyframes cps-dialog-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes cps-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
