.rk-story-showcase {
  --rk-story-bg: #ffffff;
  --rk-story-text: #222222;
  --rk-story-muted: #2d2d2d;
  --rk-story-card-text: #ffffff;
  --rk-story-overlay: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.62) 100%);
  --rk-story-progress: #242424;
  --rk-story-progress-bg: rgba(36,36,36,0.14);
  --rk-story-max-width: 1180px;
  --rk-story-padding-top: 88px;
  --rk-story-padding-bottom: 88px;
  --rk-story-card-ratio: 9 / 16;
  --rk-story-card-radius: 8px;
  --rk-story-title-size: 36px;
  --rk-story-intro-size: 16px;
  --rk-story-card-title-size: 18px;
  --rk-story-font-family: Inter, Arial, sans-serif;

  background: var(--rk-story-bg);
  color: var(--rk-story-text);
  font-family: var(--rk-story-font-family);
  overflow: hidden;
  padding-block: var(--rk-story-padding-top) var(--rk-story-padding-bottom);
}

.rk-story-showcase__inner {
  margin-inline: auto;
  width: min(var(--rk-theme-container-width, 1180px), calc(100% - var(--rk-theme-container-gutter, 40px)));
}

.rk-story-showcase__layout {
  align-items: start;
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  min-width: 0;
}

.rk-story-showcase__header {
  max-width: 100%;
  min-width: 0;
  padding-top: 4px;
}

.rk-story-showcase__eyebrow {
  color: var(--rk-story-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.rk-story-showcase__title {
  color: var(--rk-story-text);
  font-size: var(--rk-story-title-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0;
}

.rk-story-showcase__intro {
  color: var(--rk-story-muted);
  font-size: var(--rk-story-intro-size);
  line-height: 1.55;
  margin-top: 22px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.rk-story-showcase__intro p,
.rk-story-showcase__intro > * {
  margin: 0 0 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.rk-story-showcase__intro * {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.rk-story-showcase__intro p:last-child {
  margin-bottom: 0;
}

.rk-story-showcase__stage {
  min-width: 0;
}

.rk-story-showcase__track {
  display: flex;
  gap: 18px;
  min-width: 0;
  overflow: visible;
}

.rk-story-card {
  aspect-ratio: var(--rk-story-card-ratio);
  background: #111111;
  border-radius: var(--rk-story-card-radius);
  box-shadow: 0 24px 54px rgba(0,0,0,0.12);
  color: var(--rk-story-card-text);
  display: block;
  flex: 1 1 0;
  min-width: 120px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.rk-story-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 360ms ease;
  width: 100%;
}

.rk-story-card:hover img {
  transform: scale(1);
}

.rk-story-card__shade {
  background: var(--rk-story-overlay);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.rk-story-card strong {
  bottom: clamp(22px, 6%, 34px);
  color: var(--rk-story-card-text);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--rk-story-card-title-size);
  font-weight: 700;
  left: 12px;
  letter-spacing: 0.08em;
  line-height: 1.05;
  position: absolute;
  right: 12px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,0.34);
  z-index: 2;
}

.rk-story-card__placeholder {
  align-items: center;
  color: rgba(255,255,255,0.8);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.rk-story-showcase__mobile-controls {
  display: none;
}

.rk-story-showcase--empty {
  align-items: center;
  background: #fbf8f3;
  color: #1f1a17;
  display: flex;
  justify-content: center;
  min-height: 220px;
  padding: 40px 20px;
}

.rk-story-showcase__empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.rk-story-showcase__empty strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.rk-story-showcase__empty span {
  color: #6f625a;
  font-size: 13px;
}

@media (max-width: 920px) {
  .rk-story-showcase {
    padding-block: 36px 34px;
  }

  .rk-story-showcase__inner {
    width: 100%;
  }

  .rk-story-showcase__layout {
    display: block;
  }

  .rk-story-showcase__header {
    margin: 0 auto 60px;
    max-width: 350px;
    padding-inline: 22px;
    text-align: center;
  }

  .rk-story-showcase__eyebrow {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .rk-story-showcase__title {
    font-size: min(var(--rk-story-title-size), 28px);
  }

  .rk-story-showcase__intro {
    font-size: min(var(--rk-story-intro-size), 16px);
    margin-top: 28px;
  }

  .rk-story-showcase__stage {
    overflow: hidden;
  }

  .rk-story-showcase__track {
    gap: 13px;
    overflow-x: auto;
    padding-inline: 13px;
    scroll-behavior: smooth;
    scroll-padding-inline: 13px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .rk-story-showcase__track::-webkit-scrollbar {
    display: none;
  }

  .rk-story-card {
    box-shadow: none;
    flex: 0 0 clamp(112px, 29vw, 136px);
    min-width: 0;
    scroll-snap-align: start;
  }

  .rk-story-card strong {
    bottom: 26px;
    font-size: min(var(--rk-story-card-title-size), 15px);
    left: 8px;
    letter-spacing: 0.04em;
    right: 8px;
  }

  .rk-story-showcase__mobile-controls {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    margin: 26px 18px 0;
  }

  .rk-story-showcase__mobile-controls button {
    align-items: center;
    background: transparent;
    border: 0;
    color: rgba(36,36,36,0.55);
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: color 160ms ease, opacity 160ms ease;
    width: 26px;
  }

  .rk-story-showcase__mobile-controls button:not(:disabled) {
    color: var(--rk-story-progress);
  }

  .rk-story-showcase__mobile-controls button:disabled {
    cursor: default;
    opacity: 0.35;
  }

  .rk-story-showcase__progress {
    background: var(--rk-story-progress-bg);
    border-radius: 999px;
    display: block;
    height: 4px;
    overflow: hidden;
    position: relative;
  }

  .rk-story-showcase__progress span {
    background: var(--rk-story-progress);
    border-radius: inherit;
    display: block;
    height: 100%;
    transform: translateX(0);
    width: 34%;
  }
}
