/* galerie « coup de vent » */
.wpimmich_vent_stage {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 16px;
  cursor: pointer;
}

.wpimmich_vent:not(.is-ready) .wpimmich_vent_stage {
  visibility: hidden;
}

.wpimmich_vent_card {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 6px 6px 20px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.wpimmich_vent_card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

.wpimmich_vent_card.is-hidden {
  display: none;
}

.wpimmich_vent_card.is-fading {
  opacity: 0;
}

.wpimmich_vent_flyer {
  position: fixed;
  inset: auto;
  z-index: 99999;
  margin: 0;
  pointer-events: none;
  transition: none;
}

/* traits de vent qui traversent la pile au moment du souffle */
.wpimmich_vent_wind {
  position: absolute;
  inset: -10% -15%;
  width: 130%;
  height: 120%;
  z-index: 10000;
  pointer-events: none;
  overflow: visible;
}

.wpimmich_vent_wind {
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.55));
}

.wpimmich_vent_wind path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 35 200;
  stroke-dashoffset: 40;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.wpimmich_vent_stage.is-windy .wpimmich_vent_wind path {
  animation: wpimmich_vent_wind 1.1s ease-out forwards;
}

.wpimmich_vent_stage.is-windy .wpimmich_vent_wind path:nth-child(2) {
  animation-delay: 0.12s;
}

.wpimmich_vent_stage.is-windy .wpimmich_vent_wind path:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes wpimmich_vent_wind {
  0% { stroke-dashoffset: 40; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wpimmich_vent_wind {
    display: none;
  }
}
