.case-archive { background: #efede5; }
/* The shared page already reserves space for the sticky header. */
#cases { scroll-margin-top: 10px; }
@media (max-width: 760px) {
  #cases { scroll-margin-top: 3px; }
}
.case-archive [hidden] { display: none !important; }
.case-heading, .case-controls, .case-figure figcaption,
.case-dialog-bar, .case-dialog-caption { display: flex; justify-content: space-between; gap: 1.25rem; }
.case-heading { align-items: baseline; }
.case-heading p, .case-notes p, .case-story > p { color: #50574a; font-size: 1rem; line-height: 1.75; }
.case-heading p { max-width: 30rem; }
.case-controls {
  align-items: center;
  margin: 1.8rem 0 1.4rem;
  border-block: 1px solid #c9cabe;
}
.case-directory, .case-arrows, .case-common-photos { display: flex; align-items: center; }
.case-directory { gap: clamp(.7rem, 2vw, 2rem); }
.case-directory button { min-height: 48px; padding: .7rem 0; border-bottom: 2px solid transparent; font-size: .90625rem; }
.case-directory button[aria-pressed="true"] { border-color: #895934; color: #402b1a; font-weight: 600; }
.case-arrows { gap: .35rem; }
.case-arrows button, .case-close, .case-photo-prev, .case-photo-next {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  font: 1.8rem/1 Georgia,serif;
}
.case-arrows button:hover, .case-directory button:hover { background: #e4e2d7; }
.case-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: center;
  margin-top: 1.25rem;
}
.case-figure { min-width: 0; }
.case-enlarge {
  position: relative;
  display: grid;
  place-items: center;
  background: #e3e1d6;
  border: 1px solid #d5d5c8;
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}
.case-enlarge img {
  width: 100%;
  height: clamp(300px, 34vw, 550px);
  object-fit: contain;
}
.case-zoom {
  position: absolute;
  bottom: .72rem;
  right: .72rem;
  background: #faf8f1;
  color: #353a30;
  border: 1px solid #deddd0;
  padding: .25rem .65rem;
  font-size: .8125rem;
  line-height: 1.65;
}
.case-figure figcaption { align-items: baseline; padding-top: .65rem; color: #4f5549; line-height: 1.6; }
.case-caption { font-size: .875rem; }
.case-photo-count, .case-dialog-count { font: .8125rem/1.5 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-story h3 { font: 400 clamp(26px, 2.8vw, 47px)/1.27 var(--serif); }
.case-story > p { max-width: 44ch; margin: 1.05rem 0 1.65rem; }
.case-thumbnails { display: flex; gap: .75rem; flex-wrap: wrap; }
.case-thumb { display: block; width: clamp(66px, 6.7vw, 98px); font-size: .8125rem; line-height: 1.4; }
.case-thumb img { width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; border: 2px solid transparent; }
.case-thumb span { display: block; padding: .35rem .05rem; }
.case-thumb[aria-current="true"] img { border-color: #865c38; }
.case-thumb[aria-current="true"] span { text-decoration: underline; text-underline-offset: .22em; }
.case-thumb:hover img, .case-common-photo:hover img { outline: 1px solid #895934; outline-offset: 1px; }
.case-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case-notes { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid #c9cabe; padding-top: 1.5rem; margin-top: 2.5rem; }
.case-notes h3 { font: 400 1.5rem/1.5 var(--serif); }
.case-notes p { font-size: .9375rem; margin-top: .3rem; }
.case-common-photos { align-items: stretch; gap: 1.1rem; }
.case-common-photo { display: flex; align-items: center; gap: .6rem; font-size: .875rem; line-height: 1.4; cursor: zoom-in; }
.case-common-photo img { width: 74px; height: 62px; object-fit: cover; }
dialog.case-dialog { width: min(1040px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 0; background: #f7f5ef; }
.case-dialog::backdrop { background: rgba(21,25,20,.86); }
body.case-dialog-open { overflow: hidden; }
.case-dialog-bar, .case-dialog-caption { padding: .5rem 1.3rem; align-items: center; }
.case-dialog-bar h3 { font: 500 1rem/1.5 var(--sans); }
.case-close { font-family: var(--sans); }
.case-dialog-stage { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: .5rem; align-items: center; background: #e5e2d8; touch-action: pan-y pinch-zoom; }
.case-dialog-image { width: 100%; height: min(70dvh,760px); object-fit: contain; }
.case-dialog-caption { min-height: 58px; font-size: .9375rem; line-height: 1.5; }
@media (max-width: 800px) {
  .case-heading, .case-notes { display: block; }
  .case-heading p { margin-top: .5rem; }
  .case-slide { gap: 1.5rem; }
  .case-common-photos { margin-top: 1rem; }
}
@media (max-width: 650px) {
  .case-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; margin: .9rem 0 .65rem; gap: .35rem; }
  .case-directory { gap: .75rem; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-inline: contain; }
  .case-directory button { flex: 0 0 auto; white-space: nowrap; }
  .case-directory button:focus-visible { outline-offset: -3px; }
  .case-directory button { font-size: .8125rem; min-height: 44px; }
  .case-arrows { margin-left: auto; gap: 0; }
  .case-slide { grid-template-columns: minmax(0,1fr); gap: 1.25rem; margin-top: 0; }
  .case-enlarge img { height: auto; aspect-ratio: 1.18; }
  .case-figure figcaption { gap: .75rem; }
  .case-story > p { margin: .55rem 0 1rem; }
  .case-thumb { width: 76px; }
  .case-common-photos { gap: .75rem; }
  .case-common-photo { flex: 1; flex-direction: column; align-items: flex-start; gap: .4rem; }
  .case-common-photo img { width: 100%; height: auto; aspect-ratio: 1.75; }
  dialog.case-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; }
  .case-dialog-stage { gap: 0; grid-template-columns: 44px minmax(0,1fr) 44px; }
  .case-dialog-bar, .case-dialog-caption { padding-inline: .8rem; }
  .case-dialog-image { height: min(66dvh,650px); }
}
.folio .case-enquiry {display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1.3rem}
.folio .case-common-photos {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,35rem);gap:1rem}
.folio .case-common-photo {display:grid;grid-template-columns:1fr;align-content:start;gap:.4rem}
.folio .case-common-photo img {width:100%;height:auto;aspect-ratio:1.8;object-fit:cover}
.folio .case-common-photo .bench-caption {font-size:.875rem;line-height:1.5;color:#50574a}
.folio .case-common-photo > span {font-weight:600}
