#wp-bg-fly-images-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 999998 !important;
    overflow: hidden !important;
}

#wp-bg-fly-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999997 !important;
    pointer-events: none;
    transition: background 0.6s ease;
    opacity: 0;
}

#wp-bg-fly-overlay.active {
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
}

#wp-bg-fly-images-container .wp-bg-image {
    position: absolute;
    bottom: -100px;
    /* left будет задаваться через JS для равномерного распределения */
    opacity: 0;
    will-change: transform, opacity, bottom, left;
    pointer-events: none;
    max-width: 350px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Мобильная адаптация размеров */
@media (max-width: 768px) {
    #wp-bg-fly-images-container .wp-bg-image {
        max-width: 220px;
        max-height: 220px;
    }
}

#wp-bg-fly-images-container .wp-bg-image.wp-bg-animate {
    animation: flyUpToMiddle 8s cubic-bezier(0.2, 0, 0.2, 1) forwards !important;
}

@keyframes flyUpToMiddle {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(0);
    }
    40% {
        opacity: 1;
        transform: scale(1) translateY(-50vh);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-100vh);
    }
}
