/* Custom Styles for SketchVerse */ /* Smooth scrolling */ html { scroll-behavior: smooth; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #f5f5f4; } .dark ::-webkit-scrollbar-track { background: #1c1917; } ::-webkit-scrollbar-thumb { background: #a8a29e; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #78716c; } /* Selection color */ ::selection { background: #fde68a; color: #1c1917; } /* Image loading placeholder */ .img-skeleton { background: linear-gradient(90deg, #e7e5e4 25%, #d6d3d1 50%, #e7e5e4 75%); background-size: 200% 100%; animation: loading 1.5s infinite; } .dark .img-skeleton { background: linear-gradient(90deg, #292524 25%, #44403c 50%, #292524 75%); background-size: 200% 100%; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Gallery item hover effect */ .gallery-item { break-inside: avoid; margin-bottom: 1.5rem; } .gallery-item img { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } .gallery-item:hover img { transform: scale(1.02); } /* Modal transitions */ #image-modal { transition: opacity 0.3s ease; } #image-modal.hidden { opacity: 0; pointer-events: none; } #image-modal:not(.hidden) { opacity: 1; pointer-events: auto; } /* Pinch zoom for mobile */ .pinch-zoom { touch-action: none; } /* Safe area for iPhone X+ */ .pb-safe { padding-bottom: env(safe-area-inset-bottom); } /* Focus visible styles for accessibility */ *:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } html { scroll-behavior: auto; } } /* Print styles */ @media print { .no-print { display: none !important; } body { background: white; color: black; } } /* Custom cursor for gallery */ @media (hover: hover) { .gallery-item { cursor: zoom-in; } } /* Typography enhancements */ .font-serif { font-feature-settings: "liga" 1, "calt" 1; } /* Gradient text animation */ .animate-gradient { background-size: 200% auto; animation: gradient 3s linear infinite; } @keyframes gradient { 0% { background-position: 0% center; } 100% { background-position: 200% center; } } /* Stagger animation for gallery items */ .stagger-1 { animation-delay: 0.1s; } .stagger-2 { animation-delay: 0.2s; } .stagger-3 { animation-delay: 0.3s; } .stagger-4 { animation-delay: 0.4s; } .stagger-5 { animation-delay: 0.5s; } .stagger-6 { animation-delay: 0.6s; } /* Mobile optimizations */ @media (max-width: 768px) { .gallery-item { margin-bottom: 1rem; } /* Prevent horizontal scroll */ body { overflow-x: hidden; } } /* High contrast mode support */ @media (prefers-contrast: high) { .text-primary-600 { color: #000; } .dark .text-primary-300 { color: #fff; } .bg-secondary-500 { background: #000; } .border-primary-200 { border-color: #000; } }