.portfolio-compact-intro {
  display: none;
}

/* Keep the comparison and its controls on the first phone screen. */
@media (max-width: 639px) {
  #rec3631445201 {
    padding-block: 16px 8px !important;
  }
  #rec3631445201 .t017__uptitle {
    display: none;
  }
  #rec3631445201 .t017__descr {
    padding-block: 6px 0;
    line-height: 1.4;
  }
  #work-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "photos" "intro" "note" "detail";
    padding-block: 16px 28px;
  }
  #work-comparison > h2 {
    grid-area: heading;
    margin: 0;
  }
  #work-comparison > .owner-photo-switch {
    grid-area: photos;
  }
  #work-comparison .owner-photo-controls {
    gap: 8px;
    margin-block: 10px 12px;
  }
  #work-comparison figure[data-photo] {
    display: flex;
    flex-direction: column;
  }
  #work-comparison figure[data-photo] > figcaption {
    order: -1;
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.25;
  }
  #work-comparison > p:first-of-type {
    grid-area: intro;
    margin: 16px 0 0;
  }
  #work-comparison > p:last-of-type {
    grid-area: note;
  }
  #work-comparison > a {
    grid-area: detail;
    justify-self: start;
  }
}

@media (max-width: 359px) {
  html.local-page-portfolio .visual-system #allrecords #local-main-heading {
    font-size: clamp(1.5rem, 8vw, 1.875rem) !important;
    line-height: 1.15 !important;
  }
  #rec3631445201 .t017__descr {
    display: none;
  }
  .portfolio-compact-intro {
    display: block;
    margin: 0;
    padding: 0 20px 24px;
    color: var(--ink);
    background: #fff;
    font: 1rem/1.5 Arial, sans-serif;
  }
  #work-comparison > h2 {
    font-size: 1.5rem;
  }
}
