﻿.expert__home {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "search"
        "expert"
        "current"
        "quicklinks"
        "newsfeed";
}

.expert__topics {
    grid-area: expert;
    display: grid;
    row-gap: 1rem;
    grid-auto-rows: min-content;
}

.expert__topics__title {
    font-weight: 700;
    border-bottom: 1px solid;
    margin-bottom: .5rem;
    color: black !important;
}

.expert__topics ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: .5rem;
    column-gap: .5rem;
    margin-bottom: 0 !important;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

    .expert__topics ul li.topic-full-width {
        grid-column-start: 1;
        grid-column-end: 4;
        text-align: center;
    }

    .expert__topics ul li.single a {
        text-align: center;
    }

.topic-link {
    display: block;
    height: 150px;
    position: relative;
    overflow: hidden;
}

    .topic-link:before {
        position: absolute;
        bottom: 0;
        left: 0;
        content: "";
        width: 100%;
        height: 150px;
        filter: grayscale(100%);
        -webkit-transition: transform 1s ease, filter 1s ease;
        -moz-transition: transform 1s ease, filter 1s ease;
        -o-transition: transform 1s ease, filter 1s ease;
        transition: transform 1s ease, filter 1s ease;
    }

    .topic-link:hover:before,
    .topic-link:focus:before,
    .topic-link:active:before {
        transform: scale(1.1);
        filter: grayscale(0%);
    }

a.topic-link:before {
    background-size: cover !important;
}

.topic-link-text {
    padding: 1em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 85%, rgba(0, 0, 0, 0) 100%);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
}

.topic-link:hover .topic-link-text,
.topic-link:focus .topic-link-text,
.topic-link:active .topic-link-text {
    text-decoration: underline;
}

#u-app_content .topic-link-view-all-topics {
    display: block;
    background-color: #006747;
    color: #fff;
    padding: 1.25em;
    margin-bottom: 1em;
    text-transform: uppercase;
    font-size: 1.25em;
}


    #u-app_content .topic-link-view-all-topics:hover,
    #u-app_content .topic-link-view-all-topics:focus,
    #u-app_content .topic-link-view-all-topics:active {
        color: #fff;
    }

@media only screen and (min-width:768px) {

    .expert__home {
        row-gap: 1rem;
        column-gap: 1rem;
        grid-template-columns: 4fr 9fr;
        grid-template-areas:
            "search search"
            "current expert"
            "quicklinks expert"
            "newsfeed newsfeed";
    }

    .topic-link-hurricane {
        height: 200px;
    }

        .topic-link-hurricane:before {
            height: 200px;
        }

    .expert__topics ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .topic-link-text {
        padding: 1em 1.5em;
    }

    #u-app_content .topic-link-view-all-topics {
        margin-bottom: auto;
    }
}
