/*
Theme Name: Base Theme
Theme URI: https://www.wilson-cooke.co.uk/
Author: Wilson Cooke
Author URI: https://www.wilson-cooke.co.uk/
Description: In-house Base Theme
*/

.content-columns {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0;
    padding: 24px 0;

    .content-column {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    @media screen and (min-width: 768px) {
        flex-direction: row;
        .content-column {
            flex: 1 1 50%;
            width: 50%;
            max-width: 50%;
        }            
    }

    @media screen and (min-width: 1200px) {
        .content-column {
            flex: 1 1 25%;
            width: 25%;
            max-width: 25%;
        }       
    }
}

.content-card {
    --spacing: 16px;
    --border-color: #CFCFCF;

    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    outline: 1px solid var(--border-color);

    .content-card__media {
        width: 100%;
        aspect-ratio: 4 / 5;
        display: block;
        /* background-color: #eee; */
        overflow: hidden;
        position: relative;

        img {
            position: absolute;
            width: 100%;
            height: 100%;
            inset: 0;
            object-fit: cover;
            padding: var(--spacing);
        }
    }

    .content-card__main {
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .content-card__title {
        width: 100%;
        padding: var(--spacing);
        font-size: 1.8rem;
        margin: 0;
        border-top: 1px solid var(--border-color);
        text-decoration: none;
        font-family: proximanova-semibold;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;        
    }

    .content-card__content {
        width: 100%;
        padding: var(--spacing);
        border-top: 1px solid var(--border-color);
    }

}