#hero-banner {
    grid-column: 1 / 3; /* Spans both columns */
    display: flex;
    justify-content: center;
    padding: 30px 0;
    border-radius: 25px;
    width: 100%;
}

#hero-banner .info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50%;

}

#hero-banner .info .title {
    color: #191819;
    font-size: 1.3rem;
    margin-bottom: 12px
}

#hero-banner .info .stats {
    font-size: 0.7rem;
    margin-bottom: 5px
}

#hero-banner .info .description {
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 27px;
    color: #191819;
}

#hero-banner .info .buttons {
    display: flex;
    flex-direction: column;

}

#hero-banner .info .buttons .action-button {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 13px 5px 13px 5px;
    border-radius: 25px;
    transition: 0.3s;
    line-height: 1rem;
    width: 100%;
    max-width: 320px;
    min-width: 170px;
}

/* relative position prevents flash animation from escaping the button */
#start-button-primary {
    background-color: var(--color-bold);
    color: white;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

#start-button-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%; /* Start the sheen far to the left, off-screen */
    width: 100%;
    height: 100%;

    /* Create the linear gradient sheen */
    background: linear-gradient(
            90deg,
            transparent, /* Transparent at the beginning */ rgba(255, 255, 255, 0.4), /* Semi-transparent white sheen */ transparent /* Transparent at the end */
    );

    /* Apply the animation */
    animation: sheen-across 3s infinite;
    animation-timing-function: ease-in-out;
}

#start-button-primary:hover {
    background-color: var(--color-dark);
}

#hero-banner .info .share {
    background-color: white;
    color: var(--course-secondary-button);
    border: 1px solid var(--course-secondary-button);
    letter-spacing: normal;
}

#hero-banner .info .share:hover {
    background-color: var(--course-secondary-button);
    color: white !important;
}

#hero-banner .images {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 40px;
    width: 50%;
}

#hero-banner .images > button {
    width: auto;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 25px;
    object-fit: cover;
    transition: 0.3s;
    margin-bottom: 14px;
}

#hero-banner .images .wp-post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 25px;
    object-fit: cover;
    transition: 0.3s;
    vertical-align: middle;
}

#hero-banner .images .gallery-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

#hero-banner .gallery-preview li {
    width: calc(25% - 14px);
    border-radius: 15px;
}

#hero-banner .gallery-preview li button {
    width: 100%;
    border-radius: 15px;
}

#hero-banner .gallery-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    transition: 0.3s;
    object-fit: cover;
    overflow-clip-margin: unset;
    vertical-align: middle;
}

#hero-banner .images img:hover {
    box-shadow: 0 4px 15px var(--color-bold);
}

@media only screen and (max-width: 75rem) {
    #hero-banner .gallery-preview li {
        width: calc(50% - 7px);
    }

    #hero-banner .info .title {
        margin-bottom: 10px
    }

    #hero-banner .info .stats {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 53rem) {
    #hero-banner {
        flex-direction: column-reverse;
        align-items: center;
    }

    #hero-banner .images {
        margin-left: 0;
        width: 100%;
    }

    #hero-banner .images .wp-post-image {
        max-width: 300px;
    }

    #hero-banner .images .gallery-preview {
        display: none;
    }

    #hero-banner .info {
        width: 100%;
    }

    #hero-banner .info .buttons {
        align-items: center;
    }
}
