/* Shared page photograph grid: equal halves on desktop, full width on phones.
   Product galleries, stylist cards and logos keep their own internal spacing. */
:root {
  --site-photo-columns: repeat(2, minmax(0, 1fr));
}

body.dark-theme.editorial-page .page-hero,
body.dark-theme .story-book,
body.dark-theme.home-refresh .story-book,
.home-refresh .story-intro__grid,
.home-refresh .service-slide,
.home-refresh #ch-studio .story-studio--anchored,
.editorial-page .studio-photo-section .split,
.services-hero.services-hero--clients {
  grid-template-columns: var(--site-photo-columns);
  gap: 0;
}

body.dark-theme .story-book > *,
.editorial-page .page-hero > *,
.home-refresh .service-slide > * {
  min-width: 0;
}

.services-hero--clients .wall-panel {
  border: 0;
}

/* The complete hands artwork stays inside its aligned, paper-coloured panel. */
.editorial-page .page-hero__photo--hands {
  width: 100%;
  max-width: none;
}

/* Preserve the Quay portrait's framing while making its visible edge the divider. */
.visit-page .page-hero--contact .page-hero__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.visit-page .page-hero--contact .page-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (min-width: 761px) {
  body.dark-theme.home-refresh .hero-cine__slide.editorial-hero {
    width: 50%;
  }

  .home-refresh .hero-cine__content {
    box-sizing: border-box;
    width: 50%;
    max-width: none;
    margin: 0;
    padding-left: max(6vw, calc((100vw - 1152px) / 2));
    padding-right: clamp(2rem, 5vw, 5rem);
  }

  .home-refresh .hero-cine__title,
  .home-refresh .hero-cine__meta {
    max-width: 100%;
  }

  .home-refresh .hero-cine__lede {
    max-width: 39ch;
  }

  .editorial-page .studio-photo-section--reverse .split > [data-reveal] {
    grid-column: 2;
    grid-row: 1;
  }

  .editorial-page .studio-photo-section--reverse .studio-story-photo {
    grid-column: 1;
    grid-row: 1;
  }

  .services-hero.services-hero--clients {
    grid-template-rows: auto;
  }

  .services-hero--clients .wall-panel {
    border-bottom: 0;
  }

  .services-hero--clients .wall-panel:first-child .wall-panel__body {
    padding-top: 2rem;
  }

  .services-hero--clients .wall-panel__title {
    font-size: clamp(2.15rem, 4.3vw, 5.2rem);
    max-width: 10ch;
  }
}

@media (max-width: 760px) {
  :root {
    --site-photo-columns: minmax(0, 1fr);
  }

  :is(.consultation-hero, .existing-clients-hero) .hero-cine__stage {
    overflow: hidden;
  }
}
