This was probably the most difficult for me.

This picture well demonstrates my project, and indeed any project. When you write the first hundred lines, everything seems simple, and you do not notice the problems. So you finish the project, 900 lines long and unexpectedly for yourself, decided to scroll through the file, well, or add media queries.

You write styles for an element in media, look at the site and do not understand why styles do not work as required. In search of a problem, you have already spent 15 minutes, you checked the gulp task and flipped through the compiled css file.
Accidentally, accidentally ... you find the problem in the cascading style sheet, but rather in the way that styles are superimposed on the elements. At the very beginning of my journey to the web, I certainly read that selectors have a different application priority. In short, for the usual (div, ul, a, p, etc.) selector -1 bal, for class-10, for identifier 100.

After checking carefully all the nesting, I still found a mistake. It turns out that you need to follow the nesting of elements, and give this is not the last value.
This includes the structure of the css (sass) file. There is a block “portfolio”, in it there are a lot of elements like “portfolio __ *”, but two classes in this nesting are superfluous, in my opinion.
This was the first project in which I tried to strictly adhere to BEM, but didn’t spend even a minute on designing at the very beginning, but came up with classes on the go, this made it difficult for support to be given.

And this, in my opinion, is a good example of BEM
