/* 2026-11-16 client feedback, items 4–6.
   Display-only treatment of the supplied photographs. Original assets, signs,
   products, logos and the three homepage banners are not changed.
   The Daohe reference photograph is 1546 × 1017, and sets the photo-frame ratio. */

/* Match the enterprise, project and paired operating photos to the reference.
   An explicit ratio overrides the legacy natural-height rules. Cover uses the
   scene-specific safe crop below; it never distorts the photograph. */
.site-layout img:is(.scene-daohe-factory, .scene-cold-gate, .scene-base-aerial,
    .scene-tatan-exterior, .scene-tatan-entrance),
.site-layout img.field-image[src*="field-20261026/tatan-entrance-"],
.site-layout .gallery > figure > img:is(
    [src*="client-20261105-update/market-overview."],
    [src*="client-20261105-update/market-people."],
    [src*="client-20261105-update/water-processing."],
    [src*="media-20261022/cold-chain."]),
.site-layout .ep-project-scene > img[src*="client-20261105-update/market-people."],
.site-layout .project-grid > .project-card > figure > img[src*="media-20261022/cold-chain."],
.site-layout .workflow-scenes > .workflow-scene > img:is(
    [src*="field-20261026/cold-chain-loading-"],
    [src*="media-20261022/cold-chain."]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 1546 / 1017 !important;
  object-fit: cover !important;
  object-position: var(--client-photo-position, 50% 50%) !important;
  padding: 0;
  background: #eaf1f2;
  clip-path: none;
  transform: none;
  animation: none;
}

/* Precise framing protects the real identity in each photograph.
   Cold gate: retain the complete red company plaque on the right warehouse.
   Tatan exterior: preserve the source's right facade and central vertical name.
   Entrance: retain the complete vertical name and the “佳农3号门” sign below. */
.site-layout img.scene-daohe-factory { --client-photo-position: 50% 50%; }
.site-layout img.scene-cold-gate { --client-photo-position: 92% 50%; }
.site-layout img.scene-base-aerial { --client-photo-position: 50% 50%; }
.site-layout img.scene-tatan-exterior { --client-photo-position: 100% 50%; }
.site-layout img.scene-tatan-entrance { --client-photo-position: 50% 100%; }
.site-layout img.field-image[src*="field-20261026/tatan-entrance-"] {
  --client-photo-position: 50% 60%;
}
.site-layout img[src*="client-20261105-update/market-overview."] {
  --client-photo-position: 50% 48%;
}
.site-layout img[src*="client-20261105-update/market-people."] {
  --client-photo-position: 54% 50%;
}
.site-layout .workflow-scenes img[src*="field-20261026/cold-chain-loading-"] {
  --client-photo-position: 60% 50%;
}

/* Apply one restrained grade per asset at every placement, including the
   homepage where filter:none previously cancelled the scene grade. These
   are browser display adjustments, not new lighting, lettering or facilities. */
.site-layout img.scene-daohe-factory {
  filter: brightness(1.025) contrast(1.025) saturate(1.015);
}
.site-layout img.scene-cold-gate {
  filter: brightness(1.045) contrast(1.035) saturate(.97);
}
.site-layout img.scene-base-aerial {
  filter: brightness(1.075) contrast(1.035) saturate(.94);
}
.site-layout img.scene-tatan-exterior {
  filter: brightness(1.055) contrast(1.045) saturate(.96);
}
.site-layout img.scene-tatan-entrance {
  filter: brightness(1.055) contrast(1.025) saturate(.96);
}
.site-layout img.field-image[src*="field-20261026/tatan-entrance-"] {
  filter: brightness(1.075) contrast(1.025) saturate(.93);
}
.site-layout img[src*="client-20261105-update/market-overview."] {
  filter: brightness(1.045) contrast(1.02) saturate(.96);
}
.site-layout img[src*="client-20261105-update/market-people."] {
  filter: brightness(1.025) contrast(1.025) saturate(.95);
}
.site-layout img[src*="client-20261105-update/water-processing."] {
  filter: brightness(1.015) contrast(1.02) saturate(.97);
}
.site-layout img[src*="media-20261022/cold-chain."] {
  filter: brightness(1.035) contrast(1.025) saturate(.92);
}
.site-layout .workflow-scenes img[src*="field-20261026/cold-chain-loading-"] {
  filter: brightness(1.025) contrast(1.02) saturate(.97);
}

/* Keep the same reference frame on small screens. The portrait entrance uses
   a slightly lower view to leave breathing room around its numbered doorway. */
@media (max-width: 700px) {
  .site-layout img.field-image[src*="field-20261026/tatan-entrance-"] {
    --client-photo-position: 50% 62%;
  }
}
