.facade-views {
  width: var(--edition-width, 88%);
  padding-block: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.facade-views [hidden] {
  display: none;
}

.facade-views h2 {
  margin-block: 0 clamp(.75rem, 2.2vw, 1.8rem);
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.2;
}

.facade-figure {
  margin: 0;
}

.facade-film-label {
  display: none;
}

.facade-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #252722;
  touch-action: pan-y pinch-zoom;
}

.facade-frame picture {
  position: absolute;
  inset: 0;
  background: inherit;
}
.facade-views[data-variant="interiors"] .facade-frame {
  aspect-ratio: 4 / 3;
  max-block-size: 74svh;
}

.facade-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.facade-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem clamp(1rem, 4.8vw, 4.8rem);
  padding-block: .72rem;
  border-block-end: 1px solid var(--line, #c8beb0);
}

.facade-tools,
.facade-arrows {
  display: flex;
  align-items: center;
}

.facade-tools {
  gap: clamp(.55rem, 1.4vw, 1.15rem);
}

.facade-arrows {
  gap: .45rem;
}

.facade-arrows button,
.facade-choices button,
.facade-play {
  min-inline-size: 44px;
  min-block-size: 44px;
}

.facade-arrows button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid #a69a86;
  border-radius: 50%;
  background: transparent;
  color: var(--ink, #272822);
  font: 1.02rem/1 Arial, sans-serif;
}

[dir="rtl"] .facade-arrows button span {
  transform: rotate(180deg);
}

.facade-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(.55rem, 1.6vw, 1.4rem);
}

.facade-choices button {
  position: relative;
  min-inline-size: 0;
  padding: .58rem 0 .75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #625e54);
  font-size: clamp(.78rem, 1vw, .9rem);
  line-height: 1.4;
  text-align: start;
  overflow-wrap: anywhere;
}

.facade-choices button::after {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: .35rem;
  inline-size: min(100%, 1.55rem);
  block-size: 1px;
  background: #897354;
  content: "";
  opacity: 0;
}

.facade-choices button[aria-pressed="true"] {
  color: var(--ink, #272822);
  font-weight: 650;
}

.facade-choices button[aria-pressed="true"]::after {
  opacity: 1;
}

.facade-position {
  white-space: nowrap;
  color: var(--muted, #625e54);
  font-size: .77rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.facade-position b {
  font-weight: 650;
  color: var(--ink, #272822);
}

.facade-views button:focus-visible {
  outline: 2px solid #9a784c;
  outline-offset: 3px;
}

@media (hover: hover) {
  .facade-arrows button:hover {
    border-color: #766349;
    background-color: #eae3d7;
  }
  .facade-choices button:hover,
  .facade-play:hover { color: var(--ink, #272822); }
  .facade-choices button:hover::after { opacity: .7; }
}

.facade-credit,
.facade-status {
  margin-block: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.facade-credit:not(:empty),
.facade-status[data-visible="true"] {
  margin-block-start: .62rem;
}

.facade-credit a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.facade-play {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #625e54);
  font-size: .8rem;
  line-height: 1.35;
  text-align: start;
}

.facade-play::before {
  flex: 0 0 .49rem;
  block-size: .58rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.facade-play[data-playing]::before {
  background: linear-gradient(to right, currentColor 34%, transparent 34% 66%, currentColor 66%);
  clip-path: none;
}

.facade-status:not([data-visible="true"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 850px) {
  .facade-controls { grid-template-columns: minmax(0, 1fr); gap: .38rem; }
  .facade-tools { justify-content: space-between; }
  .facade-position { margin-inline-start: auto; }
}

@media (max-width: 52rem) {
  .facade-frame,
  .facade-film-label {
    margin-inline: clamp(-1.35rem, -3vw, -.5rem);
  }

  .facade-film-label {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-block-size: 2.4rem;
    padding: .42rem .74rem;
    border-block-start: 1px solid #bda78649;
    background-color: #252722;
    color: #f1ebe0;
    font-size: .84rem;
    line-height: 1.33;
  }

  .facade-film-number {
    flex: none;
    padding-inline-end: .7rem;
    border-inline-end: 1px solid #bda78669;
    color: #d5c3a8;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
  }

  .facade-film-number b { color: #f8f3e9; }
  .facade-film-title { min-inline-size: 0; overflow-wrap: anywhere; }
  .facade-position { display: none; }
  .facade-choices { gap: .22rem .44rem; }

  .facade-choices button {
    min-inline-size: 44px;
    padding: .38rem .48rem .58rem;
    border-block-end: 1px solid var(--line, #c8beb0);
    font-size: .82rem;
  }

  .facade-choices button::after {
    inset-inline-start: .48rem;
    inset-block-end: .32rem;
  }

  .facade-choices button[aria-pressed="true"] { background-color: #e9e1d5; }

  .facade-play {
    padding: .32rem .7rem;
    border: 1px solid #a69a86;
    border-radius: 999px;
  }

  [dir="rtl"] .facade-play::before { transform: scaleX(-1); }
}

@media (max-width: 620px) {
  .facade-frame[data-portrait],
  .facade-views[data-variant="interiors"] .facade-frame[data-portrait] {
    aspect-ratio: var(--facade-portrait-ratio, 4 / 5);
    max-block-size: min(76svh, 39rem);
    background-color: transparent;
  }
  .facade-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .facade-frame picture[data-entered] { z-index: 1; animation: facade-reveal .65s ease-in-out both; }
  @keyframes facade-reveal { from { opacity: 0; } to { opacity: 1; } }
}
