/* Shared editorial work grid, with a homepage-only desktop width. */
.case-studies {
  position: relative;
  z-index: 3;
  padding: 48px 60px 100px;
  background: var(--paper);
  color: var(--ink);
}
.case-studies > .content-eyebrow { margin-bottom: 48px; }
.case-studies-home {
  padding-block: 132px;
  background: var(--ink);
  color: var(--white);
}
.case-studies-home > .selected-work-heading { margin-bottom: 64px; text-align: center; }
.case-studies.case-studies-home :focus-visible { outline-color: var(--white); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 40px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  container-type: inline-size;
}
.case-project { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.case-photo {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 2.32;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: #222;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.case-photo picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.case-photo[data-coming-soon] { cursor: default; }
.case-project img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.case-project:first-child { grid-row: span 2; }
.case-project:first-child .case-photo { flex: 1; min-height: 260px; aspect-ratio: auto; }
.case-project:nth-child(n+4) .case-photo { aspect-ratio: 1.64; }
.case-caption { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 18px; }
.case-caption :is(h2, h3) {
  margin: 0;
  font-family: "Romie", Georgia, serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(1.75rem, 2.4cqw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.case-studies-home .case-caption h3 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2cqw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
.case-hover-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font: 500 .875rem/1.4 var(--font);
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.photo-cursor-ready .case-hover-label { opacity: 0; }
.photo-cursor-ready .case-photo:is(.is-hovering, .is-touch-photo, :focus-visible) .case-hover-label { opacity: 1; }
.case-photo.is-following .case-hover-label { left: 0; top: 0; bottom: auto; transform: translate3d(var(--hover-x, 16px), var(--hover-y, 16px), 0); }
.case-photo:focus-visible .case-hover-label { left: 16px; top: auto; bottom: 16px; transform: none; visibility: visible !important; }
.case-studies :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 1200px) {
  .case-grid-home { max-width: 80%; }
}
@media (max-width: 1199px) {
  .case-studies { padding-inline: 32px; }
  .case-grid { gap: 36px 32px; }
}
@media (max-width: 999px) {
  .case-studies-home { padding-block: 100px; }
}
@media (max-width: 699px) {
  .case-studies { padding: 40px 24px 64px; }
  .case-studies-home { padding-block: 80px; }
  .case-studies-home > .selected-work-heading { margin-bottom: 48px; }
  .case-studies > .content-eyebrow { margin-bottom: 36px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .case-project:first-child { grid-row: auto; }
  .case-photo, .case-project:nth-child(n+4) .case-photo { aspect-ratio: 1.6; }
  .case-project:first-child .case-photo { flex: none; min-height: 0; aspect-ratio: 1.25; }
  .case-caption { gap: 12px; padding-top: 14px; }
  .case-caption :is(h2, h3) { font-size: 1.75rem; }
  .case-studies-home .case-caption h3 { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) { .case-hover-label { transition: none; } }
