.work { margin-left: 0.5cm; margin-right: 0.5cm; } .work__header { margin-bottom: 1.5rem; } .work__company { margin-top: -1.5rem; display: flex; flex-flow: row wrap; justify-content: space-between; @media (max-width: 780px) and (not print) { flex-flow: column wrap; } // Add horizontal line after each work experience &:after { display: block; flex: 1 100%; content: ""; border-bottom: 1px solid; margin-top: 1.5rem; margin-bottom: 1.5rem; margin-left: auto; margin-right: auto; min-width: 80%; max-width: 80%; } // Remove the extra horizontal line after the last work article &:last-of-type:after { display: none; } } .work__company__name, .work__company__location, .work__company__position__title, .work__company__position__duration { min-width: 50%; @media (max-width: 812px) { @media (orientation: landscape) { font-size: 0.9rem; } } } .work__company__name { margin-bottom: 0%; font-size: 1.5rem; } .work__company__location, .work__company__position__duration { text-align: right; align-self: flex-end; @media (max-width: 780px) and (not print) { text-align: left; align-self: flex-start; } } .work__company__note { max-width: 93%; margin-top: 0.6rem; margin-bottom: 0.6rem; } .work__company__tasks { max-width: 90%; margin-bottom: 0%; @media (max-width: 812px) { max-width: 99%; margin-inline-start: -1.5em; @media (orientation: landscape) { max-width: 90%; margin-inline-start: 0em; } } sup { font-size: 0.7rem; } } .work__company__footnote { min-width: 100%; font-size: 0.9rem; }