.hero {
    /*padding-top: 15.22vw;*/
    padding: 5vw 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1,
.hero h2,
.hero h3 {
    font-size: 2.7vw;
    font-weight: bold;
    margin-top: 3vw;
    line-height: 1;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 26.2vw;
        min-height:45vh;
    }

    .hero h1,
    .hero h2,
    .hero h3 {
        margin-top: 8vw;
        font-size: 7.1vw;
    }
}
/* Add this to your stylesheet or inline in the head */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.image-container::before {
    content: '';
    display: block;
    padding-top: <?php echo $aspect_ratio ? (100 / $aspect_ratio) . '%' : '39.41%'; /* 722/1832*100 = 39.41% */ ?>;
}
.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}