.hero {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-img {
    -webkit-user-select: none;
    user-select: none;
    background-size: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
}

.hero-content {
    height: calc(100dvh - var(--header-height) - var(--side-gap));
    width: 100%;
    margin: 0 var(--side-gap);
}

.hero-title {
    grid-column: 1/8;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-subtitle {
    grid-column: 9/13;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 80rem;
    color: var(--color-white);
}

.hero-mask {
    -webkit-user-select: none;
    user-select: none;
    background-color: var(--color-black);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    z-index: -1;
}

@media (max-width: 834px) {
    .hero {
        height: 469rem;
    }

    .hero-content {
        height: calc(100% - var(--header-height) - var(--side-gap));
    }

    .hero-title {
        height: fit-content;
        margin-top: 97rem;
    }

    .hero-subtitle {
        grid-column: 7/13;
        margin-bottom: 30rem;
    }
}

@media (max-width: 500px) {
    .hero {
        height: 390rem;
    }

    .hero-title {
        grid-column: 1/13;
        margin-top: 77rem;
    }

    .hero-subtitle {
        grid-column: 1/13;
    }
}
