/* Sunlit-wall video background for Obsidian Publish (pairs with publish.js).

   The video sits over the page and is blended into it with "multiply", so the
   white page takes on the wall's tones while dark text stays dark. This works
   whatever backgrounds the Publish layout puts on its own containers.
   If you already have a publish.css, paste these rules into it. */

/* Light theme: a white page, so the wall shows at its true colour. */
.theme-light {
  --background-primary: #ffffff;
  --background-secondary: #ffffff;
}

#sun-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;   /* keep the sunlit side in view when cropped */
  z-index: 9999;
  pointer-events: none;        /* clicks pass straight through */
  mix-blend-mode: multiply;
}

/* The clip is a daylight scene, so it is hidden in the dark theme. */
.theme-dark #sun-bg { display: none; }

@media print { #sun-bg { display: none; } }
