.share-section {
  background: #fff;
  color: var(--ink);
  padding-block: 90px 56px;
  overflow-x: clip;
  overflow-y: visible;
}
.stories-layout.wrap {
  --stories-gutter: clamp(24px, 3.34vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  width: calc(100% - var(--stories-gutter) * 2);
  max-width: 1440px;
  margin-inline: auto;
}
.stories-intro {
  --share-ball-size: 360px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
.stories-intro h2 {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1 / 2 / 2;
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 500;
  letter-spacing: -2.8px;
  line-height: 1.1;
  margin: 0;
  max-width: none;
  text-shadow:
    0 0 10px #fff,
    0 0 4px #fff;
}
.stories-intro > p {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1 / 3 / 2;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0 0;
  white-space: nowrap;
  text-shadow:
    0 0 8px #fff,
    0 0 3px #fff;
}
.share-inline-wordmark {
  display: inline-block;
  width: auto;
  height: 1em;
  max-width: none;
  max-height: 1em;
  vertical-align: -0.13em;
}
.stories-strip {
  --share-ball-size: clamp(360px, 33vw, 480px);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin-inline: auto;
  padding-block: 92px;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.stories-strip img {
  -webkit-user-drag: none;
}
.share-balls {
  position: absolute;
  z-index: 0;
  grid-area: 1 / 1 / 2 / 2;
  inset: 0;
  pointer-events: none;
}
.share-balls-mobile {
  display: none;
}
.share-balls-desktop {
  grid-area: auto;
}
.share-balls-desktop .share-ball {
  top: auto;
  transform: none;
}
.share-balls-desktop .share-ball-pickleball {
  top: 0;
}
.share-balls-desktop .share-ball-tennis {
  bottom: 0;
}
.share-ball {
  position: absolute;
  top: 50%;
  width: var(--share-ball-size);
  height: var(--share-ball-size);
  max-width: none;
  object-fit: contain;
  transform: translateY(-50%);
}
.share-ball-pickleball {
  right: calc((100% - 100vw) / 2 - var(--share-ball-size) * 0.5);
}
.share-ball-tennis {
  left: calc((100% - 100vw) / 2 - var(--share-ball-size) * 0.5);
}
.stories-viewport {
  /* Fade the whole story group, including positioned avatars and controls. */
  --stories-fade: 160px;
  --stories-mask: linear-gradient(
    to right,
    transparent 0,
    #0000000f calc(var(--stories-fade) * 0.14),
    #00000038 calc(var(--stories-fade) * 0.3),
    #00000080 calc(var(--stories-fade) * 0.5),
    #000000c7 calc(var(--stories-fade) * 0.7),
    #000000f0 calc(var(--stories-fade) * 0.86),
    #000 var(--stories-fade),
    #000 calc(100% - var(--stories-fade)),
    #000000f0 calc(100% - var(--stories-fade) * 0.86),
    #000000c7 calc(100% - var(--stories-fade) * 0.7),
    #00000080 calc(100% - var(--stories-fade) * 0.5),
    #00000038 calc(100% - var(--stories-fade) * 0.3),
    #0000000f calc(100% - var(--stories-fade) * 0.14),
    transparent 100%
  );
  position: relative;
  z-index: 1;
  isolation: isolate;
  -webkit-mask-image: var(--stories-mask);
  mask-image: var(--stories-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  overflow: clip;
}
.stories-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.stories-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}
.story-card {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0;
  background: #e8e7e9;
}
.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2;
  border-radius: 18px;
  overflow: hidden;
  background: #e8e7e9;
}
.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    #07080b70 0%,
    #100a2600 25%,
    #100a2600 60%,
    #100a2640 100%
  );
  pointer-events: none;
}
.story-card .story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--photo-x, 50%) center;
}
.story-chrome {
  position: absolute;
  z-index: 2;
  inset: 9px 10px auto;
  color: #fff;
  pointer-events: none;
}
.story-progress {
  display: flex;
  gap: 3px;
  height: 2px;
}
.story-progress > span {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #ffffff60;
}
.story-progress .is-complete,
.story-progress .is-current i {
  background: #fff;
}
.story-progress .is-current i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.story-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0 0;
  font-size: 11.5px;
  line-height: 1;
  text-shadow: 0 1px 6px #00000030;
}
.story-avatar {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ffffffb3;
  object-fit: cover;
}
.story-account {
  min-width: 0;
  flex: 1;
}
.story-account-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}
.story-profile {
  font-weight: 600;
}
.story-age {
  color: #ffffffc4;
  font-weight: 400;
}
.story-source {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}
.story-source svg {
  width: 10px;
  height: 10px;
}
.story-source-chevron {
  font-size: 13px;
  line-height: 8px;
}
.story-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.story-actions svg {
  width: 13px;
  height: 13px;
}
.story-actions svg:last-child {
  width: 16px;
  height: 16px;
}
.story-card .story-sticker {
  position: absolute;
  z-index: 1;
  width: var(--sticker-width, 75%);
  height: auto;
  max-height: 48%;
  object-fit: contain;
  left: var(--sticker-left, 12%);
  top: var(--sticker-top, auto);
  bottom: var(--sticker-bottom, 8%);
  filter: drop-shadow(0 2px 7px #00000065);
}
.stories-reduced .stories-group[aria-hidden="true"] {
  display: none;
}
@media (min-width: 1900px) {
  .story-card {
    width: 260px;
    flex-basis: 260px;
  }
}
@media (max-width: 900px) {
  .stories-layout.wrap {
    gap: 34px;
  }
  .stories-viewport {
    --stories-fade: 72px;
  }
  .stories-strip {
    padding-block: 80px;
  }
}
@media (max-width: 600px) {
  .share-section {
    padding-block: 64px 24px;
  }
  .stories-intro {
    margin-bottom: 0;
  }
  .stories-layout.wrap {
    gap: 26px;
  }
  .stories-intro h2 {
    letter-spacing: -1.8px;
  }
  .stories-intro > p {
    font-size: 14px;
    margin-top: 16px;
    white-space: normal;
  }
  .stories-viewport {
    --stories-fade: 52px;
  }
  .stories-strip {
    padding-block: 76px;
  }
  .stories-group {
    gap: 16px;
    padding-right: 16px;
  }
  .story-card {
    width: 210px;
    flex-basis: 210px;
    border-radius: 15px;
  }
  .story-media {
    border-radius: 15px;
  }
  .story-chrome {
    inset: 8px 8px auto;
  }
  .story-header {
    gap: 5px;
    padding-top: 8px;
    font-size: 10px;
  }
  .story-avatar {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  .story-account-line {
    gap: 4px;
  }
  .story-source {
    font-size: 7px;
    gap: 2px;
    margin-top: 2px;
  }
  .story-source svg {
    width: 8px;
    height: 8px;
  }
  .story-actions {
    gap: 4px;
  }
  .story-actions svg {
    width: 11px;
    height: 11px;
  }
  .story-actions svg:last-child {
    width: 14px;
    height: 14px;
  }
}

/* Compact landing-page stories keep the editor's larger working preview intact. */
@media (max-width: 759px) {
  .share-section .share-balls-mobile {
    display: block;
  }
  .share-section .share-balls-desktop {
    display: none;
  }
  .share-section .stories-intro {
    --share-ball-size: clamp(150px, 44vw, 190px);
  }
  .share-section .stories-strip {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
  }
  .share-section .stories-viewport {
    --stories-fade: clamp(24px, 7.5vw, 36px);
  }
  .share-section .stories-group {
    gap: 14px;
    padding-right: 14px;
  }
  .share-section .story-card {
    width: clamp(128px, 36vw, 160px);
    flex-basis: clamp(128px, 36vw, 160px);
    border-radius: 11px;
  }
  .share-section .story-media {
    border-radius: 11px;
  }
  .share-section .story-chrome {
    inset: 6px 6px auto;
  }
  .share-section .story-progress {
    gap: 2px;
    height: 1.5px;
  }
  .share-section .story-header {
    gap: 4px;
    padding-top: 6px;
    font-size: 7.5px;
  }
  .share-section .story-avatar {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
  .share-section .story-account-line {
    gap: 3px;
  }
  .share-section .story-source {
    gap: 2px;
    margin-top: 2px;
    font-size: 5.5px;
  }
  .share-section .story-source svg {
    width: 6px;
    height: 6px;
  }
  .share-section .story-source-chevron {
    font-size: 9px;
    line-height: 6px;
  }
  .share-section .story-actions {
    gap: 3px;
  }
  .share-section .story-actions svg {
    width: 8px;
    height: 8px;
  }
  .share-section .story-actions svg:last-child {
    width: 10px;
    height: 10px;
  }
  .share-section .story-sticker {
    filter: drop-shadow(0 1px 4px #00000065);
  }
}
