#lookup-result > section[class*='report-disposition-'] {
  container-type: inline-size;
}

.lookup-coa-caption {
  color: #123b63;
  font-weight: 800;
  margin-bottom: 12px;
}

.lookup-coa-photo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  justify-self: end;
  min-width: 0;
  margin: 0 0 12px;
}

.lookup-coa-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 184px;
  border-radius: 7px;
}

@container (min-width: 480px) {
  .lookup-coa-head.has-sample-photo {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(140px, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'number photo'
      'outcome photo'
      'caption photo';
    column-gap: 16px;
    min-height: 156px;
    margin-bottom: 8px;
  }

  #lookup-result .has-sample-photo h2 {
    grid-area: number;
    font-size: clamp(21px, 4.2cqi, 32px) !important;
  }

  .has-sample-photo p { grid-area: outcome; }

  .has-sample-photo .lookup-coa-caption {
    grid-area: caption;
    align-self: end;
    margin-bottom: 0;
  }

  .has-sample-photo .lookup-coa-photo {
    grid-area: photo;
    margin: 0;
  }

  .has-sample-photo .lookup-coa-photo img { max-height: 156px; }
}
