.sobae-routine-step {
  --sobae-step-text: #000;
  --sobae-step-muted: #444;
  --sobae-step-line: #e6e6e6;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px 40px;
  background: #fff;
  color: var(--sobae-step-text);
}

.home .entry-content > .sobae-routine-step {
  margin-block: 0 !important;
}

.sobae-routine-step__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1410px) !important;
  max-width: 1410px !important;
  margin: 0 auto !important;
  overflow: hidden;
  border-radius: 4px;
}

.sobae-routine-step--text-first .sobae-routine-step__media {
  order: 2;
}

.sobae-routine-step--text-first .sobae-routine-step__content {
  order: 1;
}

.sobae-routine-step__media,
.sobae-routine-step__image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.sobae-routine-step__image {
  min-height: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f5f5f5;
}

.sobae-routine-step__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobae-routine-step__content {
  display: flex;
  max-width: none;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 60px 80px;
  background: #fff;
}

.sobae-routine-step__eyebrow {
  margin: 0 0 20px;
  color: var(--sobae-step-text);
  font-family: var(--sobae-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sobae-routine-step__title {
  max-width: 620px;
  margin: 0;
  color: var(--sobae-step-text);
  font-family: var(--sobae-font-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.sobae-routine-step__body {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--sobae-step-muted);
  font-family: var(--sobae-font-sans);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0;
}

.sobae-routine-step__body strong {
  color: var(--sobae-step-text);
  font-weight: 600;
}

.sobae-routine-step__formula {
  margin-top: 10px;
}

.sobae-routine-step__buttons {
  margin: 32px 0 0;
}

.sobae-routine-step__button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 0 40px;
  border: 0;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-family: var(--sobae-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .sobae-routine-step--one .sobae-routine-step__inner,
  .sobae-routine-step--three .sobae-routine-step__inner {
    box-shadow: 0 20px 52px rgba(17, 17, 17, 0.09);
    transform: translateY(0);
    transition: box-shadow 260ms ease, transform 260ms ease;
  }

  .sobae-routine-step--one .sobae-routine-step__image img,
  .sobae-routine-step--three .sobae-routine-step__image img {
    filter: saturate(1.035) contrast(1.015);
    transition: filter 260ms ease, transform 340ms ease;
  }

  @media (hover: hover) {
    .sobae-routine-step--one .sobae-routine-step__inner:hover,
    .sobae-routine-step--three .sobae-routine-step__inner:hover {
      box-shadow: 0 32px 72px rgba(17, 17, 17, 0.15);
      transform: translateY(-7px);
    }

    .sobae-routine-step--one .sobae-routine-step__inner:hover .sobae-routine-step__image img,
    .sobae-routine-step--three .sobae-routine-step__inner:hover .sobae-routine-step__image img {
      filter: saturate(1.075) contrast(1.025);
      transform: scale(1.018);
    }
  }

  .sobae-routine-step--two,
  .sobae-routine-step--four {
    min-height: clamp(560px, 56vw, 760px);
    padding: 0;
  }

  .sobae-routine-step--two .sobae-routine-step__inner,
  .sobae-routine-step--four .sobae-routine-step__inner {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: inherit;
    overflow: hidden;
    border-radius: 0;
  }

  .sobae-routine-step--two .sobae-routine-step__media,
  .sobae-routine-step--four .sobae-routine-step__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sobae-routine-step--two .sobae-routine-step__image,
  .sobae-routine-step--four .sobae-routine-step__image {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .sobae-routine-step--two .sobae-routine-step__image img,
  .sobae-routine-step--four .sobae-routine-step__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .sobae-routine-step--two .sobae-routine-step__content,
  .sobae-routine-step--four .sobae-routine-step__content {
    position: relative;
    z-index: 2;
    width: min(48vw, 760px);
    max-width: none;
    min-height: inherit;
    padding: clamp(72px, 9vw, 140px) clamp(72px, 9.6vw, 196px);
    background: transparent;
  }

  .sobae-routine-step--two .sobae-routine-step__content::before,
  .sobae-routine-step--four .sobae-routine-step__content::before {
    position: absolute;
    z-index: -1;
    inset: 0 -16vw 0 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobae-routine-step--one .sobae-routine-step__inner,
  .sobae-routine-step--three .sobae-routine-step__inner,
  .sobae-routine-step__image img {
    transition: none;
  }

  .sobae-routine-step--one .sobae-routine-step__inner,
  .sobae-routine-step--three .sobae-routine-step__inner,
  .sobae-routine-step--one .sobae-routine-step__inner:hover,
  .sobae-routine-step--three .sobae-routine-step__inner:hover {
    transform: none;
  }
}

@media (max-width: 1279px) and (min-width: 768px) {
  .sobae-routine-step__content {
    padding: 48px 54px;
  }

  .sobae-routine-step__title {
    font-size: 52px;
  }

  .sobae-routine-step--two .sobae-routine-step__content,
  .sobae-routine-step--four .sobae-routine-step__content {
    padding-right: clamp(50px, 7vw, 90px);
    padding-left: clamp(50px, 8vw, 116px);
  }
}

@media (max-width: 767px) {
  .sobae-routine-step,
  .sobae-routine-step--two,
  .sobae-routine-step--four {
    min-height: 0;
    padding: 48px 20px 56px;
  }

  .sobae-routine-step__inner,
  .sobae-routine-step--two .sobae-routine-step__inner,
  .sobae-routine-step--four .sobae-routine-step__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .sobae-routine-step--text-first .sobae-routine-step__media,
  .sobae-routine-step--image-first .sobae-routine-step__media,
  .sobae-routine-step--two .sobae-routine-step__media,
  .sobae-routine-step--four .sobae-routine-step__media {
    position: static;
    order: 1;
  }

  .sobae-routine-step--text-first .sobae-routine-step__content,
  .sobae-routine-step--image-first .sobae-routine-step__content,
  .sobae-routine-step--two .sobae-routine-step__content,
  .sobae-routine-step--four .sobae-routine-step__content {
    position: static;
    order: 2;
    width: auto;
    min-height: 0;
    padding: 36px 20px 8px;
    background: #fff;
    text-align: center;
  }

  .sobae-routine-step--two .sobae-routine-step__content::before,
  .sobae-routine-step--four .sobae-routine-step__content::before {
    content: none;
  }

  .sobae-routine-step--two .sobae-routine-step__image img {
    object-position: 88% center;
  }

  .sobae-routine-step--four .sobae-routine-step__image img {
    object-position: 92% center;
  }

  .sobae-routine-step__eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .sobae-routine-step__title {
    font-size: 42px;
  }

  .sobae-routine-step__body {
    margin-top: 18px;
    font-size: 14px;
  }

  .sobae-routine-step__buttons {
    justify-content: center !important;
    margin-top: 26px;
  }
}

.editor-styles-wrapper .sobae-routine-step {
  padding-top: 48px;
  padding-bottom: 48px;
}
