/* Colour correction applies to two reviewed, existing photographs only.
   Full-frame detail layout is handled separately below.
   These are browser display settings,
   not replacement images: originals, scenes, dates and licences stay intact.
   Exact paths (including our cache query) ensure a later managed upload does
   not inherit a treatment designed for another photograph. No global filter. */
html body.outing-site[class] img[src]:is(
  [src="assets/photos/travel-local/wenzhou-museum.jpg"],
  [src^="assets/photos/travel-local/wenzhou-museum.jpg?"],
  [src="/assets/photos/travel-local/wenzhou-museum.jpg"],
  [src^="/assets/photos/travel-local/wenzhou-museum.jpg?"]
) {
  filter: brightness(1.18) contrast(0.96);
  object-position: 50% 44%;
}

html body.outing-site[class] img[src]:is(
  [src="assets/photos/wenzhou-fish-ball-noodles.jpg"],
  [src^="assets/photos/wenzhou-fish-ball-noodles.jpg?"],
  [src="/assets/photos/wenzhou-fish-ball-noodles.jpg"],
  [src^="/assets/photos/wenzhou-fish-ball-noodles.jpg?"]
) {
  filter: brightness(1.10) saturate(1.04) sepia(0.10);
}

/* Detail photos are evidence as well as decoration. Preserve the full frame:
   portrait dishes/towers, waterfalls, panoramas and existing photo collages.
   Intrinsic sizing avoids upscaling small sources. The height cap leaves room
   for reading on a phone. Lists/home/route-stop thumbnails stay compact.
   This layout also supports future maintained photos, without colour changes. */
html body.outing-site[class] :is(
  .food-v2-media-grid,
  .travel-spot-photo,
  .official-scenic-photo
) img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 440px;
  max-height: min(56svh, 440px);
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

html body.outing-site .food-item-hero-card > .food-v2-media-grid {
  align-content: start;
}
