/* Editorial viewing room. Keep these selectors separate from album/image rules. */
.editorial .room {
  --room-paper: #f4f3ef;
  --room-ink: #242821;
  --room-muted: #62675c;
  --room-height: calc(100svh - var(--room-header, 72px));
  position: relative;
  color: var(--room-ink);
  background: var(--room-paper);
  isolation: isolate;
  min-width: 0;
}
.room-stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 22px; min-height: var(--room-height); padding: 24px clamp(24px, 4.5vw, 88px) 22px; }
.room-masthead { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid rgb(36 40 33 / .2); }
.room-identity { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.room-identity p { margin: 0; font: 400 clamp(.9rem, 1.5vw, 1.25rem)/1.2 'Times New Roman', 'Noto Serif', serif; letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
.room-identity h2 { margin: 0; font: .625rem/1.5 var(--mono, monospace); letter-spacing: .08em; color: var(--room-muted); white-space: nowrap; }
.room-skip, .room-scroll { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: .75rem; }
.room-skip { flex: none; }
.room :is(.room-skip, .room-open) svg { flex: none; width: 18px; height: 18px; }
.room-scenes { position: relative; display: grid; gap: clamp(64px, 10vw, 160px); min-width: 0; }
.room-slide { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 100px); align-items: center; min-width: 0; min-height: min(680px, 80svh); padding-block: 32px; }
.room-backdrop { position: absolute; z-index: -1; inset: -90px calc(-1 * clamp(24px, 4.5vw, 88px)); overflow: hidden; pointer-events: none; opacity: .65; }
.room .room-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: blur(8px) saturate(.95); transform: scale(1.12); transition: none; }
.room .room-backdrop img[data-room-source] { filter: none; }
.room-backdrop::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, var(--room-paper) 4%, rgb(244 243 239 / .9) 22%, rgb(244 243 239 / .42) 44%, rgb(244 243 239 / .02) 85%), linear-gradient(0deg, var(--room-paper), transparent 18%, transparent 82%, var(--room-paper)); }
.room-copy { position: relative; z-index: 1; min-width: 0; max-width: 510px; }
.room-category { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; font: .625rem/1.6 var(--mono, monospace); letter-spacing: .09em; text-transform: uppercase; overflow-wrap: anywhere; }
.room-category > span { flex: none; padding-right: 16px; border-right: 1px solid rgb(36 40 33 / .3); font-variant-numeric: tabular-nums; }
.room-name { margin: 0; font: 400 clamp(2.75rem, 5.5vw, 6.25rem)/1.06 'Times New Roman', 'Noto Serif', serif; font-kerning: normal; letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance; }
.room-story { max-width: 32ch; margin: 24px 0 0; font-size: clamp(.8125rem, 1vw, .9375rem); line-height: 1.7; color: var(--room-muted); overflow-wrap: anywhere; }
.room-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 48px; padding: 8px 0; margin-top: 28px; border: 0; border-bottom: 1px solid rgb(36 40 33 / .45); background: transparent; color: inherit; font: inherit; font-size: .75rem; cursor: pointer; }
.room .room-picture { position: relative; z-index: 1; justify-self: center; width: 100%; min-width: 0; margin: 0; aspect-ratio: var(--room-ratio); border-radius: clamp(12px, 2vw, 28px); overflow: hidden; background: #e9e9e1; box-shadow: 0 22px 40px -18px rgb(40 48 34 / .45), 0 3px 8px rgb(40 48 34 / .12); }
.room .room-picture > img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; max-height: none; object-fit: contain; object-position: center; }
.room .room-picture > .media-load-signal { display: none; }
.room-footer { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; min-height: 44px; border-top: 1px solid rgb(36 40 33 / .2); padding-top: 8px; }
.room-count { display: flex; gap: 12px; font: .6875rem/1.4 var(--mono, monospace); font-variant-numeric: tabular-nums; }
.room-count > :last-child { color: var(--room-muted); }
.room-progress { height: 1px; flex: 1; background: rgb(36 40 33 / .16); overflow: hidden; }
.room-progress > span { display: block; height: 100%; background: var(--room-ink); transform: scaleX(0); transform-origin: left; }
.room-scroll { flex: none; font-size: .6875rem; }
.room-scroll > span { font-size: 1.2rem; }
.room.is-enhanced { height: var(--room-runway); }
.room.is-enhanced .room-stage { position: sticky; top: var(--room-header, 72px); height: var(--room-height); min-height: 0; overflow: clip; }
.room.is-enhanced .room-scenes { display: block; min-height: 0; }
.room.is-enhanced .room-slide { position: absolute; inset: 0; min-height: 0; height: 100%; padding-block: 0; }
.room.is-enhanced .room-picture { width: min(100%, calc(var(--room-picture-height) * var(--room-ratio))); max-height: 100%; }
.room.is-enhanced .room-backdrop { inset-block: -110px; }
.motion-lite .room .room-backdrop img { filter: none; }
.motion-lite .room .room-picture { box-shadow: 0 8px 20px -12px rgb(40 48 34 / .3); }
.room.is-static .room-progress, .room.is-static .room-count { display: none; }
.room.is-static .room-footer { justify-content: flex-end; }
.room :is(a, button):focus-visible { outline: 2px solid var(--room-ink); outline-offset: 6px; }
.room :is(a, button):active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .room :is(.room-open, .room-skip):hover { color: #586542; } }
/* Laptop windows and browser zoom reduce height before they reduce width.
   Fit the scene before deciding that native document flow is necessary. */
@media (min-width: 761px) and (max-height: 700px) {
  .room-stage { padding-block: 14px 12px; gap: 12px; }
  .room-masthead { padding-bottom: 8px; }
  .room-category { margin-bottom: 12px; }
  .room-name { font-size: clamp(2rem, min(5vw, 9svh), 4rem); }
  .room-story { margin-top: 12px; font-size: .8125rem; line-height: 1.55; }
  .room-open { margin-top: 12px; min-height: 44px; }
  .room-footer { min-height: 36px; padding-top: 4px; }
}
@media (max-width: 760px) {
  .room-stage { padding: 16px 20px 12px; gap: 14px; }
  .room-masthead { gap: 12px; padding-bottom: 8px; }
  .room-identity { display: grid; gap: 4px; }
  .room-identity p { font-size: .9375rem; }
  .room-identity h2 { font-size: .5625rem; }
  .room-skip { font-size: .6875rem; gap: 10px; }
  .room-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: 22px; min-height: 0; }
  .room.is-enhanced .room-slide { grid-template-rows: var(--room-copy-height) minmax(0, 1fr); }
  .room-copy { max-width: 100%; }
  .room-category { margin-bottom: 12px; gap: 10px; font-size: .5625rem; }
  .room-category > span { padding-right: 10px; }
  .room-name { max-width: 16ch; font-size: clamp(2rem, 8.5vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; }
  .room-story { max-width: 40ch; margin-top: 12px; font-size: .75rem; line-height: 1.55; }
  .room-open { min-height: 44px; margin-top: 10px; gap: 26px; font-size: .6875rem; }
  .room .room-picture { align-self: center; max-width: 540px; border-radius: 16px; }
  .room-backdrop { inset-inline: -20px; opacity: .5; }
  .room-backdrop::after { background: linear-gradient(180deg, var(--room-paper), rgb(244 243 239 / .9) 20%, rgb(244 243 239 / .18) 65%, var(--room-paper)); }
  .room-footer { gap: 18px; padding-top: 4px; }
  .room-scroll { font-size: .625rem; }
  .room-count { font-size: .625rem; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .room :is(a, button):active { transform: none; } }
