/* Shared by the storefront and the standalone press kit. The per-frame trims
   follow the asset in every placement, including Next's encoded image URLs. */
:root {
  --photo-matte: #efede8;
}

img[data-photo-treatment="product"] {
  background-color: var(--photo-matte);
  filter: none;
  mix-blend-mode: normal;
}

img[data-photo-treatment="field"] {
  --photo-field-grade: saturate(.91) sepia(.07) contrast(.98) brightness(1.015);
  filter: var(--photo-field-grade);
}

/* Bright blue sky and dappled sun in the founders' outdoor portraits. */
img[data-photo-treatment="field"][src*="dan-ridge.jpg"] {
  --photo-field-grade: saturate(.83) sepia(.09) contrast(.98) brightness(1.01);
}

img[data-photo-treatment="field"][src*="dan-founder-log.jpg"] {
  --photo-field-grade: saturate(.89) sepia(.045) contrast(.94) brightness(1.025);
}

/* The backlit maker portrait has warm foliage already. */
img[data-photo-treatment="field"][src*="wisco-home-goods.png"] {
  --photo-field-grade: saturate(.83) contrast(.98) brightness(1.01);
}

/* The race daylight is yellower and brighter than the open-shade frames. */
img[data-photo-treatment="field"][src*="dan-caballo-blanco"] {
  --photo-field-grade: saturate(.78) contrast(.98) brightness(.96);
}

/* Cool blue daylight at the finish, including in the white banner. */
img[data-photo-treatment="field"][src*="dan-western-states-finish.jpg"] {
  --photo-field-grade: saturate(.86) sepia(.17) contrast(.98) brightness(.99);
}

/* Keep the shaded climber readable against the red rock. */
img[data-photo-treatment="field"][src*="hero-crack"] {
  --photo-field-grade: saturate(.92) sepia(.08) contrast(.97) brightness(1.035);
}

/* Lower the saturation of the sunrise and hold detail in the dark trail. */
img[data-photo-treatment="field"][src*="hero-canyon-dawn"] {
  --photo-field-grade: saturate(.81) contrast(.94) brightness(1.045);
}
