#cases.field-cases {
  --case-ink: #20231e;
  --case-muted: #54564c;
  --case-rule: #d6d2c6;
  --case-accent: #705720;
  background: #fbfaf6;
  color: var(--case-ink);
  padding-block: clamp(52px, 6.8vw, 96px);
}
.field-cases .case-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.field-cases .case-heading h2 {
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.065em;
}
.field-cases .case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.field-cases .case-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--case-muted);
  font-size: 14px;
  font-weight: 620;
  text-underline-offset: 4px;
  text-decoration-color: #b3a986;
}
.field-cases .wrap > .sub {
  max-width: 57ch;
  margin: 10px 0 clamp(20px, 3vw, 38px);
  color: var(--case-muted);
}
.field-cases .field-story {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  align-items: start;
  column-gap: clamp(24px, 5.4vw, 82px);
  border-top: 1px solid var(--case-rule);
  padding-block: clamp(25px, 3.3vw, 48px);
}
.field-cases .field-story:first-of-type {border-top: 1px solid #78796c}
.field-cases .field-story:last-of-type {padding-bottom: 0}
.field-cases .case-place {
  color: var(--case-accent);
  font-size: 14px;
  font-weight: 710;
  margin-bottom: 9px;
}
.field-cases .field-story h3 {
  color: var(--case-ink);
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 710;
  line-height: 1.34;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.field-cases .case-story-text {
  color: var(--case-muted);
  margin-top: 13px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.78;
}
.field-cases .case-reading {
  color: var(--case-ink);
  font-weight: 650;
  white-space: nowrap;
}
.field-cases .case-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(8px, 1.05vw, 15px);
  min-width: 0;
}
.field-cases .case-pair figure {min-width: 0}
.field-cases .case-evidence {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  cursor: zoom-in;
  background: #22241f;
}
.field-cases .case-evidence:focus-visible {outline: 3px solid #8a6d2a; outline-offset: 3px}
.field-cases .case-evidence img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.63;
  object-fit: contain;
}
.field-cases .outlet-pair .case-evidence {background: #e9e5da}
.field-cases .outlet-pair img {
  aspect-ratio: 1.32;
  object-fit: cover;
  object-position: 50% 52%;
}
.field-cases .case-pair figcaption {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 12px 0 0;
}
.field-cases .case-pair figcaption span {
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.4;
}
.field-cases .case-pair figcaption strong {
  color: var(--case-ink);
  font-weight: 690;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.34;
  letter-spacing: -.035em;
}
.field-cases .meter-pair figcaption strong {
  font-family: "Joy Field Text", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.3vw, 33px);
  line-height: 1.15;
}
.field-cases .case-pair small {font-size: .63em; font-weight: 550; letter-spacing: 0}

.lightbox[open] {
  width: min(calc(100vw - 36px), 980px);
  margin: auto;
  max-height: 96dvh;
  max-width: none;
  padding: 0;
  border: 1px solid #59594b;
  border-radius: 12px;
  color: #fbfaf5;
  background: #22241f;
}
.lightbox::backdrop {background: #0e100de0}
body:has(.lightbox[open]) {overflow: hidden}
.lightbox .lightbox-inner {display: grid; grid-template-rows: auto minmax(0,1fr) auto; max-height: 94dvh}
.lightbox .lightbox-inner > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #242620;
  border-bottom: 1px solid #4a4c41;
}
.lightbox #large-caption {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.45;
  font-weight: 610;
  letter-spacing: -.025em;
}
.lightbox .close-lightbox {
  flex: none;
  min-height: 44px;
  border: 0;
  font: inherit;
  color: #ebe8da;
  background: transparent;
  cursor: pointer;
}
.lightbox .large-photo {
  position: relative;
  height: min(63dvh, 690px);
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  background: #151711;
}
.lightbox .large-photo img {display: block; width: 100%; height: 100%; object-fit: contain}
.lightbox .large-photo[data-view="meter"] {
  box-sizing: border-box;
  height: min(calc(min(100vw, 980px) * .59 + 50px), 62dvh);
  padding-bottom: 50px;
}
.lightbox .large-photo[data-view="meter"] .meter-detail {bottom: 3px}
.lightbox .meter-detail {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  border: 1px solid #8d8e80;
  padding: 0 15px;
  border-radius: 24px;
  background: #1e211cf2;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}
.lightbox .case-picker:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: min(100% - 32px, 428px);
  margin: 12px auto;
  padding: 3px;
  background: #303229;
  border: 1px solid #595b4e;
  border-radius: 8px;
}
.lightbox .case-picker button {
  min-height: 44px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  color: #e9e7df;
  background: transparent;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}
.lightbox .case-picker button[aria-pressed="true"] {color: #211f16; background: #f1e6c9}
.lightbox .slide-controls[hidden], .lightbox .meter-detail[hidden] {display: none}
.lightbox button:focus-visible {outline: 2px solid #efd382; outline-offset: -2px}

@media (max-width: 820px) {
  .field-cases .field-story {grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); column-gap: 20px}
}
@media (max-width: 680px) {
  .field-cases .case-heading {display: block}
  .field-cases .case-links {margin-top: 2px}
  .field-cases .wrap > .sub {margin: 0 0 18px; font-size: 15px}
  .field-cases .field-story {display: flex; flex-direction: column; gap: 17px}
  .field-cases .case-story-text {margin-top: 9px; line-height: 1.68}
  .field-cases .case-pair {width: 100%}
  .field-cases .case-pair figcaption {padding-top: 9px}
  .field-cases .outlet-pair img {aspect-ratio: .95}
  .lightbox[open] {width: calc(100% - 12px); border-radius: 9px}
  .lightbox .lightbox-inner > header {padding: 6px 12px; gap: 6px}
  .lightbox .case-picker:not([hidden]) {width: calc(100% - 24px); margin: 9px auto}
  .lightbox .large-photo {height: min(58dvh, 128vw)}
}
@media (max-height: 440px) {
  .lightbox .large-photo {height: 49dvh}
  .lightbox .case-picker:not([hidden]) {margin: 5px auto}
}
