/**
 * Used by all pages under /news/index.html.
 */

body {
    background-color: #F5F5F7;
}

/* poster */
#posterBackground {
    background-image: url("/assets/images/news/news-bg-large.jpg");
}

/* news content */
#news {
    position: relative;
    padding: 0px 40px;
}
#news .grid-row {
    position: relative;
    margin: 0px -20px;
    white-space: nowrap;
}
#news .grid-row:after {
    content: "";
    display: table;
    clear: both;
}
#news .grid-col {
    position: relative;
    display: inline-block;
    float: left;
    width: 20%;
    padding: 15px 10px;
    text-align: left;
}

#news .news-card {
    position: relative;
    display: block;
    font-size: 0px;
    background-color: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    color: #202020;
    
    -webkit-box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.08);
    -ms-box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.08);
    -o-box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.08);
    box-shadow: 2px 4px 12px 0px rgba(0, 0, 0, 0.08);
    
    -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: -moz-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: -ms-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: -o-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#news .news-card:before {  /* 2:3 aspect ratio */
    content: "";
    position: relative;
    display: block;
    width: 100%;
    padding-top: 150%;
}
#news .news-card:hover {
    color: #202020;
    
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
    transform: scale(1.02);
    
    -webkit-box-shadow: 2px 4px 14px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 2px 4px 14px 0px rgba(0, 0, 0, 0.15);
    -ms-box-shadow: 2px 4px 14px 0px rgba(0, 0, 0, 0.15);
    -o-box-shadow: 2px 4px 14px 0px rgba(0, 0, 0, 0.15);
    box-shadow: 2px 4px 14px 0px rgba(0, 0, 0, 0.15);
}
#news .news-card:visited {
    color: #202020;
}

#news .news-card .photo {
    position: absolute;
    font-size: 0px;
    width: 100%;
    height: 50%;
    left: 0px;
    top: 0px;
    border-radius: 18px 18px 0px 0px;
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#news .news-card .details {
    position: absolute;
    display: block;
    font-size: 0px;
    width: 100%;
    height: 50%;
    left: 0px;
    bottom: 0px;
    overflow: hidden;
}
#news .news-card .details:before {  /* vertical align */
    content: "";
    position: relative;
    display: inline-block;
    width: 0px;
    height: 100%;
    vertical-align: middle;
}

#news .news-card .content {
    position: relative;
    display: inline-block;
    font-size: 0px;
    width: 100%;
    padding: 0px 20px;
    text-align: center;
    vertical-align: middle;
}

#news .news-card .by {
    position: relative;
    font-family: Allura;
    font-size: 22px;
    line-height: 1em;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#news .news-card .title {
    position: relative;
    display: block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 17px;
    line-height: 1em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#news .news-card .date {
    position: relative;
    display: block;
    margin-top: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1em;
    color: #000000;
}

#news .news-card .content p {
    font-size: 15px;
    line-height: 1.4em;
    height: 7em;  /* 5 lines */
    white-space: normal;
    overflow: hidden;
    margin: 0px;
    margin-top: 20px;
    text-align: center;
}


/* filter */
#filter {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    margin-top: -20px;
    padding: 0px 40px;
    font-size: 0px;
}
#filter .filter-container {
    position: relative;
    display: inline-block;
    width: 600px;
    max-width: 100%;
    padding: 0px;
}
#filter .grid-row {
    position: relative;
    margin: -15px;
    white-space: nowrap;
}
#filter .grid-row:after {
    content: "";
    display: table;
    clear: both;
}
#filter .grid-col {
    position: relative;
    display: inline-block;
    float: left;
    width: 50%;
    padding: 15px;
    text-align: left;
}
#filter .grid-cell {
    position: relative;
}
#filter .filter-label {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 70px;
    padding-right: 15px;
    text-align: right;
    line-height: 36px;
    font-size: 15px;
    font-weight: 600;
}
#filter .filter-field {
    position: relative;
    display: block;
    line-height: 36px;
    border: 1px solid #CECECE;
    border-radius: 9px;
    text-align: left;
    font-size: 14px;
    padding-left: 15px;
    background-color: #FFFFFF;
    color: #777777;
    margin-left: 70px;
}

#filterMessage {
    position: relative;
    display: none;
    padding-top: 80px;
    padding-bottom: 30px;
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: #777777;
}


/**** CSS media queries ****/
@media (max-width: 2000px) {
    #news .grid-col {
        width: 25%;
    }
}

@media (max-width: 1500px) {
    #news .grid-col {
        width: 33.33%;
    }
}

@media (max-width: 1360px) {
    #posterBackground {
        background-image: url("/assets/images/news/news-bg-medium.jpg");
    }
}

@media (max-width: 1080px) {
    #news .grid-col {
        width: 50%;
    }
}

@media (max-width: 680px) {
    #news .grid-col {
        width: 100%;
    }
}

/* mobile browsers */
@media (max-width: 600px) {
    /* collapse subheader */
    #subheader .links {
        display: none;
    }
    #subheader .menu-button {
        display: block;
    }
    
    #posterBackground {
        background-image: url("/assets/images/news/news-bg-small.jpg");
    }
    
    #news {
        padding: 0px 20px;
    }
    #news .grid-row {
        margin: 0px -10px;
    }
    
    #filter {
        padding: 0px 20px;
    }
    #filter .grid-row {
        margin: -10px;
    }
    #filter .grid-col {
        padding: 10px;
    }
    #filter .filter-label {
        position: relative;
        width: auto;
        padding-right: 0px;
        text-align: left;
        font-size: 15px;
    }
    #filter .filter-field {
        margin-left: 0px;
    }
}

