/* Studio photographs follow the site's edge-to-edge, alternating split rows. */
/* Match the existing editorial photography's subdued colour and exposure. */
.home-refresh .story-studio__photo.salon-photo,
.editorial-page .studio-photo-section .studio-story-photo.salon-photo {
  filter: saturate(.22) contrast(1.02) brightness(.9);
  mix-blend-mode: normal;
}

body.dark-theme.home-refresh #ch-studio {
  padding-block: 0;
}

.home-refresh #ch-studio .story-studio--anchored {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
}

.home-refresh .story-studio__media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: clamp(420px, 40vw, 600px);
  overflow: hidden;
}

.home-refresh .story-studio__media .story-studio__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}

.home-refresh #ch-studio .story-studio__copy {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  align-self: center;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem) max(6vw, calc((100vw - 1152px) / 2));
  text-align: left;
}

.home-refresh #ch-studio .story-links {
  justify-content: flex-start;
  gap: 1rem;
}

/* Preserve the Studio page's centre-line junction with the booking photo below. */
.editorial-page .studio-photo-section > .wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.editorial-page .studio-photo-section .split {
  gap: 0;
}

.editorial-page .studio-photo-section .split > [data-reveal] {
  min-width: 0;
  padding: clamp(3rem, 5vw, 5rem) max(6vw, calc((100vw - 1152px) / 2)) clamp(3rem, 5vw, 5rem) clamp(2.5rem, 6vw, 6rem);
}

.editorial-page .studio-photo-section .studio-story-photo.salon-photo {
  width: 100%;
  max-width: none;
  height: clamp(480px, 48vw, 640px);
  object-position: center 58%;
}

@media (max-width: 959px) {
  .editorial-page .studio-photo-section .split > [data-reveal] {
    padding: 3rem 6vw;
  }
}

@media (max-width: 760px) {
  .home-refresh #ch-studio .story-studio--anchored {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-refresh .story-studio__media {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-refresh #ch-studio .story-studio__copy {
    grid-row: 1;
    padding: 3rem 6vw;
  }

  .editorial-page .studio-photo-section .studio-story-photo.salon-photo {
    height: auto;
    max-height: 620px;
    aspect-ratio: 3 / 4;
  }
}

/* Extend only the pale backdrop; retain the original people and mobile crop. */
.home-refresh .story-intro__media {
  min-width: 0;
}

@media (min-width: 761px) {
  body.dark-theme.home-refresh .story-intro {
    padding-block: 0;
  }

  .home-refresh .story-intro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .home-refresh .story-intro__media {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background-color: #dfe3e2;
    background-image: url('../img/salon/process-background-extended.webp');
    /* Display only the empty left third of the expanded backdrop. */
    background-size: 300% 100%;
    background-position: left center;
    background-repeat: no-repeat;
    filter: grayscale(1) contrast(1.02);
  }

  .home-refresh .story-intro__media .story-intro__cutting {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 426px;
    max-width: 100%;
    height: auto;
    margin: 0;
    filter: none;
    /* These joins affect empty background only, clear of both subjects. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 20px), linear-gradient(to bottom, transparent, #000 64px);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 20px), linear-gradient(to bottom, transparent, #000 64px);
    mask-composite: intersect;
  }

  .home-refresh .story-intro__copy {
    align-self: center;
    min-width: 0;
    max-width: none;
    padding: clamp(3rem, 5vw, 5rem) max(6vw, calc((100vw - 1152px) / 2)) clamp(3rem, 5vw, 5rem) clamp(2.5rem, 6vw, 6rem);
  }
}

@media (max-width: 760px) {
  .home-refresh .story-intro__media .story-intro__cutting {
    display: block;
  }
}
