/* Shared photographic service hero. Typography stays in each page stylesheet. */
  .photo-hero {
    --hero-fade-block: 100px;
    --hero-fade-inline: 48px;
    /* Container inset + 640px text column, including room around the text. */
    --hero-text-edge: calc(max(32px, calc(50% - 528px)) + 660px);
    --crumb-offset: 96px;
    margin-top: var(--crumb-offset);
    padding: 64px 0 96px;
    min-height: 640px;
    background: var(--bg);
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .photo-hero::before,
  .photo-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .photo-hero::before {
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) var(--hero-text-edge), transparent calc(var(--hero-text-edge) + 200px));
  }
  .photo-hero::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, transparent var(--hero-fade-block), transparent calc(100% - var(--hero-fade-block)), var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, transparent var(--hero-fade-inline), transparent calc(100% - var(--hero-fade-inline)), var(--bg) 100%);
  }
  .photo-hero > .container { position: relative; z-index: 2; }
  .photo-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  @media (max-width: 600px) {
    .photo-hero {
      --hero-fade-block: 64px;
      --hero-fade-inline: 20px;
      --crumb-offset: 104px;
      padding: 40px 0 240px;
      min-height: 0;
    }
    .photo-hero::before {
      background: linear-gradient(180deg, var(--bg) 0%, var(--bg) calc(100% - 240px), transparent calc(100% - 80px));
    }
    .photo-hero-image { top: auto; height: 55%; object-position: 85% bottom; }
  }
