/* Additions on top of Wix's own rules (wix.css): the parts Wix drew with its scripts. */

[data-ja-hidden] { visibility: hidden !important; pointer-events: none !important; }

/* Menu, timed against the live site: the links appear at once, the dark backdrop fades in over
   0.5s (slow start). Closing fades the backdrop out the same way, then the links disappear. */
#comp-kd5px9q0_r_comp-kd5px9hr { transition: opacity 0s linear .5s, visibility 0s linear .5s; }
#comp-kd5px9q0_r_comp-kd5px9hr.Wy7QN0 { transition: none; }
#comp-kd5px9q0_r_comp-kd5px9hr .KyTZlx { transition: opacity .5s cubic-bezier(.55, .055, .675, .19); }
#comp-kd5px9q0_r_comp-kd5px9hr.Wy7QN0 .KyTZlx { opacity: 1; }

/* Reel: idle look of Wix's video player (poster, 25% shade, 80px play circle). */
.ja-player { position: absolute; inset: 0; overflow: hidden; background: #000; cursor: pointer; }
.ja-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ja-player__cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); }
.ja-player__play { width: 80px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .2s; }
.ja-player__play svg { display: block; width: 100%; height: 100%; }
.ja-player__play:hover { opacity: .7; }
.ja-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.ja-player.is-playing .ja-player__cover, .ja-player.is-playing .ja-player__poster { display: none; }

/* "Click here to watch" popups. Sizes measured on the live site. */
.ja-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.ja-popup[hidden] { display: none; }
.ja-popup.is-open { opacity: 1; }
.ja-popup__shade { position: absolute; inset: 0; background: rgba(19, 21, 20, .6); }
.ja-popup__box { position: relative; width: 869px; height: 400px; max-width: 100vw; background: #000; overflow: hidden; }
.ja-popup__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ja-popup__play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; padding: 0; border: 0; background: none; opacity: .8; cursor: pointer; transition: opacity .2s; }
.ja-popup__play:hover { opacity: 1; }
.ja-popup__play svg { display: block; width: 100%; height: 100%; }
.ja-popup.is-playing .ja-popup__play { display: none; }
.ja-popup__sound { position: absolute; right: 2px; bottom: 2px; width: 66px; height: 44px; padding: 7px 18px; border: 0; background: none; cursor: pointer; }
.ja-popup__sound svg { width: 30px; height: 30px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .4)); }
.ja-popup__sound .ja-on { display: none; }
.ja-popup.is-unmuted .ja-popup__sound .ja-on { display: block; }
.ja-popup.is-unmuted .ja-popup__sound .ja-off { display: none; }
.ja-popup__close {
  position: absolute; top: 14px; right: 11px; width: 142px; height: 40px; z-index: 2;
  background: #000; border: 1px solid #fff; border-radius: 0; color: #fff; cursor: pointer;
  font: 300 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ja-popup__close:hover { opacity: .9; }
.ja-popup__close { display: flex; align-items: center; justify-content: center; padding: 0; }

/* Tablet (751–1000px) and phone (≤750px) popup layouts, measured on the live site. */
@media screen and (max-width: 1000px) {
  .ja-popup__box { width: 350px; height: 350px; }
  .ja-popup__close { width: 57px; height: 35px; top: 9px; right: 7px; }
}
@media screen and (max-width: 750px) {
  .ja-popup__box { width: 280px; height: 280px; }
  .ja-popup__close { width: 46px; height: 28px; top: 4px; right: 3px; }
}

/* Header fades to its dark "scrolled" colour (0.3s, from Wix's settings for this header). */
#comp-kbgakxea_r_comp-kbgajy18,
#comp-kbgakxea_r_comp-kbgajy18 > .QG9w8P .LNYVZi { transition: background-color .3s ease; }

/* Popup full-screen button: sits left of the sound button, same look. */
.ja-popup__full { position: absolute; right: 68px; bottom: 2px; width: 44px; height: 44px; padding: 11px; border: 0; background: none; cursor: pointer; opacity: .9; transition: opacity .2s; }
.ja-popup__full:hover { opacity: 1; }
.ja-popup__full svg, .ja-popup__exit svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
.ja-popup__exit { display: none; }

/* In full screen: the film fills the screen (whole frame visible), the X sits top right,
   and the X + sound button fade away when the viewer stops moving. Written twice because
   older Safari only knows the -webkit- name, and one unknown name would cancel the whole rule. */
.ja-popup__box:fullscreen { width: 100vw; height: 100vh; max-width: none; }
.ja-popup__box:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; }
.ja-popup__box:fullscreen .ja-popup__video { object-fit: contain; }
.ja-popup__box:-webkit-full-screen .ja-popup__video { object-fit: contain; }
.ja-popup__box:fullscreen .ja-popup__close, .ja-popup__box:fullscreen .ja-popup__full { display: none; }
.ja-popup__box:-webkit-full-screen .ja-popup__close, .ja-popup__box:-webkit-full-screen .ja-popup__full { display: none; }
.ja-popup__box:fullscreen .ja-popup__exit { display: block; }
.ja-popup__box:-webkit-full-screen .ja-popup__exit { display: block; }
.ja-popup__exit {
  position: absolute; top: 24px; right: 24px; z-index: 3; width: 48px; height: 48px; padding: 12px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); cursor: pointer; transition: opacity .4s ease, background-color .2s;
}
.ja-popup__exit:hover { background: rgba(0, 0, 0, .7); }
.ja-popup__sound { transition: opacity .4s ease; }
.ja-popup__box.is-idle .ja-popup__exit, .ja-popup__box.is-idle .ja-popup__sound { opacity: 0; pointer-events: none; }
.ja-popup__box.is-idle { cursor: none; }
@media screen and (max-width: 750px) {
  .ja-popup__exit { top: 16px; right: 16px; }
}

/* YouTube / Vimeo videos ----------------------------------------------------------------- */
/* Background: silent looping player, cropped to fill, faded in once it's showing a picture. */
.ja-bgframe { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.ja-bgframe.is-on { opacity: 1; }
.ja-bgframe iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; }

/* Reel */
.ja-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Popups: the still sits underneath, the player on top of it once it loads. */
.ja-popup__poster { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.ja-popup__frame { position: absolute; inset: 0; z-index: 1; }
.ja-popup__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ja-popup.is-previewing .ja-popup__frame { pointer-events: none; }
.ja-popup--embed .ja-popup__play, .ja-popup--embed .ja-popup__full, .ja-popup--embed .ja-popup__close { z-index: 2; }
.ja-popup--embed .ja-popup__sound { display: none; }
/* The YouTube/Vimeo controls run along the bottom, so our full-screen button moves up beside Close. */
.ja-popup--embed .ja-popup__full { top: 12px; bottom: auto; right: 159px; }
@media screen and (max-width: 1000px) { .ja-popup--embed .ja-popup__full { top: 4px; right: 68px; } }
@media screen and (max-width: 750px) { .ja-popup--embed .ja-popup__full { top: -4px; right: 52px; } }
.ja-popup--embed.is-playing .ja-popup__full { opacity: .75; }

/* Full screen over a YouTube/Vimeo player: the page can't see the mouse over the player,
   so moving into the top-right corner wakes the X. */
.ja-popup__exitzone { display: none; }
.ja-popup__box:fullscreen .ja-popup__exitzone { display: block; position: absolute; top: 0; right: 0; width: 180px; height: 140px; z-index: 2; }
.ja-popup__box:-webkit-full-screen .ja-popup__exitzone { display: block; position: absolute; top: 0; right: 0; width: 180px; height: 140px; z-index: 2; }
.ja-popup__frame { overflow: hidden; opacity: 0; transition: opacity .5s ease; }
.ja-popup__frame.is-on { opacity: 1; }
.ja-popup__frame iframe.is-cover { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ja-popup__box:fullscreen .ja-popup__frame iframe.is-cover { width: 100% !important; height: 100% !important; }

/* iPhone view: black, fills the whole screen and follows the phone's rotation; the phone's own
   full-screen player opens on top of it. Only the X shows (top right, clear of the notch). */
.ja-popup.is-phone .ja-popup__box { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; }
.ja-popup.is-phone .ja-popup__video { object-fit: contain; }
.ja-popup.is-phone .ja-popup__close, .ja-popup.is-phone .ja-popup__full,
.ja-popup.is-phone .ja-popup__sound, .ja-popup.is-phone .ja-popup__play, .ja-popup.is-phone .ja-popup__poster { display: none; }
.ja-popup.is-phone .ja-popup__frame { opacity: 1; }
.ja-popup.is-phone .ja-popup__exit {
  display: block; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); z-index: 3;
}

/* Fix (Wix bug on phones): Wix pulls the Watch cards 40% of the screen width below the end of their section
   (a negative bottom margin), so the Development section covered the end of the Marrying Jake Gyllenhaal card,
   including its "Click here to watch" link. The cards stay exactly where Wix puts them; the section just grows by
   the hidden amount (plus 40px of space), so the whole card shows. */
@media screen and (max-width: 750px) {
  #comp-mmo1lvyg .comp-mmo1lvyg-container { padding-bottom: calc(0.3994709 * (var(--scaling-factor) - var(--scrollbar-width)) + 40px) !important; }
}

/* Sections stack in page order, so the editor can add, remove and reorder them (Wix pinned each to a fixed row). */
#PAGE_SECTIONSc1dmp>section,#PAGE_SECTIONSc1dmp>*>section{grid-area:auto!important}
/* …and the footer comes after the last of them, however many there are (Wix pinned it to the 12th row). */
#comp-kbgakxmn{grid-area:auto!important}

/* Photo rows with another number of photos side by side than Wix's 5 (Front end → Set photos / Photo row): each
   photo takes its share of the row and keeps its shape (components/wix/wix-render.tsx sets --ja-n and --ja-h). */
[data-ja-n]>[role=listitem]{
  width:calc(100% / var(--ja-n) - max(0.5px, 0.0050003 * (var(--scaling-factor) - var(--scrollbar-width))) - 1px)!important;
  grid-template-rows:minmax(max(0.5px, var(--ja-h) * (var(--scaling-factor) - var(--scrollbar-width))),auto)!important;
}
