Creating multiple Layouts for Content with multiple Subfolders?

Layouts:

layouts
└── portfolio
    ├── list.html
    ├── single.html
    ├── cinema
    │   └── list.html
    └── theater
        └── list.html

Content:

content
└── portfolio
    ├── _index.md
    ├── 2024.md
    ├── cinema
    │   └── _index.md
    └── theater
        └── _index.md

In my design, each of the following pages should have its different structure! (Those list.html pages differ from one another.)

  1. example.com/portfolio
  2. example.com/portfolio/2024
  3. example.com/portfolio/cinema
  4. example.com/portfolio/theater

The last two ones (#3, #4) serves as the first one!
I want number 3 and 4 to be independent in their template.

A related investigation: Creating a Layout for Content with multiple Subfolders? - #5 by jmooring but a bit different.

Have a look at this topic, looks like it pretty well matches your requirements.