/* YELLA v1.2.136 — compact, natural-fit Community photos.
   Main catch feed only: NOT the grid/gallery, verified carousel, profiles or uploads.
   Native image ratios are supplied by the v12136 script using already loaded images.
   Letterbox unusually shaped uploads rather than stretching/cropping a catch. */
#page-reports #reports-list:not(.yella-catch-grid-v178) {
  align-items:center!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  gap:13px!important;
}
#page-reports #reports-list:not(.yella-catch-grid-v178) > .catch-card {
  width:100%!important;
  max-width:545px!important; /* v1.2.135 desktop post ≈600px */
  margin:0 auto 2px!important;
}
html[data-yella-theme="dark"] body #page-reports #reports-list:not(.yella-catch-grid-v178) .catch-photo {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(620px,80vh)!important;
  aspect-ratio:var(--yf-feed-photo-ratio, 4 / 5)!important;
  position:relative!important;
  overflow:hidden!important;
  background:#001923!important;
}
/* Always show the whole uploaded catch inside its available frame: no zoom,
   distortion, stretched landscape shots, or faces/fish cut off. */
html[data-yella-theme="dark"] body #page-reports #reports-list:not(.yella-catch-grid-v178) .catch-photo > img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
/* Older photo-backdrop code may still create a node; avoid costly blur / 
   extra image painting and keep the navy backing subtle on odd dimensions. */
html[data-yella-theme="dark"] body #page-reports #reports-list:not(.yella-catch-grid-v178) .catch-photo > .yella-photo-backdrop-v199 {
  display:none!important;
}
/* Missing/temporarily unavailable photos should not reserve a giant frame. */
html[data-yella-theme="dark"] body #page-reports #reports-list:not(.yella-catch-grid-v178) .catch-photo:not(:has(> img)) {
  aspect-ratio:auto!important;
  min-height:160px!important;
  max-height:185px!important;
}
@media(max-width:900px) {
  #page-reports #reports-list:not(.yella-catch-grid-v178) > .catch-card {
    max-width:505px!important;
  }
  html[data-yella-theme="dark"] body #page-reports #reports-list:not(.yella-catch-grid-v178) .catch-photo {
    max-height:min(475px,72vh)!important;
  }
}
@media(max-width:600px) {
  /* A gentle side inset on a phone; keep controls and captions readable. */
  #page-reports #reports-list:not(.yella-catch-grid-v178) > .catch-card {
    width:calc(100% - 8px)!important;
    max-width:none!important;
  }
}
