.foto-galerey {
    width: 100%;
    max-width: 1000px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;

    margin: 0 auto;
}

.foto-item {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
}




.foto-item {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;

    border-radius: 50%;
    border: 2px solid #5f1d43;

    background: #eee;
    cursor: pointer;
}


/* Фотография */
.foto-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transform: scale(1.06);

    transition:
        transform 0.25s ease;
}


/* Покачивание фотографии */
.foto-item:hover img {
    animation: foto-sway 0.7s ease-in-out;
}


/* Анимация покачивания */
@keyframes foto-sway {

    0% {
        transform: rotate(0deg) scale(1.06);
    }

    25% {
        transform: rotate(-4deg) scale(1.08);
    }

    50% {
        transform: rotate(4deg) scale(1.10);
    }

    75% {
        transform: rotate(-2deg) scale(1.08);
    }

    100% {
        transform: rotate(0deg) scale(1.06);
    }
}

/* Блик */
.foto-item::after {
    content: '';

    position: absolute;

    top: -50%;
    left: -100%;

    width: 50%;
    height: 200%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );

    transform: rotate(25deg);

    pointer-events: none;
}


/* Запуск блика */
.foto-item:hover::after {
    left: 150%;
    transition: left 0.9s ease;
}

/* Смартфон */
@media (max-width: 600px) {

    .foto-galerey {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;

        justify-items: center;
    }

    .foto-item {
        width: min(40vw, 150px);
        height: min(40vw, 150px);

        flex: none;
    }
}

.foto-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.85);

    cursor: zoom-out;
}

.foto-lightbox img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}
.foto-more {
    display: block;
    margin: 25px auto 10px;
    padding: 10px 32px;

    border: 2px solid #5f1d43;
    border-radius: 25px;

    background: transparent;
    color: #5f1d43;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.foto-more:hover {
    background-color: #5f1d43;
    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(95, 29, 67, 0.3);
}

.foto-more:active {
    transform: translateY(0);
    box-shadow: none;
}
