/* ==========================================================================
   PHOTO WALL — drifting columns of event photos as a page background.
   Vanilla CSS/JS port of a drift-wall effect: no build step on this site,
   so the animation runs on plain CSS keyframes rather than React state.
   ========================================================================== */

.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--night);
  perspective: 1200px;
  perspective-origin: 50% 42%;
  -webkit-mask-image:
    radial-gradient(ellipse 80% 85% at 50% 46%, #000 55%, transparent 100%),
    linear-gradient(to top, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 80% 85% at 50% 46%, #000 55%, transparent 100%),
    linear-gradient(to top, #000 55%, transparent 100%);
  mask-composite: intersect;
}

.wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) scale(1.22) rotateX(15deg) rotateY(-13deg) translateZ(-90px);
  will-change: transform;
}

.wall__col {
  position: relative;
  width: calc(240px + 16px);
  transform-style: preserve-3d;
}

.wall__track {
  display: flex;
  flex-direction: column;
  animation-name: wall-drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.wall__tile {
  position: relative;
  width: 100%;
  height: calc(160px + 16px);
  flex: 0 0 auto;
}

.wall__tile-inner {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0b12;
}

.wall__tile-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  opacity: 0.78;
}

.wall__tile-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: 0.24;
}

@keyframes wall-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wall__track { animation-play-state: paused; }
}
