/* Case study pages (everything in /work/). Shared styles (colors, type, column, corners, footer) are in site.css. */
.case { padding-top: 243px; padding-bottom: 271px; }
.back { display: inline-block; text-underline-offset: 3px; }
.back:hover { color: var(--mute); }

/* Title on the left, the roles on this project on the right */
/* Title and intro stacked on the left, the roles on this project running down beside them on the right.
   The intro always sits right under the title, however long the roles list is; a list longer than the
   title and intro together simply makes the header taller, so the screens below still clear it. */
.case__head {
  display: grid;
  justify-content: space-between;
  /* grid-template-columns: 1fr 200px; */
  grid-template-rows: auto 1fr;          /* any extra height from a long list goes under the intro, never under the title */
  grid-template-areas: "title roles" "intro roles";
  column-gap: 40px;
  align-items: start;
  margin-top: 21px;
}
.case__title { grid-area: title; max-width: 600px; font-weight: 700; font-size: var(--t-list); line-height: 1; }   /* long names wrap, like the design */
.case__roles { grid-area: roles; line-height: 26px; padding-top: 1px; }
.case__intro { grid-area: intro; margin-top: 49px; max-width: 600px; font-size: var(--t-body); line-height: 1.4; }
.case__intro p + p { margin-top: 1.4em; }   /* for an intro of several paragraphs, wrapped in <div class="case__intro"> */

/* Screens: a label in the left margin, outside the 1000px column */
.shots { position: relative; margin-top: 117px; }
.shots + .shots { margin-top: 193px; }
.shots__label { position: absolute; top: -4px; right: calc(100% + 58px); white-space: nowrap; }
.shot { background: var(--ph); }
.shot img { display: block; width: 100%; height: auto; }
.shot:has(img) { aspect-ratio: auto; background: none; }   /* a real image sets its own height */
/* .shot--desktop { aspect-ratio: 1000 / 2385; } */
.shots__row { display: flex; justify-content: space-between; gap: 40px; }
.shot--email { max-width: 600px; } 
.shot--mobile { aspect-ratio: 264 / 480; }

.back--end { margin-top: 216px; }

/* Not enough margin for the labels: they move above the screens */
@media (max-width: 1279.98px) {
  .shots__label { position: static; display: block; margin-bottom: 16px; }
  .shots { margin-top: 96px; }
  .shots + .shots { margin-top: 120px; }
}
@media (max-width: 760px) {
  .corner--scroll { display: none; }   /* on phones it would sit over the Back link */
  .case { padding-top: 120px; padding-bottom: 140px; }
  .case__head { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "title" "roles" "intro"; row-gap: 24px; margin-top: 24px; }
  .case__roles { padding-top: 0; }
  .case__intro { margin-top: 8px; }   /* 32px under the roles, with the row gap */
  .shots__row { gap: 12px; }
  .back--end { margin-top: 120px; }
}
