/* Soul Spark Horizon Rail — Elementor widget styles.
   Visual statics are CSS variables so Elementor controls (and the studio)
   can retune the frame without rewriting rules. */

.sshr {
  --sshr-ink: #1c1915;
  --sshr-cream: #f3eee6;
  --sshr-accent: #c4623a;
  --sshr-frame: #f3eee6;
  --sshr-h: 78vh;
  --sshr-h-m: 70vh;
  --sshr-fit: cover;
  --sshr-thumb-fit: cover;
  --sshr-scrim: 0.92;
  --sshr-interval: 5600ms;
  --sshr-dur: 760ms;
  --sshr-kb: 1.07;
  --sshr-tw: 118px;
  --sshr-th: 84px;
  --sshr-tw-m: 76px;
  --sshr-th-m: 56px;
  --sshr-gap: 10px;
  --sshr-tr: 12px;
  --sshr-tbw: 2px;
  --sshr-rail-r: 28px;
  --sshr-rail-b: 26px;
  --sshr-rail-r-m: 12px;
  --sshr-rail-b-m: 12px;
  --sshr-title: 3.25rem;
  --sshr-title-m: 2rem;
  --sshr-caption: 1.02rem;
  --sshr-text-bg: #1c1915;
  --sshr-text-a: 72%;
  --sshr-text-r: 22px;
  --sshr-count: 7;
  --sshr-border: #f3eee6;
  --sshr-bw: 2px;
  --sshr-br: 18px;
  --sshr-dim: 0.86;
  --tw: var(--sshr-tw);
  --th: var(--sshr-th);
  --gap: var(--sshr-gap);
  --rr: var(--sshr-rail-r);
  --rb: var(--sshr-rail-b);
  --pad: 2.25rem;
  position: relative;
  container-type: inline-size;
  color: var(--sshr-cream);
  background: var(--sshr-ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
  isolation: isolate;
}

.sshr *,
.sshr *::before,
.sshr *::after {
  box-sizing: border-box;
}

.sshr button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.sshr button:focus-visible,
.sshr-stage:focus-visible {
  outline: 2px solid var(--sshr-accent);
  outline-offset: 2px;
}

.sshr img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

@container (max-width: 700px) {
  .sshr {
    --tw: var(--sshr-tw-m);
    --th: var(--sshr-th-m);
    --rr: var(--sshr-rail-r-m);
    --rb: var(--sshr-rail-b-m);
    --pad: 1rem;
  }
}

.sshr-stage {
  --tw-fit: min(
    var(--tw),
    calc((100cqi - var(--rr) - var(--pad) - (var(--sshr-count) - 1) * var(--gap)) / var(--sshr-count))
  );
  --th-fit: calc(var(--th) * var(--tw-fit) / var(--tw));
  --step: calc(var(--tw-fit) + var(--gap));
  position: relative;
  height: var(--sshr-h);
  min-height: 22rem;
  overflow: hidden;
  background: var(--sshr-ink);
}

.sshr.is-stage-zoom .sshr-stage {
  cursor: zoom-in;
}

.sshr.is-bordered .sshr-stage::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 10px;
  border: var(--sshr-bw) solid var(--sshr-border);
  border-radius: var(--sshr-br);
  pointer-events: none;
}

.sshr.is-no-thumbs .sshr-rail-wrap {
  display: none;
}

@container (max-width: 700px) {
  .sshr-stage {
    height: var(--sshr-h-m);
  }
}

.sshr-frames {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #141210;
}

.sshr-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--sshr-fit);
  opacity: 0;
  transition: opacity var(--sshr-dur) ease;
  transform: scale(1);
}

.sshr-frame.is-on {
  opacity: 1;
  z-index: 1;
}

.sshr.is-ken .sshr-frame.is-on {
  animation: sshr-drift var(--sshr-interval) linear forwards;
}

.sshr.is-held .sshr-frame.is-on {
  animation-play-state: paused;
}

@keyframes sshr-drift {
  from { transform: scale(1); }
  to { transform: scale(var(--sshr-kb)); }
}

.sshr-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(20, 18, 16, 0.78) 0%, rgba(20, 18, 16, 0.22) 38%, rgba(20, 18, 16, 0.02) 58%, rgba(20, 18, 16, 0.28) 100%);
  opacity: var(--sshr-scrim);
}

.sshr-copy {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: calc(var(--rb) + var(--th-fit) + 0.9rem);
  max-width: min(34rem, calc(100cqi - (2 * var(--pad))));
  pointer-events: none;
}

@container (min-width: 701px) {
  .sshr-copy {
    bottom: var(--pad);
    max-width: min(34rem, calc(100cqi - var(--sshr-count) * var(--tw-fit) - (var(--sshr-count) - 1) * var(--gap) - var(--rr) - var(--pad) - 2rem));
  }
}

.sshr-copy-in {
  position: relative;
  animation: sshr-rise var(--sshr-dur) ease;
}

.sshr.is-text-frame .sshr-copy-in {
  padding: 1.45rem 1.25rem 1.15rem 1.4rem;
  border-radius: var(--sshr-text-r);
  background: color-mix(in srgb, var(--sshr-text-bg) var(--sshr-text-a), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sshr-cream) 36%, transparent);
  backdrop-filter: blur(12px);
}

.sshr.is-text-frame .sshr-copy-in::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: max(0px, calc(var(--sshr-text-r) - 10px));
  border: 1px solid color-mix(in srgb, var(--sshr-accent) 58%, var(--sshr-cream));
  pointer-events: none;
}

.sshr-orn {
  display: none;
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 1;
  color: var(--sshr-accent);
  pointer-events: none;
}

.sshr.is-text-frame .sshr-orn {
  display: block;
}

.sshr-orn::before,
.sshr-orn::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.sshr-orn::before {
  width: 11px;
  height: 1.5px;
}

.sshr-orn::after {
  width: 1.5px;
  height: 11px;
}

.sshr-orn-tl { top: 6px; left: 6px; }
.sshr-orn-tl::before { top: 0; left: 0; }
.sshr-orn-tl::after { top: 0; left: 0; }

.sshr-orn-tr { top: 6px; right: 6px; }
.sshr-orn-tr::before { top: 0; right: 0; }
.sshr-orn-tr::after { top: 0; right: 0; }

.sshr-orn-bl { bottom: 6px; left: 6px; }
.sshr-orn-bl::before { bottom: 0; left: 0; }
.sshr-orn-bl::after { bottom: 0; left: 0; }

.sshr-orn-br { bottom: 6px; right: 6px; }
.sshr-orn-br::before { bottom: 0; right: 0; }
.sshr-orn-br::after { bottom: 0; right: 0; }

.sshr.is-text-on-light .sshr-copy {
  color: var(--sshr-ink);
}

.sshr.is-text-on-light .sshr-caption {
  color: color-mix(in srgb, var(--sshr-ink) 78%, transparent);
}

@keyframes sshr-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.sshr-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sshr-title {
  margin: 0;
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: var(--sshr-title-m);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@container (min-width: 701px) {
  .sshr-title { font-size: var(--sshr-title); }
}

.sshr-caption {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: var(--sshr-caption);
  line-height: 1.45;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--sshr-cream) 88%, transparent);
}

.sshr.is-theme-font,
.sshr.is-theme-font .sshr-title,
.sshr.is-theme-font .sshr-caption {
  font-family: inherit;
}

.sshr.is-theme-font .sshr-title {
  font-style: inherit;
}

.sshr-tools {
  position: absolute;
  z-index: 5;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sshr-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  padding-right: 0.35rem;
}

.sshr button.sshr-icon,
.sshr button.sshr-nav,
.sshr button.sshr-lb-btn,
.sshr-lb .sshr-lb-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--sshr-cream);
  background: rgba(28, 25, 21, 0.34);
  border: 1px solid rgba(243, 238, 230, 0.42);
  backdrop-filter: blur(10px);
  padding: 0;
  cursor: pointer;
}

.sshr-icon svg,
.sshr-nav svg,
.sshr-lb-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sshr-nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  transform: translateY(-50%);
}

.sshr-prev { left: 0.8rem; }
.sshr-next { right: 0.8rem; }

.sshr button.sshr-icon:hover,
.sshr button.sshr-nav:hover,
.sshr button.sshr-lb-btn:hover,
.sshr-lb .sshr-lb-btn:hover,
.sshr button.sshr-thumb:hover {
  border-color: var(--sshr-cream);
}

.sshr-rail-wrap {
  position: absolute;
  z-index: 4;
  right: var(--rr);
  bottom: var(--rb);
  max-width: calc(100cqi - var(--rr) - 0.75rem);
}

.sshr-rail-window {
  width: calc(var(--sshr-count) * var(--tw-fit) + (var(--sshr-count) - 1) * var(--gap));
  max-width: 100%;
  overflow: hidden;
}

.sshr-rail-track {
  display: flex;
  gap: var(--gap);
  transform: translateX(0);
  transition: transform var(--sshr-dur) cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.sshr-rail-track.is-leaving {
  transform: translateX(calc(-1 * var(--step)));
}

.sshr-rail-track.is-snap {
  transition: none;
}

.sshr button.sshr-thumb {
  position: relative;
  flex: 0 0 auto;
  width: var(--tw-fit);
  height: var(--th-fit);
  border-radius: var(--sshr-tr);
  border: var(--sshr-tbw) solid color-mix(in srgb, var(--sshr-frame) 78%, transparent);
  overflow: hidden;
  background: #141210;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  padding: 0;
}

.sshr button.sshr-thumb.is-current {
  border-color: var(--sshr-accent);
}

.sshr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: var(--sshr-thumb-fit);
}

.sshr-now {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: var(--sshr-accent);
  color: var(--sshr-ink);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sshr-thumb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sshr-accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.sshr-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--sshr-cream);
}

.sshr-lb {
  --sshr-ink: #1c1915;
  --sshr-cream: #f3eee6;
  --sshr-accent: #c4623a;
  --sshr-dim: 0.86;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 4.25rem 1rem 1.25rem;
  background: rgba(20, 18, 16, var(--sshr-dim));
  color: var(--sshr-cream);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

.sshr-lb-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.sshr-lb-photo {
  max-width: min(92vw, 1100px);
  max-height: min(68vh, 780px);
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #141210;
}

.sshr-lb-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  width: min(92vw, 1100px);
}

.sshr-lb-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sshr-lb-caption {
  margin: 0.25rem 0 0;
  color: color-mix(in srgb, var(--sshr-cream) 82%, transparent);
  font-size: 0.95rem;
}

.sshr-lb-dims {
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  align-self: flex-end;
  color: color-mix(in srgb, var(--sshr-cream) 74%, transparent);
}

.sshr-lb-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.sshr-lb-prev { position: absolute; left: 0.8rem; top: 46%; }
.sshr-lb-next { position: absolute; right: 0.8rem; top: 46%; }

.sshr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sshr-frame,
  .sshr-rail-track,
  .sshr-copy-in {
    transition: none !important;
    animation: none !important;
  }
}
