/* aftermovie.css - fullscreen video modal voor Vimeo/YouTube embed */

.cr-aftermovie {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.cr-aftermovie[data-cr-aftermovie="open"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.cr-aftermovie__stage {
  position: relative;
  background: #000;
  border: 3px solid var(--crotona-bolt, #ffd461);
  box-shadow: 8px 8px 0 var(--crotona-ink, #232522);
  /* default 9:16 (story-format aftermovies). Trigger-attr "data-cr-aftermovie-aspect=16-9" overruled. */
  width: min(94vw, 480px);
  aspect-ratio: 9/16;
  max-height: 92vh;
}

/* landscape variant - voor day-op-crotona recap of horizontale vids */
.cr-aftermovie--landscape .cr-aftermovie__stage {
  width: min(94vw, 1280px);
  aspect-ratio: 16/9;
  max-height: none;
}

.cr-aftermovie__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cr-aftermovie__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--crotona-bolt, #ffd461);
  color: var(--crotona-ink, #232522);
  border: 2.5px solid var(--crotona-ink, #232522);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.15s ease;
}
.cr-aftermovie__close:hover { transform: scale(1.1) rotate(8deg); }
.cr-aftermovie__close:focus-visible { outline: 3px solid var(--crotona-blush, #ffc4d6); outline-offset: 2px; }

body.cr-aftermovie-open { overflow: hidden; }
