.kursgrid{
    display: grid;
    gap: var(--wp--preset--spacing--30);
    grid-template-columns: repeat(auto-fill, minmax(max(390px, 10%), 1fr));

    @media (max-width: 990px) {
    grid-template-columns: repeat(2, 1fr);
        }
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }

    article {
        overflow: hidden;
        border-radius: var(--wp--custom--border-radius);
        background: var(--wp--preset--color--mid);
        transition: var(--wp--custom--main-trans);

        figure{
            margin: 0;
            aspect-ratio: 4 / 3;
            height: auto;
            width: 100%;
            overflow: hidden;
            position: relative;

            img{
                object-fit: cover;
                width: 100%;
                height: 100%;
                 transition: var(--wp--custom--main-trans);
            }

            figcaption{
                position: absolute;
                top: var(--wp--custom--border-radius);
                left: 0;
                color: var(--wp--preset--color--light);
                backdrop-filter: blur(10);
                background-color:rgba(0, 0, 0, .5);
                padding: .5rem;
                border-top-right-radius: var(--wp--custom--border-radius);
                border-bottom-right-radius: var(--wp--custom--border-radius);
                font-size: .8rem;
            }
        }

        .content{
            padding: var(--wp--preset--spacing--30);

            h3{
                 margin-bottom: 3rem;
                  text-wrap: balance;
            }

            .meta{
                display: flex;
                gap: var(--wp--preset--spacing--10);
                font-size: 1rem;

                border-bottom: var(--wp--custom--main-border);
                border-color: var(--wp--preset--color--dark);
                padding-top: .5rem;
                padding-bottom: .5rem;

                &:last-of-type{
                    border-bottom: 0px;
                    margin-bottom: 2rem;
                }

               span{

                    &:first-of-type{
                        min-width: 15ch;
                    }

                    p{
                        margin-bottom: 0;
                    }
                }
            }

            a{
                display: block;
                font-size: 1rem;
                font-weight: 600;

                background: var(--wp--preset--color--dark);

                &:hover{
                    background-color: var(--wp--preset--color--accent);
                }

                &:first-of-type{
                    margin-bottom: 1rem;
                }
            }
        }

        &:hover{
            box-shadow: var(--wp--custom--box-shadow);

            figure{
                img{
                    scale: 1.1;
                }
            }
        }

    }
}

@media screen and (max-width: 768px) {
    .kursgrid{
        
        article{
            max-width: unset;
            margin-bottom: 1.5rem;

            .content{
                padding: var(--wp--preset--spacing--30);

                h3{
                    margin-bottom: 1rem; 
                }   
            }
        }
    }
}


