body { display: flex; flex-wrap: wrap; justify-content: center; background-size: cover; background-repeat: no-repeat; background-image: url("./background.jpg"); } #title { width: 100%; display: flex; justify-content: center; } #mobile-title { display: none; } .swiper { width: 500px; height: 400px; margin-top: 20vh; } .photo-container { width: 500px; height: 400px; display: flex; justify-content: center; align-content: center; } @media screen and (max-width: 1024px) { #title { display: none; } #mobile-title { display: block; } }