/* De beamer en het scherm vormen samen een kleine On Set-bioscoop. */
.portfolio-cinema { position: relative; max-width: 1180px; margin: 30px auto 0; text-align: left; }
.portfolio-cinema-set { position: relative; aspect-ratio: 1.75; isolation: isolate; }
.portfolio-cinema-set::after { content: ''; position: absolute; width: 92%; height: 10%; left: 4%; bottom: 2%; background: radial-gradient(ellipse,#08615c2c,transparent 68%); filter: blur(12px); z-index: -1; }
.portfolio-cinema-projector { position: absolute; width: 32%; left: -2%; bottom: 5%; z-index: 3; filter: drop-shadow(0 18px 12px #033f3b25); transform: rotate(-3deg); transform-origin: 50% 90%; }
.portfolio-cinema-projector img { display: block; width: 100%; height: auto; }
.portfolio-cinema-beam { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6; transition: opacity .35s; }
.portfolio-cinema-beam svg { display: block; width: 100%; height: 100%; }
.portfolio-cinema-screen { position: absolute; top: 0; right: 0; width: 70%; transform: rotate(1deg); filter: drop-shadow(0 20px 15px #003b3524); z-index: 2; }
.portfolio-cinema-screen-art { width: 100%; height: auto; display: block; }
.portfolio-cinema-media { position: absolute; left: 7.222%; top: 9.286%; width: 85.556%; aspect-ratio: 16/9; border-radius: 1.4%; overflow: hidden; background: #042c29; isolation: isolate; }
.portfolio-cinema-media > img,.portfolio-cinema-media > video,.portfolio-cinema-youtube { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.portfolio-cinema-youtube iframe { display: block; width: 100%; height: 100%; border: 0; }
.portfolio-cinema-media [hidden] { display: none !important; }
.portfolio-cinema-grain { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .055; background: repeating-linear-gradient(0deg,#f3e2bd 0 1px,transparent 1px 4px); }
.portfolio-cinema.is-youtube .portfolio-cinema-grain { display: none; }
.portfolio-cinema-glitch { position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: 0; background: repeating-linear-gradient(0deg,transparent 0 11px,#f3e2bd60 11px 12px,transparent 12px 18px); }
.portfolio-cinema.is-glitching .portfolio-cinema-glitch { animation: cinema-glitch .15s steps(2,end); }
.portfolio-cinema.is-glitching .portfolio-cinema-beam { opacity: .25; }
.portfolio-cinema.is-paused .portfolio-cinema-beam { opacity: .28; }
.portfolio-cinema-info { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 12px; padding: 23px 26px; border: 1px solid #ffffffb0; background: linear-gradient(135deg,#ffffff50,#ffffff13); border-radius: 24px; backdrop-filter: blur(16px); box-shadow: 0 14px 32px #08615c12; }
.portfolio-cinema-info-main { min-width: 0; flex: 1; }
.portfolio-cinema-topline { display: flex; gap: 15px; align-items: center; margin: 0 0 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.portfolio-cinema-topline > span:first-child { color: var(--teal); }
.portfolio-cinema-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.portfolio-cinema-title { margin: 0; font-size: clamp(20px,2.1vw,30px); line-height: 1.15; letter-spacing: -.02em; }
.portfolio-cinema-status { font-size: 12px; margin: 8px 0 0; opacity: .75; }
.portfolio-cinema-watch { flex: 0 0 auto; min-height: 48px; padding: 13px 19px; border: 0; border-radius: 99px; background: var(--wine); color: var(--cream); font-size: 13px; transition: transform .25s,background .25s; }
.portfolio-cinema-watch:hover { background: var(--teal); transform: translateY(-2px); }
.portfolio-cinema-controls { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 22px; }
.portfolio-cinema-controls button { min-height: 44px; min-width: 44px; padding: 10px 18px; border: 1px solid #75002735; border-radius: 99px; color: var(--wine); background: #ffffff38; font-size: 13px; backdrop-filter: blur(14px); transition: background .2s,color .2s; }
.portfolio-cinema-controls button:hover { background: var(--wine); color: var(--cream); }
.portfolio-cinema-controls [data-cinema-toggle] { min-width: 150px; }
.portfolio-cinema-selections { display: flex; gap: 9px; justify-content: center; margin-top: 17px; }
.portfolio-cinema-selections button { position: relative; width: 76px; aspect-ratio: 16/9; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: var(--teal); transition: border-color .2s,transform .2s; }
.portfolio-cinema-selections button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portfolio-cinema-selections button[aria-pressed="true"] { border-color: var(--wine); transform: translateY(-3px); }
.portfolio-cinema-selections button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.portfolio-cinema-caption { margin: 17px 0 0; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; text-align: center; }
@keyframes cinema-glitch { 0%,100% { opacity: 0; transform: none; } 25% { opacity: .35; transform: translateX(2px); } 50% { opacity: .16; transform: translateX(-2px); } 75% { opacity: .28; transform: translateY(1px); } }
@media (max-width: 760px) {
  .portfolio-cinema { margin: 26px -4% 0; }
  .portfolio-cinema-set { aspect-ratio: 1.12; }
  .portfolio-cinema-screen { width: 96%; right: -1%; }
  .portfolio-cinema-projector { width: 34%; left: 0; bottom: 0; }
  .portfolio-cinema-beam { transform: scaleY(1.25); transform-origin: bottom; opacity: .33; }
  .portfolio-cinema-info { margin-top: 17px; padding: 19px; flex-wrap: wrap; gap: 15px; border-radius: 20px; }
  .portfolio-cinema-info-main { flex-basis: 100%; }
  .portfolio-cinema-title { font-size: 23px; }
  .portfolio-cinema-watch { width: 100%; text-align: center; }
  .portfolio-cinema-topline { gap: 9px; font-size: 9px; }
  .portfolio-cinema-controls { gap: 8px; margin-top: 18px; }
  .portfolio-cinema-controls button { padding: 10px 13px; font-size: 12px; }
  .portfolio-cinema-caption { font-size: 9px; line-height: 1.5; margin-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-cinema *, .portfolio-cinema *::before,.portfolio-cinema *::after { animation: none !important; transition: none !important; }
  .portfolio-cinema-glitch { display: none; }
}
