/* 
<ul class="plant-group-cards">
    <li>
        <a style="--bg-image: url('#IMAGE_URL#')" href="#LINK#">
            <span>#TITLE#</span>
        </a>
*/

.plant-group-cards {
    display: grid;
    /* 3 columns, width of each is 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 2rem;
    list-style: none;
    padding: 0;

    li {
        position: relative;
        width: 100%;
        aspect-ratio: 3/2;
    }
    /* overlay a green background on top of the background image, but under the text */
    a {
        position: absolute;
        inset: 0;
        z-index: 1;
        background-color: var(--branding-primary-medium);
        background-image: var(--bg-image);
        background-position: center;
        background-size: 102%;
        transition: background-size 0.4s ease;
        text-decoration: none;
        &:hover {
            text-decoration: underline;
            background-size: 122%;
        }
        div {
            font-family: var(--heading-family);
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            color: #fff;
            font-size: 1.5rem;

            background-image: linear-gradient(168deg,rgba(44,71,18,.9) 20%,rgba(44,71,18,.3) 75%);
            height: 100%;
            padding: 1rem;
        }
    }

}