.mcla-storytelling {
  background-color: var(--preset-color-brand-dark-blue);
  position: relative;
}

.mcla-storytelling::-moz-selection { /* Code for Firefox */
  color: var(--preset-color-brand-dark-blue);
  background: var(--preset-color-brand-electric-yellow);
}
.mcla-storytelling::selection {
  color: var(--preset-color-brand-dark-blue);
  background: var(--preset-color-brand-electric-yellow);
}

.mcla-storytelling__carousel {
  position: relative;
}
.mcla-storytelling__carousel::after {
  content: "";
  background-color: rgba(0,0,0,0.15);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.mcla-storytelling__carousel-container {
  z-index: 2;
  position: relative;
  padding-left: 65px;
  padding-bottom: 30px;
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.6s;
}
.mcla-storytelling__carousel-container-slides {
  display: flex;
  gap: 9px;
  cursor: grab;
}
.mcla-storytelling__carousel-container-slides-item {
  width: 150px;
  height: 210px;
  flex-shrink: 0;
  opacity: 0.6;
  transform-origin: 0% 0%;
  padding-bottom: 0;
}
.mcla-storytelling__carousel-container-slides-item.active {
  padding-bottom: 0px;
  opacity: 1;
}
.mcla-storytelling__carousel-container-slides-item-media {
  width: 100%;
  height: 100%;
  position: relative;
}
.mcla-storytelling__carousel-container-slides-item-media img,
.mcla-storytelling__carousel-container-slides-item-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  pointer-events: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.mcla-storytelling__carousel-container-slides-item-media-controls {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 0;
  background-color: var(--preset-color-brand-electric-yellow);
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.6s;
}
.mcla-storytelling__carousel-container-slides-item-media-controls:hover {
  background-color: var(--preset-color-brand-light-blue);
  transform: translate(-50%, -50%) scale(1.125);
}

.mcla-storytelling__content {
  margin-top: -12px;
}
.mcla-storytelling__content-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  display: none;
}
.mcla-storytelling__content-section-title.mcla-type__section-title {
  color: var(--preset-color-standard-white);
  text-align: left;
  transform: translateY(45px);
  opacity: 0;
  transition: all 0.6s;
}
.mcla-storytelling__content-section-sub.mcla-type__section-sub {
  color: var(--preset-color-brand-electric-yellow);
  text-align: left;
  transform: translateY(45px);
  opacity: 0;
  transition: all 0.6s;
}

.mcla-storytelling__carousel-section {
  position: relative;
  z-index: 2;
  padding: 42px 18px 21px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}
.mcla-storytelling__carousel-section-title.mcla-type__section-title {
  color: var(--preset-color-standard-white);
  text-align: center;
  transform: translateY(45px);
  opacity: 0;
  transition: all 0.6s;
}
.mcla-storytelling__carousel-section-sub.mcla-type__section-sub {
  color: var(--preset-color-brand-electric-yellow);
  text-align: center;
  transform: translateY(45px);
  opacity: 0;
  transition: all 0.6s 0.15s;
}

.mcla-storytelling__content-quotes {
  position: relative;
  padding: 30px 0 42px 0;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s 0.15s;
}

.mcla-storytelling__content-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 0 18px;
  height: 0;
  overflow: hidden;
  transition: height 0.3s;
}
.mcla-storytelling__content-quote.active {
  height: auto;
}
.mcla-storytelling__content-quotes::before {
  content: "";
  background-image: url(../assets/quote.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 1;
  opacity: 0.15;
  top: 0;
  left: 0;
  width: 60px;
  height: 61px;
}
.mcla-storytelling__content-quote-author {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mcla-storytelling__content-quote-author-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Knockout52Cruiserweight, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-weight: 375;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--preset-color-standard-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.6s 0.15s;
}
.mcla-storytelling__content-quote.active .mcla-storytelling__content-quote-author-link {
  transform: translateY(0);
  opacity: 1;
}
.mcla-storytelling__content-quote-author-link:hover .mcla-storytelling__content-quote-author-link-arrow {
  animation: link-arrow-bounce 1s linear infinite;
}
@keyframes link-arrow-bounce {
  0% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0px);
  }
}
.mcla-storytelling__content-quote-author-link-arrow {
  width: 24px;
  height: 24px;
  border-top-right-radius: 9px;
  border-bottom-left-radius: 9px;
  background-color: var(--preset-color-brand-electric-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mcla-storytelling__content-quote-author-link-arrow svg {
  fill: var(--preset-color-brand-dark-blue);
}

.mcla-storytelling__content-quote-testimonial {
  font-family: "superclarendon", serif;
  -webkit-font-smoothing: antialiased;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: var(--preset-color-standard-white);
  padding: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.6s;
}
.mcla-storytelling__content-quote.active .mcla-storytelling__content-quote-testimonial {
  transform: translateY(0);
  opacity: 1;
}

.mcla-storytelling__content-quote-author-sub {
  font-family: Knockout32JuniorCruiserweight, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-weight: 330;
  font-size: 14px;
  line-height: 21px;
  color: var(--preset-color-standard-white);
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.6s 0.15s;
}
.mcla-storytelling__content-quote.active .mcla-storytelling__content-quote-author-sub {
  transform: translateY(0);
  opacity: 1;
}

.mcla-storytelling__carousel-controls {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 450px;
  flex-direction: column;
  display: none;
  opacity: 0;
  transition: all 0.6s;
}
.mcla-storytelling__carousel-controls-next {
  border-bottom-left-radius: 9px;
}
.mcla-storytelling__carousel-controls-next svg {
  transform: rotate(180deg);
}
.mcla-storytelling__carousel-controls-prev {
  border-top-right-radius: 9px;
}
.mcla-storytelling__carousel-controls-prev svg {
  transform: rotate(0deg);
}
.mcla-storytelling__carousel-controls .disabled {
  opacity: 0.6;
  pointer-events: none;
}

.mcla-storytelling__carousel-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  position: absolute;
  top: auto;
  bottom: 12px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  transition: all 0.6s;
}
.mcla-storytelling__carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 30px;
  border: 0;
  padding: 0;
  background-color: rgba(255,255,255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}
.mcla-storytelling__carousel-dot:hover {
  transform: scale(1.2);
}
.mcla-storytelling__carousel-dot.active {
  background-color: var(--preset-color-brand-electric-yellow);
}
.mcla-storytelling__carousel-dot.active:hover {
  transform: scale(1);
}

/* Animation Styles */
.mcla-storytelling.in-view .mcla-storytelling__carousel-section-title.mcla-type__section-title,
.mcla-storytelling.in-view .mcla-storytelling__content-section-title.mcla-type__section-title {
  opacity: 1;
  transform: translateY(0);
}
.mcla-storytelling.in-view .mcla-storytelling__carousel-section-sub.mcla-type__section-sub,
.mcla-storytelling.in-view .mcla-storytelling__content-section-sub.mcla-type__section-sub {
  opacity: 1;
  transform: translateY(0);
}

.mcla-storytelling.in-view .mcla-storytelling__carousel-container,
.mcla-storytelling.in-view .mcla-storytelling__content-quotes {
  opacity: 1;
  transform: translateY(0);
}
.mcla-storytelling.in-view .mcla-storytelling__carousel-controls,
.mcla-storytelling.in-view .mcla-storytelling__carousel-dots {
  opacity: 1;
}


.mcla-storytelling__carousel-line {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 18px;
  width: 21px;
  height: 190px;
  border-top-left-radius: 60px;
  border: 4px dotted var(--preset-color-standard-white);
  border-right: 0;
  border-bottom: 0;
}
.mcla-storytelling__carousel-line::before {
  content: "";
  position: absolute;
  border: 2px solid var(--preset-color-standard-white);
  width: 8px;
  height: 8px;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  bottom: -7px;
  left: -7px;
}
.mcla-storytelling__carousel-line::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -16px;
  border: 2px solid var(--preset-color-standard-white);
  width: 8px;
  height: 8px;
  border-radius: 100%;
}

@media (min-width: 750px) {
  .mcla-storytelling {
    display: flex;
    min-height: 600px;
  }
  
  .mcla-storytelling__content-section {
    display: flex;
    padding-left: 60px;
  }
  .mcla-storytelling__carousel-dots {
    flex-direction: column;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 235px;
    gap: 6px;
    left: auto;
    bottom: auto;
  }
  .mcla-storytelling__carousel-dot {
    width: 9px;
    height: 9px;
  }

  .mcla-storytelling__carousel {
    position: absolute;
    width: auto;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
  }
  .mcla-storytelling__carousel::after {
    bottom: 0;
    right: 15px;
  }
  .mcla-storytelling__carousel-section {
    display: none;
  }
  .mcla-storytelling__carousel-container {
    padding: 90px 60px;
    display: flex;
    justify-content: flex-end;
  }
  .mcla-storytelling__carousel-container-slides {
    flex-direction: column;
    gap: 21px;
  }
  .mcla-storytelling__carousel-container-slides-item,
  .mcla-storytelling__carousel-container-slides-item.active {
    width: 150px;
    height: 210px;
    padding-bottom: 0;
  }

  .mcla-storytelling__carousel-container-slides-item-media-controls {
    width: 48px;
    height: 48px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .mcla-storytelling__content {
    margin-left: calc(100% - 700px);
    width: 100%;
    max-width: 840px;
    padding: 90px 30px 90px 105px;
    margin-top: 0;
  }
  .mcla-storytelling__content-quotes {
    padding: 42px 0 0 0;

  }
  .mcla-storytelling__content-quote {
    padding: 0 0 0 60px;
    gap: 30px;
  }
  .mcla-storytelling__content-quotes::before {
    width: 123px;
    height: 125px;
  }
  .mcla-storytelling__content-quote-testimonial {
    font-size: 30px;
    line-height: 42px; 
  }
  .mcla-storytelling__content-quote-author {
    max-width: 420px;
  }
  .mcla-storytelling__content-quote-author-link {
    font-size: 16px;
    line-height: 24px;
  }
  .mcla-storytelling__content-quote-author-sub {
    font-size: 16px;
    line-height: 24px;
  }

  .mcla-storytelling__carousel-line {
    display: none;
  }

  .mcla-storytelling__carousel-section-title.mcla-type__section-title,
  .mcla-storytelling__carousel-section-sub.mcla-type__section-sub {
    text-align: left;
  }

  .mcla-storytelling__carousel-controls {
    display: flex;
  }
}
@media (min-width: 900px) {
  .mcla-storytelling__carousel-container-slides-item,
  .mcla-storytelling__carousel-container-slides-item.active  {
    width: 300px;
    height: 420px;
  }
  .mcla-storytelling__carousel-dots {
    right: 320px;
  }
}
@media (min-width: 1025px) {
  .mcla-storytelling__content-section {
    padding: 0;
  }
  .mcla-storytelling__carousel-container {
    padding: 90px 75px;
  }
  .mcla-storytelling__carousel-container-slides-item,
  .mcla-storytelling__carousel-container-slides-item.active  {
    width: 300px;
    height: 420px;
  }
  .mcla-storytelling__carousel-dots {
    right: 412px;
  }
}
@media (min-width: 1200px) {
  .mcla-storytelling__content {
    margin-left: calc(100% - 870px);
  }
}
@media (min-width: 1320px) {
  .mcla-storytelling__carousel {
    width: calc(100% - 870px);
  }
  .mcla-storytelling__content {
    margin-left: calc(100% - 870px);
  }
}
@media (min-width: 1440px) {
  .mcla-storytelling__carousel {
    width: calc(100% - 990px);
  }
  .mcla-storytelling__content {
    margin-left: calc(100% - 990px);
    width: 100%;
    max-width: 840px;
    padding: 90px 30px 90px 105px;
  }
}