/* lightbox.css — Full-screen card preview with fly-in animation */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); justify-content: center; align-items: center;
  cursor: pointer; transition: background .35s ease, backdrop-filter .35s ease;
}
#lightbox.visible { display: flex; }
#lightbox.open { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
#lightbox img {
  max-height: 85vh; max-width: 90vw;
  border-radius: 12px; box-shadow: 0 0 60px rgba(0,0,0,.9);
  opacity: 0; transition: opacity .15s ease;
}
#lightbox img.ready { opacity: 1; }

/* Flying card clone for animation */
.flying-card {
  position: fixed; z-index: 10000; pointer-events: none;
  border-radius: 8px; transition: all .35s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.flying-card.fade-out { opacity: 0; transition: opacity .15s ease; }
