@media screen and (width < 750px) {
    body:has(.main-home) header {
        background-color: var(--clr-bg);
    }
    .main-home {
        grid-template-columns: 1fr;
        margin-top: 10rem;
    }
}

.main-home > div:first-of-type {
    display: flex;
    align-items: center;
    padding: var(--padding-inline);
}
@media screen and (width < 750px) {
    .main-home > div:first-of-type {
        padding-bottom: 4rem;
    }
}

.main-home > div:last-of-type figure {
    height: 100vh;
    width: 100%;
}
.main-home > div:last-of-type img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}