/* The full Dent & Paint screenshot sits inside a generous project frame. */
#work .case-mv-cars { display: flex; flex-direction: column; align-items: center; min-height: 0; aspect-ratio: auto !important; padding: 12px clamp(16px, 2.5vw, 38px); gap: 10px; }
#work .case-mv-cars .project-tag { position: static; align-self: flex-start; margin: 0; }
#work .case-mv-cars .project-capture { position: static; display: block; width: 55%; max-width: 1560px; height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; filter: none; animation: none; transform: none; }
#work .project:hover .case-mv-cars .project-capture { filter: none; transform: none; }
@media (max-width: 650px) {
  #work .case-mv-cars { gap: 6px; padding: 6px 16px; }
  #work .case-mv-cars .project-tag { padding-block: 6px; }
  #work .case-mv-cars .project-capture { height: auto; aspect-ratio: auto; object-fit: contain; }
}

/* A light editorial cover, using the site's paper, sand and copper palette. */
#work .rhema-app-cover {
  isolation: isolate;
  color: var(--ink);
  border-color: rgba(23, 33, 38, .18);
  background: var(--paper);
}
#work .rhema-app-cover::before,
#work .rhema-app-cover::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
#work .rhema-app-cover::before {
  inset: 0 0 0 66%;
  border-left: 1px solid rgba(23, 33, 38, .1);
  background: linear-gradient(rgba(23, 33, 38, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 33, 38, .055) 1px, transparent 1px), var(--paper-2);
  background-size: 44px 44px;
}
#work .rhema-app-cover::after {
  inset: 75% 0 0;
  border-top: 1px solid rgba(168, 95, 69, .18);
  background: #e1d4c6;
}
#work .rhema-app-cover .project-tag {
  position: relative;
  top: auto;
  left: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 32px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  backdrop-filter: none;
  font-size: 9px;
}
#work .rhema-app-cover .project-tag::before { content: ""; width: 24px; height: 1px; background: var(--copper); }
#work .rhema-app-cover .app-card-preview { position: relative; z-index: 1; min-height: 0; padding: 18px 32px 24px; gap: 22px; }
#work .rhema-app-cover .rhema-cover-title {
  width: 100%;
  margin: 0 0 5px;
  font-family: var(--font-head);
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.055em;
}
#work .rhema-app-cover .rhema-cover-title em { font-style: normal; color: var(--copper); }
#work .rhema-app-cover .app-screen-pair { width: min(100%, 470px); gap: 24px; align-items: start; }
#work .rhema-app-cover .app-screen-pair > .app-phone {
  width: min(43%, 200px);
  max-width: 200px;
  border-color: var(--navy);
  box-shadow: 0 16px 28px rgba(23, 33, 38, .17), 0 3px 5px rgba(23, 33, 38, .1);
}
#work .rhema-app-cover .app-phone:first-child,
#work .rhema-app-cover .app-phone:last-child { transform: none; }
#work .rhema-app-cover .app-card-caption { color: #465158; }
@media (max-width: 650px) {
  #work .rhema-app-cover .project-tag { margin: 22px 22px 0; }
  #work .rhema-app-cover .app-card-preview { padding: 16px 22px 22px; gap: 20px; }
  #work .rhema-app-cover .rhema-cover-title { font-size: 26px; max-width: 280px; }
  #work .rhema-app-cover .app-screen-pair { gap: 14px; }
  #work .rhema-app-cover .app-screen-pair > .app-phone { width: 45%; max-width: 170px; }
}

/* ATS and Rhema share preview and caption rows when displayed side by side. */
#work .project-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 0;
  min-width: 0;
}
#work .project-pair > .project {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
  min-width: 0;
}
#work .project-pair :is(.project-art, .project-meta) { min-width: 0; }
#work .project-pair .project-meta > div { min-width: 0; }
#work .project-pair .project-meta > span { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 651px) {
  #work .project-pair .project-meta { gap: 16px; }
}
@media (min-width: 651px) and (max-width: 900px) {
  #work .project-pair .case-ats {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  #work .project-pair .case-ats .project-capture {
    min-height: 0;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #0b0e10;
  }
}
@media (max-width: 650px) {
  #work .project-pair {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: clamp(56px, 6vw, 82px);
  }
  #work .project-pair > .project {
    display: block;
    grid-template-rows: none;
    grid-row: auto;
  }
}
