.sobae-hero {
  --sobae-hero-height: 720px;
  --sobae-hero-serif: var(--sobae-font-display);
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding-bottom: 48px;
  background: #f5f5f3;
}

.home .hero-section,
.home .blocksy-woo-messages-default:empty {
  display: none;
}

.home .ct-container-full[data-vertical-spacing] {
  --theme-content-vertical-spacing: 0;
}

.home .entry-content {
  margin: 0;
}

.home .entry-content > .sobae-hero {
  margin-bottom: 0;
}

.sobae-hero__slides {
  align-items: stretch;
}

.sobae-hero__slide {
  position: relative;
  width: 100%;
  min-height: var(--sobae-hero-height);
  overflow: hidden;
  background: #f1f2f0;
}

.sobae-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.sobae-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sobae-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sobae-hero__video video {
  /* Keep outdated package-size lines outside the visible hero frame. */
  transform: scale(1.3);
  transform-origin: center top;
}

.sobae-hero__slide--video::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 247, 244, 0.96) 0%, rgba(247, 247, 244, 0.72) 32%, rgba(247, 247, 244, 0) 58%);
  pointer-events: none;
}

.sobae-hero__slide--video .sobae-hero__content {
  justify-content: flex-start;
  width: 52%;
  padding-top: 108px;
}

.sobae-hero__media--mobile {
  display: none;
}

.sobae-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 68%;
  min-height: var(--sobae-hero-height);
  margin: 0;
  padding: 42px 42px 42px 17vw;
  color: #111;
}

.sobae-hero__kicker {
  max-width: 520px;
  margin: 0 0 14px;
  font-family: var(--sobae-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sobae-hero__title {
  max-width: 540px;
  margin: 0;
  font-family: var(--sobae-hero-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.sobae-hero__buttons {
  margin-top: 26px;
}

.sobae-hero .sobae-hero__button .wp-block-button__link {
  min-width: 252px;
  min-height: 44px;
  padding: 13px 24px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-family: var(--sobae-font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
}

.sobae-hero .sobae-hero__button .wp-block-button__link:hover,
.sobae-hero .sobae-hero__button .wp-block-button__link:focus-visible {
  background: #fff;
  color: #111;
}

.sobae-hero__controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 28px;
}

.sobae-hero .swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  transform: none;
}

.sobae-hero .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 5px;
  background: #111;
  opacity: 0.28;
}

.sobae-hero .swiper-pagination-bullet-active {
  opacity: 1;
}

.sobae-hero__toggle {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.sobae-hero__toggle::before,
.sobae-hero__toggle::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.sobae-hero__toggle::before {
  left: 10px;
}

.sobae-hero__toggle::after {
  right: 10px;
}

.sobae-hero__toggle[aria-pressed="true"]::before {
  top: 8px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  background: transparent;
}

.sobae-hero__toggle[aria-pressed="true"]::after {
  display: none;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .sobae-hero {
    --sobae-hero-height: 620px;
  }

  .sobae-hero__content {
    width: 68%;
    padding: 36px 36px 36px 12vw;
  }

  .sobae-hero__slide--video .sobae-hero__content {
    width: 58%;
    padding-top: 80px;
  }

  .sobae-hero__title {
    font-size: 36px;
  }

}

@media (max-width: 767px) {
  .sobae-hero {
    height: clamp(560px, calc(100svh - 91px), 760px);
    overflow: hidden;
    padding-bottom: 0;
    background: #fff;
  }

  .sobae-hero__slides {
    align-items: stretch;
    height: 100%;
  }

  .sobae-hero__slide {
    display: block;
    height: 100%;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  .sobae-hero__slide::after,
  .sobae-hero__slide--video::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 43%,
      rgba(255, 255, 255, 0.18) 52%,
      rgba(255, 255, 255, 0.86) 72%,
      rgba(255, 255, 255, 0.98) 100%
    );
    pointer-events: none;
  }

  .sobae-hero__media--desktop,
  .sobae-hero__media--mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .sobae-hero__media--mobile {
    display: none;
  }

  .sobae-hero__slide--foaming .sobae-hero__media--desktop {
    display: none;
  }

  .sobae-hero__slide--foaming .sobae-hero__media--mobile {
    display: block;
  }

  .sobae-hero__media--mobile img {
    object-position: 50% 30%;
  }

  .sobae-hero__video video {
    transform: scale(1.08);
    transform-origin: center top;
  }

  .sobae-hero__slide--balm .sobae-hero__media img {
    object-position: 67% center;
  }

  .sobae-hero__slide--moisturizer .sobae-hero__media img {
    object-position: 66% center;
  }

  .sobae-hero__slide--retinol .sobae-hero__media img {
    object-position: 64% center;
  }

  .sobae-hero__content {
    position: absolute;
    right: 0;
    bottom: 86px;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 0 22px;
    text-align: center;
  }

  .sobae-hero__slide--video .sobae-hero__content {
    position: absolute;
    bottom: 86px;
    justify-content: center;
    width: 100%;
    padding: 0 22px;
  }

  .sobae-hero__kicker {
    max-width: 36ch;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-wrap: balance;
  }

  .sobae-hero__title {
    width: 100%;
    max-width: 16ch;
    font-size: 36px;
    line-height: 1.06;
    text-wrap: balance;
  }

  .sobae-hero__buttons {
    justify-content: center !important;
    width: min(100%, 300px);
    margin-top: 18px;
    margin-right: auto;
    margin-left: auto;
  }

  .sobae-hero .sobae-hero__buttons .sobae-hero__button {
    margin-right: auto;
    margin-left: auto;
  }

  .sobae-hero .sobae-hero__button .wp-block-button__link {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 15px 20px;
  }

  .sobae-hero__controls {
    display: flex;
    bottom: 18px;
  }
}

@media (max-width: 359px) {
  .sobae-hero__content,
  .sobae-hero__slide--video .sobae-hero__content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sobae-hero__title {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobae-hero *,
  .sobae-hero *::before,
  .sobae-hero *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.editor-styles-wrapper .sobae-hero {
  overflow: visible;
  padding: 16px;
}

.editor-styles-wrapper .sobae-hero__slides {
  display: block !important;
  transform: none !important;
}

.editor-styles-wrapper .sobae-hero__slide {
  position: relative;
  display: block !important;
  width: 100% !important;
  min-height: 480px;
  margin-bottom: 20px;
  padding-top: 38px;
  outline: 1px solid #d7d9dc;
}

.editor-styles-wrapper .sobae-hero__slide::before {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: 38px;
  padding: 10px 14px;
  background: #f0f1f2;
  color: #1e1e1e;
  font-family: var(--sobae-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
}

.editor-styles-wrapper .sobae-hero__slide--foaming::before {
  content: "Slide 2 - Foaming Cleanser (mobile image available)";
}

.editor-styles-wrapper .sobae-hero__slide--video::before {
  content: "Slide 1 - Complete Ritual Video (desktop and mobile)";
}

.editor-styles-wrapper .sobae-hero__slide--balm::before {
  content: "Slide 3 - Cleansing Balm";
}

.editor-styles-wrapper .sobae-hero__slide--moisturizer::before {
  content: "Slide 4 - Moisturizer";
}

.editor-styles-wrapper .sobae-hero__slide--retinol::before {
  content: "Slide 5 - Retinol Serum";
}

.editor-styles-wrapper .sobae-hero__content {
  min-height: 480px;
}

.editor-styles-wrapper .sobae-hero__media--mobile {
  position: absolute;
  z-index: 4;
  top: 54px;
  right: 16px;
  display: block !important;
  width: 150px;
  height: 180px;
  outline: 2px solid #fff;
  box-shadow: 0 0 0 1px #757575;
}
