/* Project deck: cards with weight (deck.js drives position; this is what a card is made of). */

/* A card has an edge: three hairlines of board showing under its face. */
.project-card{
  --edge:0 1px 0 #ebe6dc,0 2px 0 #e0dace,0 3px 0 #d6cfc1;
  box-shadow:var(--edge);
}
.project-card[data-depth="0"]{
  box-shadow:var(--edge),0 28px 50px -20px rgba(44,39,32,.22),0 10px 18px -12px rgba(38,33,24,.1);
}
/* Picked up: further from the table, so its shadow falls further and softer. */
.project-card.is-held{
  box-shadow:var(--edge),0 46px 70px -26px rgba(44,39,32,.32),0 16px 26px -16px rgba(38,33,24,.14);
}
/* Put down on the pile: close to the table again. Only the top card casts a shadow
   worth drawing; the ones under it are covered. */
.project-card.in-pile{box-shadow:var(--edge)}
.project-card.pile-top{
  box-shadow:var(--edge),0 14px 22px -16px rgba(44,39,32,.34);
}
.deck .project-card[data-depth="0"]{cursor:grab}
.deck.is-dragging .project-card{cursor:grabbing}

/* The pile's top card can be taken back. */
.deck-section.is-over-pile{cursor:pointer}
.deck-section.is-over-pile .project-card.pile-top{
  box-shadow:var(--edge),0 22px 30px -18px rgba(44,39,32,.4);
}

/* Films open out of the still they were opened from (video-lightbox.js). */
.video-lightbox video{aspect-ratio:16 / 9;transform-origin:center;will-change:transform}
@media (prefers-reduced-motion:no-preference){
  @keyframes lightbox-in{from{opacity:0}}
  .video-lightbox.is-open{animation:lightbox-in .34s ease}
  .video-lightbox.is-leaving{opacity:0;transition:opacity .3s ease}
}
