/* One quiet handoff for the five views; navigation never waits for animation. */
.view-pane {
  transition: none !important;
  filter: none !important;
  clip-path: none !important;
}

.view-pane[hidden] {
  display: none !important;
}

.view-pane.is-active {
  animation: pane-arrive 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes pane-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Older stagger classes may remain on cards after a rerender. Keep them visible. */
.reveal-module,
.reveal-module.is-shown {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

/* Each image appears once as it enters the viewport; the masonry layout stays put. */
.photo-card[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(12px);
}

.photo-card[data-reveal="shown"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 450ms var(--ease);
}

.photo-card[data-reveal="shown"]:hover {
  transform: translateY(-5px);
}

.home-icp {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  color: rgba(244, 246, 242, 0.82);
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration-color: rgba(244, 246, 242, 0.6);
  text-underline-offset: 3px;
}

.home-icp:hover,
.home-icp:focus-visible {
  color: #fff;
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-meta p {
  margin: 0;
}

.footer-meta a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .view-pane.is-active { animation: none !important; }
  .photo-card[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
