.banner {
    padding: 110px 0 340px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    margin-top: 90px;
    z-index: 1;
}
.banner-photo {
  position: absolute;
  top: 0;
  right: 0;
}
.banner-content {
    max-width: 1100px;
    margin: 0 auto;
}
.banner-content h1 {
    max-width: 600px;
}
.banner-content p {
    max-width: 350px;
    margin: 24px 0;
}

@media only screen and (min-width: 2000px) {
    .banner-content {
        max-width: 1500px;
    }
    .banner-content h1 {
        max-width: 700px;
    }
}

@media only screen and (max-width: 1800px) {
    .banner-content {
        max-width: 83%;
    }
}

@media only screen and (max-width: 1500px) {
    .banner-photo {
        width: 750px;
    }
}

@media only screen and (max-width: 1400px) {
    .banner-photo {
        width: 650px;
    }
}

@media only screen and (max-width: 1300px) {
    .banner-photo {
        width: 550px;
    }
    .banner-content h1 {
        max-width: 500px;
        font-size: 4rem;
        line-height: 4rem;
    }
}

@media only screen and (max-width: 1200px) {
    .banner-content h1 {
        max-width: 400px;
        font-size: 3.4rem;
        line-height: 3.8rem;
    }
}

@media only screen and (max-width: 1280px) {
    .banner {
        padding: 80px 0;
        margin-top: 78px;
    }
    .banner-photo {
        object-fit: cover;
        width: 120%;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
        filter: brightness(0.5);
    }
    .banner-content {
        position: relative;
        text-align: center;
        max-width: 90%;
        z-index: 2;
    }
    .banner-content h1,
    .banner-content p {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .banner-content h1 {
        margin-top: 0;
    }
}

@media only screen and (max-width: 767px) {
    .home .banner-photo {
      width: 140%;
    }
    .banner-content h1 {
        font-size: 2.2rem;
        line-height: 2.5rem;
    }
    .banner-content h1, .banner-content p {
        max-width: 100%;
    }
}