#gallery{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;gap:34px;width:100%;min-width:300px}
.gallery-col{display:flex;flex-direction:column;gap:34px;flex:0 0 auto}
.gallery-item{opacity:0;transform:translateY(24px);transition:opacity 0.5s ease,transform 0.5s ease;will-change:transform;position:relative}
.gallery-item.visible{opacity:1;transform:translateY(0)}
.gallery-item:hover{animation-play-state:paused;z-index:10}
.gallery-link{display:block;width:176px;padding:13px;background:#fff;box-shadow:2px 2px 3px #888;transition:transform 0.6s ease,box-shadow 0.6s ease;text-decoration:none;cursor:pointer;will-change:transform}
.gallery-link img{display:block;width:100%;height:auto}
.gallery-item:hover .gallery-link{transform:scale(1.2);box-shadow:3px 3px 5px #666}
@keyframes float{0%,100%{transform:rotate(0deg) translateY(0)}20%{transform:rotate(0.6deg) translateX(-2px)}40%{transform:rotate(-0.3deg) translateY(1px)}60%{transform:rotate(0.4deg) translateX(-1.5px)}80%{transform:rotate(-0.2deg) translateY(0.5px)}}
.gallery-item.animating{animation:float 1.8s ease-in-out}




/*




#gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 34px;
  width: 100%;
  min-width: 300px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 34px;
  flex: 0 0 auto;
}

.gallery-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform;
  position: relative;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  animation-play-state: paused;
  z-index: 10;
}

.gallery-link {
  display: block;
  width: 176px;
  padding: 13px;
  background: #fff;
  box-shadow: 2px 2px 3px #888;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
}

.gallery-link img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item:hover .gallery-link {
  transform: scale(1.2);
  box-shadow: 3px 3px 5px #666;
}

@keyframes float {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(0.6deg) translateX(-2px); }
  40% { transform: rotate(-0.3deg) translateY(1px); }
  60% { transform: rotate(0.4deg) translateX(-1.5px); }
  80% { transform: rotate(-0.2deg) translateY(0.5px); }
}

.gallery-item.animating {
  animation: float 1.8s ease-in-out;
}

*/