.reference{ margin-top: 4em; color: white; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; } .reference h1{ font-size: 1.5em; margin-bottom: 1em; } .reference .desktop-img{ width: 80%; margin: 1em; } .reference .mobile-img{ margin: 1em; } .reference header{ width: 80%; text-align: center; } /*.ref-hr{ border-color: gold !important; height: 0; width: 200%; left: -50%; position: relative; background-color: gold; }*/ @media screen and (min-width: 1000px){ .desktop-img{ display: none; } .reference header{ width: 35%; text-align: center; } } @media screen and (max-width: 1000px){ .mobile-img{ width: -webkit-fill-available !important; display: none; } }