/* Fiji site atmosphere: lightweight, adaptive background slideshow on every page */
body.has-fiji-bg {
  background: #e8f3f6;
}

.fiji-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #dff2f6;
}

.fiji-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* A light brand-tinted vignette adds depth without the old milky white wash. */
  background:
    radial-gradient(ellipse 120% 90% at 50% 35%, rgba(14, 42, 59, 0) 45%, rgba(14, 42, 59, 0.32) 100%),
    linear-gradient(180deg, rgba(10, 111, 158, 0.08) 0%, rgba(14, 42, 59, 0.18) 100%);
}

.fiji-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.fiji-bg-layer.is-active {
  opacity: 1;
}

.fiji-bg-layer picture,
.fiji-bg-layer img {
  display: block;
  width: 100%;
  height: 100%;
}

.fiji-bg-layer img {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.05);
}

/* Section backgrounds and readability overlays live in site.css. */

@media (prefers-reduced-motion: reduce) {
  .fiji-bg-layer {
    transition: none;
  }
}

@media print {
  .fiji-bg {
    display: none;
  }
}
