/* Keep the artwork's colors and geometry while dissolving out of the Gallery. */
body[data-room="gallery"], .scene-gallery {
  --cue-ink: #42253b;
  --cue-red: #af422e;
  --cue-green: #bfcea6;
  --cue-paper: #eeefcf;
  --cue-page: min(100%, max(191svh, 57rem));
  --cue-header: var(--t700-mast-height);
}
body[data-room="gallery"] {
  background: var(--cue-green) var(--t700-image-celadon) repeat;
  color: var(--cue-ink);
  overflow-y: auto;
  overflow-x: clip;
}
body[data-room="gallery"][data-gallery-room] #main {
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  container-type: normal;
}
.scene.scene-gallery {
  position: relative;
  inset: auto;
  min-height: 100svh;
  overflow: clip;
  container-type: normal;
  background: #bfcea6 var(--t700-image-celadon) repeat;
}
.scene-gallery > .scene-backdrop { display: none; }
.scene-gallery > .scene-content { position: relative; inset: auto; }

.cue-gallery {
  --cue-max: min(1vw, 1.91svh);
  --cue-top: max(calc(var(--cue-header) + .65rem), clamp(4.8rem, 10.55svh, 9.5rem));
  --tab-height: clamp(3.75rem, 9.6svh, 8.6rem);
  --notch: clamp(.52rem, 1.4vw, 1.5rem);
  --page-edge: max(.75rem, 1.3%);
  --sheet-shape: polygon(0 4%, 1.8% .1%, 31% .3%, 63.2% 0, 98.2% .25%, 100% 4.2%, 99.94% 44%, 100% 93.7%, 98.1% 98.9%, 67.4% 99.26%, 25% 99.65%, .25% 100%, .06% 63%);
  position: relative;
  isolation: isolate;
  width: var(--cue-page, 100%);
  margin-inline: auto;
  padding: var(--cue-top) max(1.75rem, 2.82%) clamp(1.5rem, 2.5svh, 2.9rem) var(--page-edge);
  color: var(--cue-ink, #42253b);
}
.cue-gallery::before, .cue-gallery::after, .cue-sheet::before, .cue-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.cue-gallery::before, .cue-gallery::after {
  z-index: -1;
  inset: calc(var(--cue-top) + var(--tab-height) - .74rem) 1.22% .35rem 2.9%;
  clip-path: polygon(.15% 1%, 93% 0, 99% 1%, 100% 7%, 99.88% 96.1%, 98.8% 100%, 1.9% 99.7%, 0 95%);
  background: #4b2b42 var(--t700-image-plum);
}
.cue-gallery::after {
  inset: calc(var(--cue-top) + var(--tab-height) - 1.05rem) 1.85% .8rem 2.7%;
  background: #acbb82 var(--t700-image-celadon);
  box-shadow: inset 0 0 0 2px #54433b;
}
.cue-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
  grid-template-columns: 1.03fr 1.03fr .7fr .89fr 1.14fr;
  height: var(--tab-height);
  margin: 0 2.45% -2px 2.95%;
  isolation: isolate;
}
.cue-tab {
  --tab-outline: polygon(0 100%, 3.8% 30%, 11.4% 5.1%, 23% 4%, 76% 5.3%, 90.1% 4.4%, 97.1% 28%, 100% 99.65%);
  --tab-color: #cfdbb5;
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 88%;
  margin-left: -1px;
  padding: 1.5% 5.1% 0;
  color: var(--cue-ink);
  text-align: center;
  white-space: nowrap;
}
.cue-tab::before, .cue-tab::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  clip-path: var(--tab-outline);
  background: #493544 var(--t700-image-plum);
}
.cue-tab::after {
  z-index: -1;
  inset: max(1.5px, .12vw) max(1.25px, .12vw) max(1px, .09vw);
  background: linear-gradient(#edf2d3a0, #edf2d3a0), var(--tab-color) var(--t700-image-celadon);
}
.cue-tab:nth-child(2n)::after { background: linear-gradient(#edf2d378, #edf2d378), var(--tab-color) var(--t700-image-celadon); }
.cue-tab:nth-child(3n) { --tab-outline: polygon(0 100%, 2% 29%, 11% 6%, 55% 4.2%, 90% 5.4%, 97% 28%, 100% 100%); }
.cue-tab span {
  display: inline-block;
  font: 400 clamp(1.48rem, calc(3.46 * var(--cue-max)), 4.65rem)/1 var(--t700-display);
  transform: skewX(-5deg);
}
.cue-tab:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.cue-tab[aria-current="page"] {
  --tab-outline: polygon(0 100%, 3.2% 31%, 13% 0, 62% 1%, 88% 1.1%, 96.2% 24%, 100% 100%);
  z-index: 2;
  height: 100%;
  color: #fff4cd;
}
.cue-tab[aria-current="page"]::before, .cue-tab[aria-current="page"]::after {
  --tab-outline: polygon(0 calc(100% - var(--notch)), 3.5% 23.5%, 13% 0, 57% .9%, 88% .7%, 96.5% 21%, 100% calc(100% - var(--notch)), 59% calc(100% - var(--notch)), 50.3% 100%, 42% calc(100% - var(--notch)));
  bottom: calc(-1 * var(--notch));
}
.cue-tab[aria-current="page"]::after { background: #bb4c37 var(--t700-image-vermilion); bottom: calc(2px - var(--notch)); }
.cue-tab[aria-current="page"] span { font-size: clamp(1.7rem, calc(3.82 * var(--cue-max)), 5.15rem); }

.cue-sheet {
  position: relative;
  isolation: isolate;
  z-index: 1;
  padding: clamp(1.4rem, calc(2.8 * var(--cue-max)), 3.7rem) clamp(1.4rem, calc(2.3 * var(--cue-max)), 3.2rem) clamp(2rem, calc(2.25 * var(--cue-max)), 3.3rem);
}
.cue-sheet::before, .cue-sheet::after { clip-path: var(--sheet-shape); }
.cue-sheet::before { z-index: -2; inset: 0; background: #4b2b42 var(--t700-image-plum); }
.cue-sheet::after { z-index: -1; inset: max(1.45px, .12vw); background: var(--cue-paper) var(--t700-image-paper); }
.cue-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.21fr) minmax(0, 1fr);
  column-gap: clamp(1.1rem, calc(1.69 * var(--cue-max)), 2.35rem);
  align-items: stretch;
}
.cue-feature, .cue-notes { min-width: 0; }
.cue-feature { align-self: start; }
.cue-picture {
  --corner: clamp(.95rem, calc(1.84 * var(--cue-max)), 2.65rem);
  position: relative;
  display: block;
  margin: clamp(.42rem, calc(.74 * var(--cue-max)), .98rem) 2.05% 0;
  isolation: isolate;
}
.cue-picture::before {
  content: "";
  position: absolute;
  inset: calc(-.73 * var(--cue-max));
  background: var(--t700-image-registration) left top,
              var(--t700-image-registration-tr) right top,
              var(--t700-image-registration-br) right bottom,
              var(--t700-image-registration-bl) left bottom;
  background-size: var(--corner) var(--corner);
  background-repeat: no-repeat;
  pointer-events: none;
}
.cue-film-frame { aspect-ratio: 16 / 9; background: #211a21; }
.cue-film-frame > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.cue-notes {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 0 clamp(.2rem, .5vw, .8rem) 0 clamp(1.1rem, calc(2.05 * var(--cue-max)), 2.75rem);
}
.cue-notes::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: max(1.25px, .125vw);
  opacity: .58;
  background: var(--cue-ink);
  clip-path: polygon(0 0, 85% .2%, 70% 16%, 100% 59%, 75% 99.85%, 0 100%, 18% 64%);
}
.cue-kicker, .cue-text-link, .cue-view-link, .cue-runtime {
  font: 500 clamp(1.1rem, calc(1.94 * var(--cue-max)), 2.62rem)/1.18 var(--t700-label);
}
.cue-kicker, .cue-text-link, .cue-view-link { font-style: italic; }
.cue-kicker {
  margin: 0;
  padding: .22em 0 .32em;
  border-bottom: max(1px, .095vw) solid #785f7580;
}
.cue-title {
  margin: .13em 0 .17em;
  font: 400 clamp(3.6rem, calc(6.55 * var(--cue-max)), 8.6rem)/.89 var(--t700-display);
  transform: skewX(-6deg);
  transform-origin: bottom left;
  overflow-wrap: anywhere;
}
.cue-gallery[data-collection="video"] .cue-title {
  margin: .11em 0 .115em;
  font-size: clamp(5.7rem, calc(9.7 * var(--cue-max)), 13.1rem);
  line-height: .775;
}
.cue-runtime {
  display: inline-flex;
  align-items: center;
  gap: .44em;
  margin: 0;
  padding: .22em .05em .5em;
  border-bottom: max(1px, .095vw) solid #785f7580;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.cue-runtime svg { width: 1.12em; height: 1.12em; }
.cue-story { display: block; margin: auto 0 0; padding: clamp(.9rem, 2.2svh, 2.3rem) 0 .15em; }
.cue-story-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .27em; margin-bottom: clamp(.6rem, 1.25vw, 1.65rem); }
.cue-story-strip img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  border: max(1px, .12vw) solid #503143;
}
.cue-text-link, .cue-view-link {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .21em;
  text-decoration-skip-ink: none;
}
.cue-text-link:hover, .cue-view-link:hover, .cue-story:hover .cue-text-link { color: #913e31; }
.cue-gallery :focus-visible, .cue-reader :focus-visible {
  outline: 3px dashed #7f2d32;
  outline-offset: 4px;
}
.cue-tab:focus-visible { outline-offset: -6px; }

.cue-work-frame {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  aspect-ratio: 16 / 9;
  background-color: #fffdf04d;
}
.cue-print-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  container-type: size;
}
.cue-print {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  width: 100%;
  cursor: zoom-in;
}
.cue-work-frame[data-spread] .cue-print {
  flex: var(--print-ratio) 1 0;
  max-width: calc(100cqh * var(--print-ratio));
}
.cue-work {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
}
.cue-print-caption {
  color: #4c3b46;
  font: 400 clamp(.82rem, .9vw, 1.02rem)/1.35 var(--t700-body, sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cue-work-frame .cue-print:focus-visible { outline-offset: -3px; }
.cue-work-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin: clamp(.9rem, 1.6vw, 2.25rem) 2.05% 0;
}
.cue-work-actions :is(button, a) { padding: .26em 0; }
.cue-inline-flip[hidden] { display: none; }
.cue-thumbs {
  display: grid;
  align-content: start;
  gap: clamp(.55rem, .86vw, 1.3rem);
  margin-top: auto;
  padding-top: clamp(.7rem, 1vw, 1.5rem);
}
.cue-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: center;
  gap: clamp(.6rem, 1.25vw, 1.6rem);
  padding: .3em .48em .3em .61em;
  border: 1px solid transparent;
  border-bottom-color: #806b7054;
  text-align: start;
  font: 500 clamp(.96rem, calc(1.41 * var(--cue-max)), 1.95rem)/1.22 var(--t700-label);
}
.cue-thumb img {
  width: 100%;
  aspect-ratio: 1.95;
  object-fit: contain;
  border: 1px solid #6c586866;
  background: #faf8e5;
}
.cue-gallery[data-collection="photos"] .cue-thumb img { object-fit: cover; }
.cue-thumb:hover { background: #bfcea65c; }
.cue-thumb[aria-pressed="true"] {
  border-color: #7752686b;
  border-radius: .36rem .15rem .48rem .07rem / .1rem .27rem .12rem .25rem;
  background: #c8d4ad90;
}
.cue-thumb[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: max(4px, .22em);
  background: #99452f var(--t700-image-vermilion);
  clip-path: polygon(0 2%, 86% 0, 65% 45%, 100% 100%, 8% 98%);
}
.cue-reader {
  --cue-ink: #42253b;
  width: min(92vw, 75rem);
  max-width: 100%;
  max-height: 94dvh;
  overflow: auto;
  margin: auto;
  padding: clamp(.9rem, 1.5vw, 2.25rem);
  border: 2px solid var(--cue-ink);
  border-radius: .53rem .16rem .8rem .22rem / .17rem .44rem .23rem .37rem;
  background: #eeefcf var(--t700-image-paper);
  color: var(--cue-ink);
  box-shadow: 4px 5px 0 #44283a;
}
.cue-reader::backdrop { background: #241b27c7; }
.cue-reader-head, .cue-reader-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.cue-reader-head { margin-bottom: .8rem; }
.cue-reader-head h2 { font: 400 clamp(2rem, 3.4vw, 4.4rem)/1 var(--t700-display); }
.cue-reader :is(button, .cue-reader-tools a) {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: .4rem .9rem;
  font: 500 1rem/1.25 var(--t700-label);
}
.cue-reader-head button { color: #fff1cf; background: #4b2b42 var(--t700-image-plum); }
.cue-reader-tools {
  justify-content: center;
  margin-top: .7rem;
}
.cue-reader-tools :is(a, button) { border: 1.5px solid currentColor; }
.cue-reader-tools :is(a, button):hover { background: #c3d0a4; }
.cue-reader .cue-transport :is(button, input) { min-height: 0; }
.cue-reader-mat {
  overflow: auto;
  overscroll-behavior: contain;
  background: #faf8e5;
  border: 1px solid #81667a88;
}
.cue-reader-mat img {
  display: block;
  width: 100%;
  height: min(68dvh, 52rem);
  object-fit: contain;
}
.cue-reader-mat.is-enlarged { height: min(68dvh, 52rem); }
.cue-reader-mat.is-enlarged img {
  display: block;
  width: max-content;
  max-width: none;
  min-width: 130%;
  height: auto;
}
.cue-reader-mat:has(.cue-player) { padding: 1rem; }

@media (max-width: 900px) {
  .cue-kicker, .cue-text-link, .cue-view-link, .cue-runtime { font-size: clamp(1.05rem, 2.25vw, 1.4rem); }
  .cue-title { font-size: clamp(3rem, 7vw, 4rem); }
  .cue-gallery[data-collection="video"] .cue-title { font-size: clamp(4rem, 9.6vw, 5.8rem); }
}
@media (max-width: 700px), (max-width: 900px) and (max-aspect-ratio: 1/1) {
  .cue-gallery {
    --cue-top: calc(var(--cue-header) + .8rem);
    --tab-height: 4rem;
    --notch: .53rem;
    --sheet-shape: polygon(0 1rem, .85rem 0, 44% .075rem, calc(100% - .85rem) 0, 100% 1rem, 99.8% 48%, 100% calc(100% - 1rem), calc(100% - .85rem) 99.7%, .13rem 100%, 0 65%);
    padding: var(--cue-top) .92rem 1.15rem .55rem;
  }
  .cue-tabs {
    display: flex;
    align-items: flex-end;
    height: var(--tab-height);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #817c64 transparent;
    margin: 0 .55rem -.53rem .55rem;
    padding: .15rem .15rem .52rem;
  }
  .cue-tab {
    flex: 1 0 auto;
    width: auto;
    height: 81%;
    padding: .2rem 1.04rem 0;
  }
  .cue-tab[aria-current="page"] { height: 100%; }
  .cue-tab span { font-size: 1.57rem; }
  .cue-tab[aria-current="page"] span { font-size: 1.75rem; }
  .cue-gallery::before { inset: calc(var(--cue-top) + var(--tab-height) - 1.1rem) .22rem .15rem .98rem; }
  .cue-gallery::after { inset: calc(var(--cue-top) + var(--tab-height) - 1.2rem) .5rem .5rem .85rem; }
  .cue-sheet { padding: 1.55rem 1.05rem 1.95rem; }
  .cue-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .cue-picture { --corner: 1.1rem; margin: .25rem .35rem 0; }
  .cue-picture::before { inset: -.35rem; }
  .cue-notes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .7rem;
    align-items: center;
    padding: 0 .15rem;
  }
  .cue-notes::before { display: none; }
  .cue-kicker { grid-column: 1 / -1; padding: .25em 0 .4em; }
  .cue-title { margin: .18em 0 .25em; font-size: clamp(2.5rem, 9vw, 3.9rem); }
  .cue-gallery[data-collection="video"] .cue-title { margin: .17em 0 .28em; font-size: clamp(3.2rem, 11vw, 5rem); line-height: .9; }
  .cue-film-break { display: none; }
  .cue-runtime { justify-self: end; padding: .1em; border: 0; }
  .cue-story {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: .9rem;
    margin: 0;
    padding: .85rem 0 .25rem;
    border-top: 1px solid #785f7580;
  }
  .cue-story-strip { width: 100%; margin: 0; gap: .12em; }
  .cue-story-strip img { aspect-ratio: 1.3; }
  .cue-text-link, .cue-view-link { font-size: 1.07rem; }
  .cue-thumbs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(4.8rem, 1fr));
    align-items: stretch;
    gap: .38rem;
    margin-top: .1rem;
    padding: .35rem 0 0;
  }
  .cue-thumb { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; justify-content: start; padding: .36rem; font-size: .94rem; }
  .cue-thumb img { aspect-ratio: 1.55; }
  .cue-work-actions { margin: .65rem .35rem 0; }
  .cue-reader { width: 96vw; padding: .66rem; }
}
@media (max-width: 365px) {
  .cue-notes { column-gap: .4rem; }
  .cue-gallery[data-collection="video"] .cue-title { font-size: 2.8rem; }
}
@media (min-width: 701px) and (max-height: 525px) {
  .cue-gallery { --cue-top: calc(var(--cue-header) + .55rem); --tab-height: 3.55rem; }
  .cue-kicker, .cue-text-link, .cue-view-link, .cue-runtime { font-size: 1rem; }
  .cue-gallery[data-collection="video"] .cue-title { font-size: clamp(4rem, 8.5vh, 5.5rem); }
  .cue-sheet { padding-top: 1.5rem; }
}
/* The embedded site fonts omit the diagonal link glyph; ink its two strokes. */
.cue-text-link > span[aria-hidden] {
  display: inline-block;
  position: relative;
  vertical-align: .015em;
  width: .59em;
  height: .59em;
  margin-left: .14em;
  overflow: hidden;
  color: transparent;
  text-indent: 2em;
}
.cue-text-link > span[aria-hidden]::before,
.cue-text-link > span[aria-hidden]::after {
  content: "";
  position: absolute;
  color: var(--cue-ink);
}
.cue-text-link > span[aria-hidden]::before {
  top: 0;
  right: 0;
  width: 65%;
  height: 60%;
  border: solid currentColor;
  border-width: .085em .085em 0 0;
}
.cue-text-link > span[aria-hidden]::after {
  left: -11%;
  top: 45%;
  width: 124%;
  height: .08em;
  transform: rotate(-45deg);
  background: currentColor;
}
.cue-tabs.cue-flex-tabs { display:flex; overflow-x:auto; align-items:flex-end; }
.cue-flex-tabs .cue-tab { flex:1 0 auto; min-width:7rem; }
.cue-notes .cue-thumbs { overflow-y:auto; min-height:0; }
.cue-runtime[hidden] { display:none; }
@media (max-width: 700px) { .cue-notes .cue-thumbs { max-height:38vh; } }

.cue-layout.cue-empty-layout { display: grid; place-content: center; text-align: center; min-height: min(49vh, 27rem); }
.cue-empty-note { max-width: 36rem; padding: 1rem; }
.cue-empty-note .cue-title { margin: 0; }
.cue-empty-note p { margin: .7rem 0 1rem; font-family: var(--t700-body); }
.cue-story-strip:has(> :only-child) { grid-template-columns: 1fr; }

.cue-image-caption {
  margin: .72rem 2.05% 0;
  color: #4c3b46;
  font: 400 clamp(.92rem, 1.05vw, 1.2rem)/1.45 var(--t700-body, sans-serif);
  overflow-wrap: anywhere;
}
.cue-image-caption:not([hidden]) + .cue-work-actions { margin-top: .45rem; }
.cue-reader .cue-image-caption { margin-inline: 0; }
.cue-reader [data-image-flip][hidden] { display: none; }

.cue-image-pager {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--cue-ink);
  border-radius: .22rem .13rem .27rem .18rem;
  color: var(--cue-ink);
  background: #e2e6c4 var(--t700-image-paper);
  font: 500 clamp(.98rem, 1.25vw, 1.35rem)/1.1 var(--t700-label);
  font-variant-numeric: tabular-nums;
}
.cue-image-pager[data-all-visible] { min-height: 2.75rem; }
.cue-image-pager[data-all-visible] button { display: none; }
.cue-image-count { padding: 0 .85em; white-space: nowrap; }
.cue-image-pager button, .cue-reader .cue-image-pager button {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: .45rem;
  place-items: center;
  border: 0;
  color: inherit;
}
.cue-image-pager button:first-child { border-inline-end: 1px solid #785f7570; }
.cue-image-pager button:last-child { border-inline-start: 1px solid #785f7570; }
.cue-image-pager button[aria-disabled="false"]:hover { background: #becba3; }
.cue-image-pager button[aria-disabled="true"] { background: transparent; }
.cue-image-pager button span {
  width: .57rem;
  height: .57rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.cue-image-pager button:first-child span { transform: rotate(135deg); }
