.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
    padding: 20px 0;
}

.gallery-cell {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gallery-cell a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-cell:hover img {
    transform: scale(1.06);
}

/* Опционально: растягиваем вертикальные фото на 2 строки для эффекта мозаики */
.gallery-cell.vertical-photo {
    grid-row: span 2;
}
