The first six images below are an indication of what can be done to STOP smoke & flame ingress from one compartment to another in a communal buliding.
Red fire-rated foam is a flame and smoke retardant. Yellow fire-rated material is a smoke retardant.
A 30 minute retardant has been used.