/* Контейнер блока фото пользователя */
.user-photos-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

/* Сетка фото */
.user-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 900px; /* ограничиваем как .profile-card */
}

/* Каждый фото-блок */
.user-photo {
    width: 100%;
    padding-top: 100%; /* квадрат */
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
}

.user-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
