/* Approved shared two-column showreel and transparent video lightbox. */
.showreel.showreel-split {
  --split-reel-height: clamp(520px, 76svh, 760px);
  padding-block: var(--mu-section-space);
  background: var(--mu-ink, #111111);
  scroll-margin-top: 88px;
}

.showreel-split .showreel-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 5vw, 80px);
}

.showreel-split .showreel-split__copy {
  width: 100%;
  max-width: 490px;
}

.showreel-split .showreel-split__copy h2 {
  margin: 0;
  font: 600 var(--mu-section-size)/1.15 var(--mu-font);
  letter-spacing: -.025em;
}

.showreel-split .showreel-split__copy > p {
  margin: 24px 0 0;
  max-width: 43ch;
  color: var(--mu-body-muted);
  font: 400 var(--mu-body-size)/1.65 var(--mu-font);
}

.showreel-split .showreel-split__formats {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  color: var(--mu-white);
  font: 400 16px/1.5 var(--mu-font);
}

.showreel-split__formats li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showreel-split__formats li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: var(--mu-secondary, #FF8A4C);
}

.showreel-split .showreel-split__media {
  margin: 0 auto;
  width: calc(var(--split-reel-height) * 9 / 16);
  max-width: 100%;
  min-width: 0;
}
.showreel-split.is-viewing .showreel-split__media { visibility: hidden; }

.showreel-split__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}

.showreel-split .showreel-split__media video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.showreel-split__expand {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgb(17 17 17 / .8);
  color: #fff;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.showreel-split__expand[hidden] { display: none; }
.showreel-split__expand svg { transition: transform 160ms ease; }
.showreel-split__expand:hover,
.showreel-split__expand:focus-visible { color: #111; background: var(--mu-yellow); }
.showreel-split__expand:hover svg,
.showreel-split__expand:focus-visible svg { transform: scale(1.1); }
.showreel-split__expand:focus-visible,
.showreel-lightbox__close:focus-visible { outline: 3px solid var(--mu-secondary); outline-offset: 4px; }

.showreel-lightbox {
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mu-white);
}
.showreel-lightbox[open] { display: flex; flex-direction: column; gap: 16px; }
.showreel-lightbox::backdrop { background: rgb(0 0 0 / .45); }
.showreel-lightbox__toolbar {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.showreel-lightbox__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgb(17 17 17 / .8);
  color: #fff;
  cursor: pointer;
}
.showreel-lightbox__close:hover { background: var(--mu-yellow); color: #111; }
.showreel-lightbox__stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; }
.showreel-lightbox__stage video {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

@media (max-width: 900px) {
  .showreel.showreel-split { scroll-margin-top: 72px; }
  .showreel-split .showreel-split__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showreel-split .showreel-split__copy { max-width: 580px; }
  .showreel-split .showreel-split__copy > p { max-width: 55ch; }
  .showreel-split .showreel-split__formats {
    grid-template-columns: repeat(3, max-content);
    column-gap: 24px;
    font-size: 14px;
    margin-top: 24px;
  }
  .showreel-split .showreel-split__media { width: min(100%, 420px); }
  .showreel-split__expand { width: 48px; height: 48px; bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .showreel-split__expand,
  .showreel-split__expand svg { transition: none; }
  .showreel-split__expand:hover svg,
  .showreel-split__expand:focus-visible svg { transform: none; }
}

@media (max-width: 600px) {
  .showreel-split .showreel-split__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .showreel-split .showreel-split__copy > p { margin-top: 20px; }
  .showreel-split .showreel-split__grid { gap: 32px; }
}

@media (max-width: 600px), (max-height: 500px) {
  .showreel-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
}
