.hoto-slider {
    position: relative;
    width: 40%;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    animation: slide 12s infinite;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.photo:nth-child(1) {
    animation-delay: 0s;
}

.photo:nth-child(2) {
    animation-delay: 3s;
}

.photo:nth-child(3) {
    animation-delay: 6s;
}

.photo:nth-child(4) {
    animation-delay: 9s;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    25% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    75% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}






