/**
 * Used by /news/newsletters/index.html.
 */

body {
    background-color: #F5F5F7;
}

#newsletters {
    position: relative;
    overflow: hidden;
}
#newsletters .month-section {
    position: relative;
    margin-top: 60px;
}
#newsletters .month-section:first-child {
    margin-top: 0px;
}
#newsletters .grid-row {
    position: relative;
    margin: 0px -10px;
    white-space: nowrap;
    padding-bottom: 20px;
}
#newsletters .grid-row:after {
    content: "";
    display: table;
    clear: both;
}
#newsletters .grid-col {
    position: relative;
    display: inline-block;
    float: left;
    width: 25%;
    padding: 10px;
}

#newsletters .newsletter-card {
    position: relative;
    display: block;
    font-size: 0px;
    background-color: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    color: #202020;
    width: 360px;
    max-width: 100%;
    margin: 0px auto;
    
    -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);
}
#newsletters .newsletter-card:before {  /* 5:7 aspect ratio */
    content: "";
    position: relative;
    display: block;
    width: 100%;
    padding-top: 140%;
}

#newsletters .newsletter-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;
}

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

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

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

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

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

#newsletters .newsletter-card .link {
    position: absolute;
    display: block;
    font-size: 0px;
    width: 100%;
    height: 40px;
    bottom: 20px;
    padding: 0px 20px;
    text-align: left;
}

#newsletters .newsletter-card .desc {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 40px;
}

#newsletters .newsletter-card .link a {
    position: absolute;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    right: 20px;
    top: 0px;
    padding: 0px 18px;
    border-radius: 1000px;
    background-color: #006EF0;
    font-size: 15px;
    color: #FFFFFF;
    
    -webkit-transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#newsletters .newsletter-card .link a:hover {
    background-color: #287AFF;
}
#newsletters .newsletter-card .link a > .icon {
    position: relative;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: top;
    line-height: 36px;
}


/**** CSS media queries ****/
@media (max-width: 1200px) {
    #newsletters .grid-col {
        width: 33.33%;
    }
}

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

@media (max-width: 640px) {
    #newsletters .grid-col {
        width: 100%;
    }
    #newsletters {
        padding: 20px 0px;
    }
    #newsletters .month-section {
        margin-top: 40px;
    }
}

/* mobile browsers */
@media (max-width: 600px) {
    
}

@media (max-width: 500px) {
    /* collapse subheader */
    #subheader .links {
        display: none;
    }
    #subheader .menu-button {
        display: block;
    }
    
    #newsletters .grid-col {
        width: 100%;
    }
}


/* disable hover effects on touch devices */
@media (hover: none), (hover: on-demand) {
    #newsletters .newsletter-card .link a:hover,
    #newsletters .newsletter-card .link a:visited {
        background-color: #006EF0;
    }
}

