.simplified-expanding-hero {
  position: relative;
}

.simplified-expanding-hero__desktop {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  opacity: 1;
  filter: blur(0);
  transition: height 500ms cubic-bezier(.22, 1, .36, 1), opacity 300ms ease, filter 400ms ease;
}

@supports (justify-content: safe center) {
  .simplified-expanding-hero__desktop {
    justify-content: safe center;
  }
}

@media (min-width: 768px) {
  .simplified-expanding-hero {
    box-sizing: border-box;
    width: 100%;
  }

  .simplified-expanding-hero__desktop {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .simplified-expanding-hero.is-initializing .simplified-expanding-hero__desktop {
    height: 80vh;
    opacity: 0;
    filter: blur(12px);
  }

  .simplified-expanding-hero.is-initializing::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -18px 0 0 -18px;
    border: 4px solid rgba(18, 12, 12, .2);
    border-top-color: #120c0c;
    border-radius: 50%;
    pointer-events: none;
    animation: simplified-expanding-hero-spin 700ms linear infinite;
  }
}

.simplified-expanding-hero__desktop::-webkit-scrollbar,
.simplified-expanding-hero__mobile::-webkit-scrollbar {
  display: none;
}

.simplified-expanding-hero__slide {
  position: relative;
  flex: 0 0 40px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #120c0c;
  cursor: pointer;
  isolation: isolate;
  will-change: flex-basis;
  transition: flex-basis 700ms cubic-bezier(.22, 1, .36, 1);
}

.simplified-expanding-hero__slide::after {
  content: none;
}

.simplified-expanding-hero__slide.is-active {
  flex-basis: var(--active-width, 75%);
  cursor: default;
}

.simplified-expanding-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: blur(10px) brightness(.7);
  will-change: filter;
  transition: filter 500ms ease;
}

.simplified-expanding-hero__slide.is-active .simplified-expanding-hero__image {
  filter: none;
}

.simplified-expanding-hero__title,
.simplified-expanding-hero__mobile-title {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: Outfit, "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
  transition:
    left 550ms cubic-bezier(.22, 1, .36, 1),
    bottom 550ms cubic-bezier(.22, 1, .36, 1),
    transform 550ms cubic-bezier(.22, 1, .36, 1),
    opacity 300ms ease;
}

.simplified-expanding-hero__title {
  left: 50%;
  bottom: 20px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
}

.simplified-expanding-hero__slide.is-active .simplified-expanding-hero__title {
  display: none;
}

.simplified-expanding-hero__link {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.simplified-expanding-hero__activator {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.simplified-expanding-hero__slide.is-active .simplified-expanding-hero__activator,
.simplified-expanding-hero__slide:not(.is-active) .simplified-expanding-hero__link {
  display: none;
}

.simplified-expanding-hero__slide:not(.is-active):hover .simplified-expanding-hero__image,
.simplified-expanding-hero__slide:not(.is-active):focus-within .simplified-expanding-hero__image {
  filter: blur(5px) brightness(.9);
}

.simplified-expanding-hero__slide:focus-within {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.simplified-expanding-hero__mobile {
  display: none;
}

.simplified-expanding-hero__pagination {
  display: none;
}

@media (max-width: 767px) {
  .simplified-expanding-hero {
    box-sizing: border-box;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .simplified-expanding-hero__desktop {
    display: none;
  }

  .simplified-expanding-hero__mobile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    height: 75vh;
    height: min(var(--mobile-slides-height), 75vh);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    will-change: height, box-shadow;
    transition: height 650ms cubic-bezier(.22, 1, .36, 1);
  }

  .simplified-expanding-hero__mobile.is-adjusting-size {
    animation: simplified-expanding-hero-glow 650ms ease-out;
  }

  .simplified-expanding-hero__mobile-slide {
    position: relative;
    flex: 0 0 100%;
    height: auto;
    aspect-ratio: var(--mobile-image-ratio, 16 / 9);
    overflow: hidden;
    border-radius: 16px;
    scroll-snap-align: start;
    background: #120c0c;
  }

  .simplified-expanding-hero__mobile-slide.is-loading::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -18px 0 0 -18px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    animation: simplified-expanding-hero-spin 700ms linear infinite;
  }

  .simplified-expanding-hero__mobile-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(0);
    transform: scale(1);
    transition: filter 350ms ease, transform 350ms ease;
  }

  .simplified-expanding-hero__mobile-slide.is-loading img {
    filter: blur(12px);
    transform: scale(1.03);
  }

  .simplified-expanding-hero__mobile-title {
    left: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
  }

  .simplified-expanding-hero__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
  }

  .simplified-expanding-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 12, 12, .3);
    cursor: pointer;
    transition: width 200ms ease, background-color 200ms ease;
  }

  .simplified-expanding-hero__dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #120c0c;
  }

  .simplified-expanding-hero__dot:focus-visible {
    outline: 2px solid #120c0c;
    outline-offset: 3px;
  }

  .simplified-expanding-hero__dot:focus {
    outline: 2px solid #120c0c;
    outline-offset: 3px;
  }
}

@keyframes simplified-expanding-hero-glow {
  0%, 100% {
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
  }

  40% {
    box-shadow:
      inset 0 0 36px rgba(255, 255, 255, .9),
      inset 0 0 0 2px rgba(255, 255, 255, .7);
  }
}

@keyframes simplified-expanding-hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .simplified-expanding-hero__slide,
  .simplified-expanding-hero__slide::after,
  .simplified-expanding-hero__image,
  .simplified-expanding-hero__title,
  .simplified-expanding-hero__mobile,
  .simplified-expanding-hero__dot,
  .simplified-expanding-hero__mobile-slide::before,
  .simplified-expanding-hero__mobile-slide img,
  .simplified-expanding-hero.is-initializing::after {
    transition: none;
    animation: none;
  }
}
