/* Gallery entrance: everything starts as a tiny dot and grows to full size (on load, reload and filter change) */
@keyframes ssGrow { 0% { opacity: 0; transform: scale(.02); } 55% { opacity: 1; } 78% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.ss-item.grow { animation: ssGrow 1s cubic-bezier(.22,.9,.3,1) both, ssZoom 9s ease-out 1s both; }
.ss-item.grow:not(img) { animation: ssGrow 1s cubic-bezier(.22,.9,.3,1) both; }
.ss-bg { animation: bgFade 1.2s ease both; } @keyframes bgFade { from { opacity: 0; } to { opacity: 1; } }

/* thumbnails pop in one after another */
.ss-th { animation: thIn .6s cubic-bezier(.22,.9,.3,1.2) both; animation-delay: calc(var(--i, 0) * 90ms + .35s); }
@keyframes thIn { from { opacity: 0; transform: scale(.05); } to { opacity: .65; transform: scale(1); } }
.ss-th.on { animation-name: thInOn; } @keyframes thInOn { from { opacity: 0; transform: scale(.05); } to { opacity: 1; transform: scale(1); } }

/* masonry tiles grow from small to big, staggered */
.m-item.reveal { opacity: 0; transform: scale(.08); transition: opacity .6s ease, transform .8s cubic-bezier(.34,1.5,.5,1); transform-origin: center; }
.m-item.reveal.in { opacity: 1; transform: scale(1); }

html.no-motion .ss-item.grow, html.no-motion .ss-th, html.no-motion .ss-bg { animation: none !important; } html.no-motion .m-item.reveal { transform: none; opacity: 1; }
