.work { margin-left: 0.5cm; margin-right: 0.5cm; } .work__header { } .work__experience { &:after { display: flex; content: ""; border-bottom: 1px solid; margin: auto; max-width: 75%; } &:last-of-type:after { // remove the extra horizontal line after the last work__experience display: none; } } .job-position { display: flex; flex-flow: row wrap; justify-content: space-between; @media (max-width: 780px) { flex-flow: column wrap; } } .job-position__company, .job-position__title, .job-position__duration, .job-position__location { min-width: 50%; @media (max-width: 812px) { @media (orientation: landscape) { font-size: 0.9rem; } } } .job-position__company { order: 0; margin-bottom: 0; font-size: 1.5rem; } .job-position__title { order: 2; text-align: left; align-self: flex-start; @media (max-width: 780px) { order: 1; } } .job-position__duration { order: 1; text-align: right; align-self: flex-end; @media (max-width: 780px) { order: 2; text-align: left; align-self: flex-start; } } .job-position__location { order: 3; text-align: right; align-self: flex-end; @media (max-width: 780px) { text-align: left; align-self: flex-start; } } .note { max-width: 93%; margin-top: 0.6rem; margin-bottom: 0.6rem; } .tasks { max-width: 90%; margin-top: 0.4rem; @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; } } .footnote { margin-bottom: 0.8rem; font-size: 0.8rem; }