.cs-story { --cs-story-bg: #fff; --cs-story-heading: #080b10; --cs-story-text: #29364a; --cs-story-muted: #687588; --cs-story-border: #dbe1e9; padding: 80px 0; background: var(--cs-story-bg); color: var(--cs-story-text); overflow: hidden; }
.cs-story--dark { --cs-story-bg: #191b1d; --cs-story-heading: #fff; --cs-story-text: #eee; --cs-story-muted: #b5bac3; --cs-story-border: #ffffff40; }
.cs-story--gradient { --cs-story-heading: var(--cs-story-gradient-text, #fff); --cs-story-text: var(--cs-story-gradient-text, #fff); --cs-story-muted: var(--cs-story-gradient-text, #fff); --cs-story-border: currentColor; background: linear-gradient(180deg, var(--cs-story-gradient-start, #9a78f8), var(--cs-story-gradient-end, #7271ee)); }
.cs-story__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); max-width: 1232px; margin: 0 auto; padding: 0 32px; }
.cs-story__title { margin: 0; color: var(--cs-story-heading); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; white-space: pre-line; overflow-wrap: anywhere; }
.cs-story__description { font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; }
.cs-story__description p { margin: 0 0 30px; }
.cs-story__description > :last-child { margin-bottom: 0; }
.cs-story__description a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cs-story__description ul, .cs-story__description ol { margin: 0 0 24px; padding-left: 22px; }
.cs-story__description ul { list-style: disc; }
.cs-story__description ol { list-style: decimal; }
.cs-story__intro + .cs-gallery { margin-top: 72px; }
.cs-gallery__viewport { position: relative; }
.cs-gallery__ring { display: flex; gap: 28px; max-width: 1168px; margin: 0 auto; padding: 16px 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.cs-gallery__card { flex: 0 0 240px; height: 390px; margin: 0; scroll-snap-align: center; }
.cs-gallery__image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.cs-gallery--cover .cs-gallery__image { object-fit: cover; }
.cs-gallery--cover .cs-gallery__card { height: 320px; }
.cs-gallery__dragger { display: none; }
.cs-gallery.is-3d .cs-gallery__viewport { height: 490px; perspective: 1800px; overflow: hidden; }
.cs-gallery.is-3d .cs-gallery__ring { position: absolute; top: 50%; left: 50%; width: 270px; height: 390px; padding: 0; margin: -195px 0 0 -135px; overflow: visible; transform-style: preserve-3d; }
.cs-gallery.is-3d .cs-gallery__card { position: absolute; inset: 0; width: 100%; height: 100%; background-repeat: no-repeat; background-size: contain; backface-visibility: hidden; }
.cs-gallery--cover.is-3d .cs-gallery__ring { height: 320px; margin-top: -160px; }
.cs-gallery--cover.is-3d .cs-gallery__card { background-size: cover; }
.cs-gallery.is-3d .cs-gallery__image { opacity: 0; }
.cs-gallery.is-3d .cs-gallery__dragger { display: block; position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.cs-gallery.is-3d.is-dragging .cs-gallery__dragger { cursor: grabbing; }
.cs-gallery__controls { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 16px 24px 0; }
.cs-gallery__controls[hidden] { display: none; }
.cs-gallery__controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--cs-story-border); border-radius: 50%; background: transparent; color: var(--cs-story-heading); font-size: 22px; cursor: pointer; }
.cs-gallery__controls button:hover { border-color: currentColor; }
.cs-gallery__hint { color: var(--cs-story-muted); font-size: 13px; }
.cs-gallery__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cs-gallery__viewport:focus-visible, .cs-gallery__controls button:focus-visible { outline: 2px solid var(--cs-story-heading); outline-offset: -3px; }
@media (max-width: 900px) {
  .cs-story__intro { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
  .cs-story__intro + .cs-gallery { margin-top: 40px; }
}
@media (max-width: 600px) {
  .cs-story__intro { padding: 0 20px; }
  .cs-gallery.is-3d .cs-gallery__viewport { height: 390px; perspective: 1400px; }
  .cs-gallery.is-3d .cs-gallery__ring { width: 210px; height: 320px; margin: -160px 0 0 -105px; }
  .cs-gallery--cover.is-3d .cs-gallery__ring { height: 270px; margin-top: -135px; }
  .cs-gallery__card { flex-basis: 210px; height: 320px; }
}
