﻿.featured-content {
    width: 100%;
    /*height: 100%;*/
}

.featured-container {
    max-width: var(--normal);
    margin: 0 auto;
    padding: 1em var(--padding-big-sides-desktop);
}


.dropdown-featured {
    width: 100%;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-gap: 2em;
}

.featured-f-card-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.featured-f-card-image {
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1,1);
    transition: all 300ms ease-in;
}

.featured-f-card-text {
    padding: 0.5em 0 2em 0;
    position: relative;
}

.featured-f-card-type {
    font-size: 0.8rem;
    color: var(--grey);
}

.featured-f-card-summary {
    font-size: 0.8em;
    color: var(--grey);
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 3rem;
    margin: 0.5em 0;
}

.featured-f-card-publish-date{
    display: -webkit-box;
    font-size: 0.8em;
    color: var(--grey);
    margin: 0.5em 0 0 0;
}

.featured-f-card-title {
    font-size: var(--font-text-desktop);
    line-height: 1.2rem;
    min-height: 2.4rem;
    font-weight: 600;
    color: var(--dark-grey);
    flex: 1;
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-f-card-readmore {
    font-size: 0.8rem;
    color: var(--main-blue);
    text-decoration: underline;
    position: absolute;
    bottom: 1em;
    cursor: pointer;
}

.featured-f-card {
    cursor: pointer;
    text-decoration: none;
}

    .featured-f-card:hover {
        text-decoration: none;
    }

        .featured-f-card:hover .featured-f-card-image {
            transform: scale(1.2,1.2)
        }

        .featured-f-card:hover .featured-f-card-title {
            color: var(--main-blue);
        }


.featured-big-card {
    grid-column-start: 1;
    grid-column-end: 6;
    grid-row-start: 1;
    grid-row-end: 2;
    height: 100%;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

    .featured-big-card .featured-bigbox-image-container {
        width: 100%;
        overflow: hidden;
        border-radius: 5px;
        /*height: 100%;*/
        padding-top: 56.25%;
        position: relative;
    }

        .featured-big-card .featured-bigbox-image-container .featured-f-card-image {
            padding: 0;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
        }


.infos-featured {
    position: absolute;
    bottom: 0;
    display: flex;
    padding: 1em 2em;
    background: linear-gradient(rgb(0 0 0 / 30%),rgba(0,0,0,0.4));
    align-items: start;
    width: 100%;
    min-height: 18%;
    margin-bottom: 0;
    transition: all 500ms ease-in;
    color: white;
}

.text-featured {
    flex-grow: 1;
}

    .text-featured .title {
        font-size: var(--font-small-title-desktop);
        font-weight: 700;
    }

.infos-featured .text-featured .summary, .infos-featured .text-featured .publish-date {
    font-size: var(--font-text-desktop);
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.2rem;
    max-height: 2.4rem;
    transition: all 400ms ease-in;
}

.featured-big-card:hover .infos-featured .text-featured .summary {
    line-height: 1.2rem;
    max-height: 3.6rem;
    -webkit-line-clamp: 3;
    color: white;
    text-decoration: none;
}

.featured-big-card:hover .infos-featured .icon {
    background-color: var(--dark-blue);
    color: white;
}

.featured-big-card:hover .infos-featured {
    min-height: 21%;
}

.featured-bigbox-image-container .icon {
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: var(--main-blue);
    border-radius: 50%;
    margin-top: auto;
    margin-bottom: 1vmin;
    margin-left: 1vmin;
}

.featured-bigbox-image-container .icon {
    min-height: 25px;
    min-width: 25px;
    max-width: 35px;
    max-height: 25px;
}

    .featured-bigbox-image-container .icon i {
        font-size: 14px;
    }


@media only screen and (max-width: 70em) {
    .featured-container {
        padding: 1em var(--padding-sides-tablet);
    }

    .featured-cards {
        grid-template-columns: repeat(4,1fr);
    }

    .featured-big-card {
        grid-column-start: 1;
        grid-column-end: 5;
        grid-row-start: 1;
        grid-row-end: 2;
        height: auto;
        display: flex;
        /*padding-top: 50%;*/
        position: relative;
        border-radius: 5px;
        overflow: hidden;
    }

        .featured-big-card .featured-bigbox-image-container {
            width: 100%;
            overflow: hidden;
            border-radius: 5px;
            /*height: 100%;*/
            position: initial;
        }

            .featured-big-card .featured-bigbox-image-container .featured-f-card-image {
                padding: 0;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
            }

    .featured-f-card-type.featured-f-card-summary {
        font-size: 0.7rem;
        color: var(--grey);
    }

    .featured-f-card-title {
        font-size: var(--font-text-mobile);
        line-height: 1rem;
        min-height: 2rem;
    }

    .featured-f-card-readmore {
        font-size: 0.7rem;
        color: var(--main-blue);
        text-decoration: underline;
        position: absolute;
        bottom: 1em;
        cursor: pointer;
    }
}

@media only screen and (max-width: 45em) {
    .featured-container {
        padding: 1em var(--padding-sides-mobile);
    }

    .featured-cards {
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.75em;
    }

    .featured-big-card {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
        height: auto;
        display: flex;
        /*padding-top: 50%;*/
        position: relative;
        border-radius: 5px;
        overflow: hidden;
        /*box-shadow: 0 0 3px 0px rgb(0 0 0 / 16%);*/
    }

        .featured-big-card .featured-bigbox-image-container {
            width: 100%;
            overflow: hidden;
            border-radius: 5px;
            /*height: 100%;*/
            position: initial;
        }

            .featured-big-card .featured-bigbox-image-container .featured-f-card-image {
                padding: 0;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
            }

    .featured-f-card-text {
        padding: 0.5em 0.5em 2em 0.5em;
    }

    .featured-f-card-type.featured-f-card-summary {
        font-size: 0.7rem;
        color: var(--grey);
    }

    .featured-f-card-summary {
        margin-top: 0.25em;
    }

    .featured-f-card-title {
        font-size: var(--font-text-mobile);
        line-height: 1rem;
        min-height: 2rem;
    }

    .featured-f-card-readmore {
        font-size: 0.7rem;
        color: var(--main-blue);
        text-decoration: underline;
        position: absolute;
        bottom: 1em;
        cursor: pointer;
    }

    .infos-featured {
        position: absolute;
        bottom: 0;
        display: flex;
        padding: 0.5em;
        background: linear-gradient(rgb(0 0 0 / 30%),rgba(0,0,0,0.4));
        align-items: start;
        width: 100%;
        min-height: 18%;
        margin-bottom: 0;
        transition: all 500ms ease-in;
        color: white;
        grid-gap: 0.125em;
    }

    /*.infos-featured:hover {
            min-height: 100%;
        }*/

    .featured-f-card {
        background-color: var(--uitgelicht-grey);
        box-shadow: 0 0 3px 0px rgb(0 0 0 / 16%);
    }

    .text-featured .title {
        font-size: var(--font-text-mobile);
        /*color: var(--main-blue);*/
        line-height: 1.2rem;
        min-height: 1.2rem;
        overflow: hidden !important;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .infos-featured .text-featured .summary {
        /*color: var(--dark-grey);*/
        font-size: var(--font-text-mobile);
        line-height: 1rem;
        max-height: 3rem;
        transition: none;
        -webkit-line-clamp: 3;
    }

    .infos-featured:hover .text-featured .summary {
        line-height: 1rem;
        max-height: 4rem;
        -webkit-line-clamp: 4;
    }

    .featured-bigbox-image-container .icon {
        margin: auto 0 0 0;
    }

    .featured-bigbox-image-container:hover .icon {
        background-color: var(--main-blue);
        color: white;
    }

    .featured-f-card-title {
        color: var(--main-blue);
    }

    .featured-f-card-image-container {
        border-radius: 5px 5px 0 0
    }
}
