/* The same project documents can be read as an exhibition catalogue, a screening or field notes. */
.case { --case-accent: #9e482d; --case-tint: #f0debd }
#skillping { --case-accent: #416652; --case-tint: #dae6d5 }
#fitness { --case-accent: #87482c; --case-tint: #f1dac2 }
#bitmore { --case-accent: #8a5d22; --case-tint: #efe1b9 }
#awakening { --case-accent: #405c76; --case-tint: #d8e2e7 }
.case-plate { margin: 0; min-width: 0; width: 100% }
#creation-platform-title span { display: inline-block }
.case-print { display: flex; justify-content: center; overflow: hidden }
.banner-art .case-print img { display: block; width: 100%; height: auto; min-width: 0; object-fit: contain; filter: none }
.banner-art .case-print:has(img + img) img { width: 33.3333%; height: auto }
.case-plate figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45 }
.case-gallery .shots img { padding: 0; border-radius: 0; box-shadow: none }
.case-gallery .shots a:focus-visible { outline-offset: 3px }

html[data-edition=album] { --album-ink: #2d3836 }
:root[data-edition=album] .case-banner {
  color: var(--album-ink); background: var(--case-tint); border: 0;
}
:root[data-edition=album] .banner-inner {
  grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(24px,4.5vw,74px);
  max-width: 1440px; padding: clamp(30px,4.8vw,72px) clamp(20px,5.2vw,80px);
}
:root[data-edition=album] .banner-copy .category,
:root[data-edition=album] .back { color: var(--case-accent) }
:root[data-edition=album] .banner-copy h1 { font-size: clamp(42px,5.4vw,82px); line-height: 1.14; letter-spacing: -.045em }
:root[data-edition=album] .case-lead { color: #394641; max-width: 22em }
:root[data-edition=album] .case-actions a { border-color: var(--case-accent); background: transparent; color: var(--case-accent) }
:root[data-edition=album] .case-plate { padding: clamp(7px,1.2vw,20px); background: #fff8e8; box-shadow: 2px 8px 0 -4px #d1bfa4,0 10px 24px #4b321b28 }
:root[data-edition=album] .case-plate figcaption { color: #605644; font-family: var(--serif) }
:root[data-edition=album] .case-body > section:first-child > p:first-of-type { font: 500 clamp(19px,1.65vw,26px)/1.75 var(--serif) }
:root[data-edition=album] .case-gallery .shots:not(.phone-shots) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 17px }
:root[data-edition=album] .case-gallery .shots:not(.phone-shots) figure:first-child { grid-column: 1/-1 }
:root[data-theme=dark][data-edition=album] .case-banner { background: #273d49; color: #f4e8cf }
:root[data-theme=dark][data-edition=album] .banner-copy :is(.category,.back,.case-lead,.case-actions a) { color: #f0d7b4; border-color: #caa376 }

[data-edition=cinema] .case-banner { background: #101d2b; border-bottom: 0; position: relative; isolation: isolate; overflow: hidden }
[data-edition=cinema] .case-banner:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#101b29dd 8%,#101b29c7 32%,#101b29fa 74%),var(--case-art) left 44% / min(80%,1050px) auto no-repeat }
[data-edition=cinema] .banner-inner {
  max-width: 1320px; grid-template-columns: minmax(0,1.32fr) minmax(0,.88fr);
  gap: clamp(26px,5vw,78px); padding: clamp(30px,4.7vw,66px) clamp(24px,5vw,72px);
}
.case-opening { display: none }
[data-edition=cinema] .case-opening {
  display: block; margin: 14px 0 0; max-width: 37em; font-size: clamp(15px,1.13vw,18px); line-height: 1.9; color: #d5d4ce;
}
[data-edition=cinema] .banner-art { width: min(100%, 435px); justify-self: end }
[data-edition=cinema] .case-lead { color: #ebc78e; font-size: clamp(17px,1.5vw,22px); margin-top: 16px }
[data-edition=cinema] .case-body > section:not(.case-gallery) > p { max-width: 47em }
[data-edition=cinema] .banner-copy h1 { color: #fff0cf; font: 750 clamp(37px,4.3vw,68px)/1.16 "Microsoft YaHei",sans-serif; letter-spacing: -.055em }
[data-edition=cinema] .case-plate { padding: 10px 0 8px; border-block: 6px dotted #777567; background: #0a141e; box-shadow: 0 18px 40px #0005 }
[data-edition=cinema] .case-print { margin-inline: 10px }
[data-edition=cinema] .case-plate figcaption { color: #d8c7a1; padding-inline: 12px }
[data-edition=cinema] .reading-layout { max-width: 1390px; grid-template-columns: minmax(145px,.46fr) minmax(0,1.54fr) }
[data-edition=cinema] .case-body > section { border-top: 2px solid var(--rule) }
[data-edition=cinema] .case-body h2 { font-weight: 750; letter-spacing: -.035em }
[data-edition=cinema] .case-gallery { background: #172633; color: #fff1d5; padding: clamp(16px,2.5vw,32px); border: 0 !important }
[data-edition=cinema] .case-gallery .shots { display: flex; align-items: start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #bcaa84 #263746; scrollbar-width: thin; padding: 0 0 13px }
[data-edition=cinema] .shots figure { flex: 0 0 min(65%, 470px); scroll-snap-align: start }
[data-edition=cinema] .shots figure:only-child { flex-basis: min(100%, 470px) }
[data-edition=cinema] .shots.phone-shots figure { flex: 0 0 min(28%, 190px) }
[data-edition=cinema] .shots figcaption { margin-top: 13px; color: #e2dace; font-size: 14px; line-height: 1.75 }
[data-edition=cinema] .shots figcaption strong { display: block; margin-bottom: 3px; color: #f4d6a0; font-size: 16px }
@media(min-width:851px) {
  [data-edition=cinema] .shots figure:only-child { flex-basis: 100%; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: center; gap: 28px }
  [data-edition=cinema] .shots figure:only-child figcaption { margin: 0 }
}
.gallery-controls { display: none }
[data-edition=cinema] .gallery-controls { display: flex; justify-content: flex-end; gap: 7px; margin-top: 6px }
.gallery-controls button { width: 40px; height: 36px; background: transparent; border: 1px solid #9e9c8c; color: #fff2d4 }
.gallery-controls button:disabled { opacity: .4; cursor: default }

[data-edition=notes] .case-banner { color: #293e33; background-color: #e7ead7; background-image: linear-gradient(#8097742b 1px, transparent 1px),linear-gradient(90deg,#8097742b 1px, transparent 1px); background-size: 22px 22px; border-block: 1px solid #8d9b87 }
[data-edition=notes] .banner-inner { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(35px,5vw,80px); padding: clamp(28px,4.3vw,64px) clamp(22px,5vw,80px); max-width: 1410px }
[data-edition=notes] .banner-art { grid-area: 1/1; padding: 6px; transform: rotate(-1.3deg) }
[data-edition=notes] .banner-copy { grid-area: 1/2 }
[data-edition=notes] .banner-copy :is(.back,.category,.case-lead,.case-actions a) { color: #35513f }
[data-edition=notes] .banner-copy .case-actions a { border-color: #667c68; background: #f4f0da }
[data-edition=notes] .banner-copy h1 { font: 650 clamp(36px,4.65vw,70px)/1.15 KaiTi,"Songti SC",SimSun,serif }
[data-edition=notes] .case-plate { padding: 13px 13px 16px; background: #fff9e8; box-shadow: .3em .55em 0 -.15em #a4ae94 }
[data-edition=notes] .case-plate figcaption { font: 17px/1.4 KaiTi,STKaiti,serif }
[data-edition=notes] .reading-layout { grid-template-columns: minmax(0,1.6fr) minmax(140px,.5fr); max-width: 1300px }
[data-edition=notes] .reading-layout aside { grid-column: 2; grid-row: 1; padding: 10px 18px; border-left: 3px solid var(--rule) }
[data-edition=notes] .case-body { grid-column: 1; grid-row: 1 }
[data-edition=notes] .contents { border: 0 }
[data-edition=notes] .case-body h2 { font-family: KaiTi,"Songti SC",SimSun,serif }
[data-edition=notes] .case-body .entries > div { border-bottom-style: dashed }
[data-edition=notes] .shots:not(.phone-shots) figure { display: grid; grid-template-columns: minmax(0,2.25fr) minmax(100px,1fr); align-items: end; gap: 15px }
[data-edition=notes] .shots:not(.phone-shots) figcaption { padding: 9px 0 0; border-top: 1px dashed var(--muted); font-family: var(--serif) }
[data-theme=dark][data-edition=notes] .case-banner { background-color: #2b3e32; color: #f5ecd5 }
[data-theme=dark][data-edition=notes] .banner-copy :is(.category,.back,.case-lead) { color: #d4e3c2 }
[data-edition=notes] .case-plate figcaption { color: #364d3c }

@media(max-width:850px) {
  [data-edition] .reading-layout { grid-template-columns: minmax(0,1fr) }
  [data-edition=notes] .reading-layout aside,[data-edition=notes] .case-body { grid-column: auto; grid-row: auto }
  [data-edition=notes] .reading-layout aside { padding: 0; border: 0 }
}
@media(max-width:650px) {
  html[data-edition] .banner-inner, html:not([data-edition]) .banner-inner { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 19px 19px 26px; min-height: auto }
  [data-edition=notes] .banner-copy,[data-edition=notes] .banner-art { grid-area: auto }
  html[data-edition] .banner-copy h1 { font-size: clamp(32px,9vw,48px) }
  .case-plate figcaption { font-size: 12px }
  html[data-edition=cinema] .banner-inner { gap: 20px }
  [data-edition=cinema] .banner-art { width: min(81%, 300px); justify-self: center }
  [data-edition=cinema] .case-opening { margin-top: 9px; line-height: 1.7 }
  [data-edition=cinema] .case-lead { margin-top: 8px }
  [data-edition=cinema] .shots figure { flex-basis: 85% }
  [data-edition=cinema] .shots.phone-shots figure { flex-basis: min(61%, 175px); margin: 0 }
  [data-edition=notes] .shots:not(.phone-shots) figure { display: block }
  html[data-edition=album] .case-gallery .shots:not(.phone-shots) { grid-template-columns: 1fr }
}
