.hero-images {
    margin: auto;
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.hero-images img {
    position: absolute;
    width: inherit;
    object-fit: cover;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
    animation: fade calc(var(--hero-images-animation-duration) * var(--hero-images-count)) infinite;

    /*animation: fade var(--hero-images-animation-duration) infinite;*/
}

@keyframes fade {
    0%, 100% {
        opacity: 0;
    }
    33%, 66% {
        opacity: 1;
    }
}


.hero-images img:nth-child(1) {
    animation-delay: 0s;
}

.hero-images img:nth-child(2) {
    animation-delay: calc(var(--hero-images-animation-duration) * 1);
}

.hero-images img:nth-child(3) {
    animation-delay: calc(var(--hero-images-animation-duration) * 2);
}

.hero-images img:nth-child(4) {
    animation-delay: calc(var(--hero-images-animation-duration) * 3);
}

.hero-images img:nth-child(5) {
    animation-delay: calc(var(--hero-images-animation-duration) * 4);
}

.list {
    list-style-type: none;
    padding-left: 0;
}





/* Small Screens Layout */
@media (max-width: 600px) {

    .hero-section {
        padding-bottom: 4rem;
    }

    .body-home {
        grid-template-rows: auto 3fr 2fr 1.2fr;
        padding-inline: 5vw;
        margin-top: 5vw;
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-title {
        grid-row: 1 / 2;
        text-align: center;
        font-size: 10vw;
        font-weight: bold;
        padding-bottom: 3dvh;
        color: black;
    }

    .hero-images {
        grid-row: 2 / 3;
        height: 100%;
        width: 90%;
    }

    .hero-images img {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-text {
        padding-top: 3dvh;
        grid-row: 3 / 4;
        text-align: center;
        margin: auto;
        font-size: 1rem;
        text-align: left;
        width: 80%;
    }

    .list li {
        display: flex;
        align-items: center;
        margin-bottom: 2vh;
        font-size: 1rem;
    }

    .list .material-symbols-outlined {
        margin-right: 3vw;
        font-size: 2rem;
        color: #6911c1;
        vertical-align: middle;
    }

    .cta {
        grid-row: 4 / 5;
        text-align: center;
    }

}

/* Large Screens Layout */
@media (min-width: 601px) {

    .lg-nav15vh-body {
        display: grid;
        grid-template-rows: 15vh 1fr;
    }

    .body-home {
        display: grid;
        grid-template-columns: calc(100% - var(--hero-images-width)) var(--hero-images-width);
        grid-template-rows: 5vh auto 1fr minmax(50px, 15%) minmax(30px, 5%);
    }

    .hero-title {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        display: flex;
        flex-direction: column;
        font-size: 6vw;
        padding-left: 3vw;
        font-weight: bold;
        line-height: 1.1;
        color: black;
    }

    .hero-text {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        font-size: 1.2rem; /* Adjust as needed */
        display: flex;
        align-items: center;
        padding-left: 3vw;
    }

    .list {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding-block: 2vh;
    }

    .list .material-symbols-outlined {
        margin-right: 1vw;
        font-size: 2rem;
        color: #6911c1;
    }

    .hero-images {
        grid-column: 2 / 3;
        grid-row: 2 / 4;
        width: 90%;
    }

    .cta {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        width: 100%;
        padding-left: 3vw;
        width: 90%;
        justify-self: center;
        margin:auto;
    }
}
