.ds-stories {
  --ds-cream-e51d8392: #f4f1ec;
  --ds-sage-e51d8392: #a6b7ae;
  --ds-ink-e51d8392: #000000;
  --ds-ink-soft-e51d8392: rgba(0, 0, 0, 0.68);
  --ds-border-e51d8392: rgba(0, 0, 0, 0.16);
  --ds-ease-e51d8392: cubic-bezier(0.22, 1, 0.36, 1);
  --ds-serif-e51d8392: "Playfair Display", Georgia, serif;
  --ds-display-e51d8392: "Montserrat", Arial, sans-serif;

  padding-block: clamp(4rem, 8vw, 8rem);
  font-family: var(--ds-display-e51d8392);
  color: var(--ds-ink-e51d8392);
}

.ds-stories__shell-e51d8392 {
  width: min(100% - 3rem, 1380px);
  margin-inline: auto;
}

.ds-stories__header-e51d8392 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.ds-stories__controls-e51d8392 {
  display: flex;
  gap: 0.5rem;
}

.ds-stories__controls-e51d8392 button {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--ds-border-e51d8392);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.ds-stories__controls-e51d8392 button:hover:not(:disabled) {
  color: var(--ds-cream-e51d8392);
  background: var(--ds-ink-e51d8392);
}

.ds-stories__controls-e51d8392 button:disabled {
  cursor: default;
  opacity: 0.35;
}

.ds-stories__controls-e51d8392 svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ds-stories__viewport-e51d8392 {
  overflow: hidden;
}

.ds-stories__track-e51d8392 {
  display: flex;
  gap: 1rem;
  transition: transform 0.75s var(--ds-ease-e51d8392);
}

.ds-stories__card-e51d8392 {
  position: relative;
  min-width: min(33vw, 420px);
  height: 610px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ds-sage-e51d8392);
  border: 0;
  padding: 0;
  text-align: left;
}

.ds-stories__card--wide-e51d8392 {
  min-width: min(45vw, 610px);
}

.ds-stories__card-e51d8392 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) sepia(0.05);
  transition: filter 0.8s var(--ds-ease-e51d8392), transform 0.8s var(--ds-ease-e51d8392);
}

.ds-stories__card-e51d8392:hover img {
  filter: saturate(0.7);
  transform: scale(1.045);
}

.ds-stories__shade-e51d8392 {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.ds-stories__play-e51d8392 {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: 50%;
  color: var(--ds-ink-e51d8392);
  background: rgba(244, 241, 236, 0.88);
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ds-ease-e51d8392), background 0.35s ease;
  backdrop-filter: blur(10px);
}

.ds-stories__card-e51d8392:hover .ds-stories__play-e51d8392 {
  background: #d9ccbe;
  transform: translate(-50%, -50%) scale(1.08);
}

.ds-stories__play-e51d8392 svg {
  width: 1.9rem;
  fill: currentColor;
}

.ds-stories__content-e51d8392 {
  position: absolute;
  right: 1.75rem;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 2;
  color: var(--ds-cream-e51d8392);
  pointer-events: none;
}

.ds-stories__content-e51d8392 p {
  max-width: 390px;
  margin: 0 0 0.75rem;
  font-family: var(--ds-serif-e51d8392);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-style: italic;
  line-height: 1.05;
}

.ds-stories__content-e51d8392 span {
  color: rgba(244, 241, 236, 0.68);
  font-size: 0.75rem;
}

.ds-stories__modal-e51d8392 {
  width: min(92vw, 1080px);
  padding: 0;
  border: 0;
  overflow: visible;
  background: var(--ds-ink-e51d8392);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.ds-stories__modal-e51d8392::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(8px);
}

.ds-stories__modal-content-e51d8392 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ds-ink-e51d8392);
}

.ds-stories__modal-content-e51d8392 video,
.ds-stories__modal-content-e51d8392 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.ds-stories__modal-content-e51d8392 video.active,
.ds-stories__modal-content-e51d8392 iframe.active {
  display: block;
}

.ds-stories__modal-close-e51d8392 {
  position: absolute;
  top: -3.4rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(244, 241, 236, 0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ds-stories__modal-close-e51d8392 span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ds-stories__modal-close-e51d8392 span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 820px) {
  .ds-stories__shell-e51d8392 {
    width: min(100% - 2rem, 1380px);
  }

  .ds-stories__header-e51d8392 {
    align-items: flex-end;
    flex-direction: row;
    margin-bottom: 2rem;
  }

  .ds-stories__card-e51d8392,
  .ds-stories__card--wide-e51d8392 {
    min-width: calc(100vw - 3rem);
    height: 520px;
  }
}
