.postgrid{
    display: flex;
    gap: var(--wp--preset--spacing--30);


    article{
        overflow: hidden;
        border-radius: var(--wp--custom--border-radius);
        background: var(--wp--preset--color--light);
        transition: var(--wp--custom--main-trans);
        box-shadow: var(--wp--custom--box-shadow);
        border: var(--wp--custom--main-border);
        position: relative;
        width: calc(100% / 3);


        figure{
            margin: 0;
            aspect-ratio: 4 / 3;
            height: auto;
            width: 100%;
            overflow: hidden;
            position: relative;
            aspect-ratio: 16 / 9;
            border-top-left-radius: var(--wp--custom--border-radius);
            border-top-right-radius: var(--wp--custom--border-radius);

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

            figcaption{
                position: absolute;
                top: 1rem;
                left: 1rem;
                color: var(--wp--preset--color--typo);
                backdrop-filter: blur(10);
                background-color:rgba(255, 255, 255, .8);
                padding: .5rem;
                border-radius: var(--wp--custom--border-radius);
                font-size: .8rem;
                font-family: var(--wp--preset--font-family--heading);
            }
        }

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

            h3{
                 margin-bottom: 1rem;
                  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{
                    min-width: 10ch;

                    p{
                        margin-bottom: 0;
                    }
                }
            }

            a{
                background-color: var(--wp--preset--color--petrol) !important;
                border-radius: var(--wp--custom--border-radius);
                border-color: var(--wp--preset--color--petrol) !important;
                border-width: var(--wp--custom--border-width);
                border-style: var(--wp--custom--border-style);
                color: var(--wp--preset--color--light);
                text-align: center;
                font-family: var(--wp--preset--font-family--heading);
                font-weight: 500;
                padding-top: var(--wp--preset--spacing--10);
                padding-right: var(--wp--preset--spacing--20);
                padding-bottom: var(--wp--preset--spacing--10);
                padding-left: var(--wp--preset--spacing--20);
                transition: var(--wp--custom--main-trans);
                text-decoration: none;

                &::after{
                    content: '→';
                    position: relative;
                    margin-left: .25rem;
                    display: inline-block;
                    transition: var(--wp--custom--main-trans);
                }

                &:hover{
                    padding-right: 3em;
                    background: var(--wp--preset--color--dark) !important
                    ;
                    border-color: var(--wp--preset--color--dark )!important;
                    &::after{
                        transform: translateX(1rem);
                    }
                }
            }
        }

        &:hover{
            box-shadow: none;

            figure{
                img{
                    scale: 1.1;
                }
            }
        }

    }
}

@media screen and (max-width: 768px) {
    .postgrid{
    display: flex;
    gap: var(--wp--preset--spacing--30);
    flex-direction: column;

        article{
            max-width: unset;

          

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

                h3{
                    margin-bottom: 1rem;
                    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{
                        min-width: 10ch;

                        p{
                            margin-bottom: 0;
                        }
                    }
                }

               
            }

            &:hover{
                box-shadow: none;

                figure{
                    img{
                        scale: 1.1;
                    }
                }
            }

        }
    }
}