.photo-case {
  --case-rule: #b5b4aa;
  --case-blue: #2444a2;
  color: #22231f;
  background: #f7f7ef;
  scroll-margin-top: 4rem;
}

.photo-case__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  width: min(100% - clamp(2.5rem, 9vw, 9rem), 76rem);
  gap: clamp(2rem, 8vw, 7.5rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 6.4vw, 6.5rem);
}

.photo-case__label {
  margin: 0 0 1rem;
  color: #45473e;
  font: 600 .86rem/1.35 var(--mono, ui-monospace, monospace);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.photo-case h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.65rem, 5.2vw, 5.3rem);
  line-height: .99;
  letter-spacing: -.055em;
  color: inherit;
}

.photo-case__lead {
  max-width: 38ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.5;
}

.photo-case a {
  color: var(--case-blue);
  text-decoration: underline;
  text-underline-offset: .19em;
  text-decoration-thickness: .08em;
}

.photo-case a:hover { text-decoration-thickness: .14em; }
.photo-case__source { display: inline-block; padding-block: .38rem; font-weight: 650; }

.photo-case__path {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid currentColor;
  font-size: 1.05rem;
  line-height: 1.45;
}

.photo-case__path li {
  position: relative;
  margin: 0;
  padding: 1.12rem 0 1.12rem 1.65rem;
  border-bottom: 1px solid var(--case-rule);
}

.photo-case__path li::before {
  content: '';
  position: absolute;
  top: 1.6rem;
  left: .15rem;
  width: .6rem;
  height: .6rem;
  border: 2px solid var(--case-blue);
  border-radius: 50%;
  box-sizing: border-box;
}

.photo-case__path li:last-child::before { background-color: var(--case-blue); }
.photo-case__path strong { font-weight: 730; }
.photo-case__preview {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid #b6b8ad;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 38px rgb(31 32 25 / 8%);
}
.photo-case__bar, .photo-case__bar > div { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.photo-case__bar { padding: .75rem 1.1rem; justify-content: space-between; border-bottom: 1px solid var(--case-rule); }
.photo-case__bar button, .photo-case__bar a { font: 600 .9375rem/1.4 var(--sans); }
.photo-case__bar button { padding: .5rem .85rem; border: 1px solid var(--ink); background: #fff; }
.photo-case__bar button:hover { background: var(--ink); color: white; }
.photo-case__bar a { padding-block: .5rem; }
.photo-case__frame { display: block; width: 100%; height: clamp(21rem, 49vh, 34rem); border: 0; background: #282824; }
.photo-case__preview:modal { position: fixed; inset: 0; margin: auto; width: 96vw; height: 94dvh; max-height: 94dvh; display: flex; flex-direction: column; }
.photo-case__preview:modal .photo-case__frame { flex: 1; height: auto; min-height: 0; }
.photo-case__preview::backdrop { background: rgb(14 16 12 / 80%); }
.photo-case :is(a, button):focus-visible { outline: 3px solid var(--case-blue); outline-offset: 3px; }

@media (max-width: 48rem) {
  .photo-case__inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .photo-case__lead { max-width: 49ch; }
  .photo-case__bar { padding: .7rem .8rem; }
  .photo-case__bar > div { gap: .5rem .9rem; }
  .photo-case__preview:modal { width: 100vw; height: 100dvh; max-height: 100dvh; }
}
