/* Preserve portrait and landscape photographs in the reading layouts. */
.read-still img, .note-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 32rem);
  aspect-ratio: auto;
  object-fit: contain;
}
.note-image > div { aspect-ratio: auto; }
.project-image img[src$="/display-wall.webp"] { object-position: 50% 34%; }
.project-image img[src$="/infinitymint-terminal.webp"] { object-position: 50% 62%; }
.project-image img[src$="/flowering-bonsai.webp"] { object-position: 50% 49%; }
.project-image img[src$="/civicline-home.webp"] { object-position: center top; }
.era-art[src$="/joshua-red-jacket.webp"] { object-position: 50% 23%; }
.era-art[src$="/agency-display.webp"] { object-position: 50% 52%; }

[data-vimeo-film] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #101214;
}
.scene-film { margin-top: .8rem; pointer-events: auto; }
.scene-film summary { width: fit-content; padding: .45rem 0; cursor: pointer; text-decoration: underline; }
.scene-film:not([open]) summary span:last-child, .scene-film[open] summary span:first-child { display: none; }
.scene-film[open] summary { margin-bottom: .4rem; }
.scene-film .film-credit { display: block; margin-top: .4rem; font: 1rem/1.3 var(--mono); color: var(--muted); }

.tap-trailers { background: var(--surface); color: var(--ink); }
.tap-trailers iframe {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  min-height: 200px; border: 0; background: #101214;
}
.tap-trailers ol { margin: 0; padding: 0; list-style: none; }
.tap-trailers li + li { border-top: 1px solid var(--rule); }
.tap-trailers li a {
  display: block; padding: .65rem .9rem; border-left: 3px solid transparent;
  font: 1rem/1.4 var(--sans); color: inherit; text-decoration: none;
}
.tap-trailers li a[aria-current] { border-left-color: var(--rust); font-weight: 700; }
.tap-trailers li a:hover, .tap-trailers li a:focus-visible { text-decoration: underline; }
.tap-trailers .trailer-source {
  display: inline-block; padding: .5rem .9rem .7rem; color: var(--muted);
  font: .9rem/1.4 var(--sans); text-decoration: underline;
}

.project-image:has(.ybr-mark) { background: #131820; }
.project-image .ybr-mark {
  width: 100%; height: 100%; box-sizing: border-box; padding: 1rem;
  object-fit: contain; background: #131820;
}

.read-layout article:has(.bonsai-carousel) { min-width: 0; }
.bonsai-carousel { margin: 1.6rem 0 0; border: 1px solid var(--rule); background: var(--surface); }
.bonsai-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.bonsai-track figure { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.bonsai-track img {
  display: block; width: 100%; height: clamp(15rem, 48vh, 29rem); object-fit: contain; background: var(--paper);
}
.bonsai-track figcaption { padding: .7rem .85rem; color: var(--ink); font: 1.2rem/1.1 var(--mono); }
.bonsai-tools {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .45rem .6rem;
  border-top: 1px solid var(--rule); color: var(--muted); font: 1.1rem/1 var(--mono);
}
.bonsai-tools button { background: transparent; }
.bonsai-tools button:hover, .skyline-settings button:hover { border-color: var(--rust); }
