/* Smooth entrance animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

/* Line clamp utility for caption truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Masonry column break fix for older browsers */
.break-inside-avoid {
  break-inside: avoid;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #477be9;
  outline-offset: 2px;
}

/* Smooth scroll offset for fixed nav */
:target {
  scroll-margin-top: 5rem;
}

/* Custom scrollbar (subtle, not distracting) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
  background: #91919f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #747484;
}
