/*
Formats the blog and blog entry ocntent types
Developed by UMB's central Office of Communications and Public Affairs, May 2019
*/


/*Blog landing page*/

.blog-landing {
    font-size: 0;
}
.blog-landing .blog-landing-entry {
    margin: 0;
    margin-bottom: 3.5em;
    margin-top: 0;
    font-size: 14px;
}
.blog-landing>a {
    display: inline-block;
    vertical-align: top;
}
.blog-landing .blog-landing-image {
    background-color: #3a3a3a;
    height: 12em; /*Height is a fallback in case sizing script fials*/
    background-size: cover;
    background-position: center center;
    border: 1px solid rgb(221, 221, 221);
    -webkit-transition: border .25s; /* Safari */
    transition: border .25s;
}
.blog-landing h4 {
    margin-top: 1.5em
}
.blog-landing h5 {
    font-size: .9em;
    font-weight: 600;
    color: #3a3a3a;
    margin-top: -.1em;
    margin-bottom: .5em;
    line-height: 1.2em;
    -webkit-transition: color .25s; /* Safari */
    transition: color .25s;
}
.blog-landing h4,
.blog-landing p,
.blog-landing .blog-date {
    margin-bottom: .5em;
    color: #000;
    -webkit-transition: color .25s; /* Safari */
    transition: color .25s;
}

.blog-landing .blog-date hr {
    display: none;
}

.blog-landing p.blog-blurb {
    font-size: .9em;
    margin-top:.5em;
}

.blog-landing .blog-landing-image-overlay {
    width: 100%;
    height: 100%;
    background-color: #007698;
    opacity: 0;
    -webkit-transition: opacity .25s; /* Safari */
    transition: opacity .25s;
}
.blog-landing a {
    text-decoration: none;
    color: #000;
    -webkit-transition: color .25s; /* Safari */
    transition: color .25s;
}

.blog-landing-link,
.blog-landing-link:hover,
.blog-landing-link:focus {
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    margin-right: 2em;
}

.blog-landing-utility {
margin-bottom: 2em;
}

.blog-landing-back-link:before {
    font-family: 'Icons';
    display: inline-block;
    font-size: .85em;
    content: "\e037";
    margin-right: .5em;
}

.blog-landing-rss-link:before {
    font-family: 'Icons';
    display: inline-block;
    font-size: .85em;
    content: "\e0b8";
    margin-right: .5em;
}

/*Alternate between 2 and three columns*/

.blog-landing>a:nth-of-type(8n-5),
.blog-landing>a:nth-of-type(8n-4),
.blog-landing>a:nth-of-type(8n-3),
.blog-landing>a:nth-of-type(8n-2),
.blog-landing>a:nth-of-type(8n-1),
.blog-landing>a:nth-of-type(8n),
.blog-related .blog-landing>a:nth-of-type(1),
.blog-related .blog-landing>a:nth-of-type(2),
.blog-related .blog-landing>a:nth-of-type(3) {
    width: 30%;
}
.blog-landing>a:nth-of-type(8n-1),
.blog-landing>a:nth-of-type(8n-4),
.blog-related .blog-landing>a:nth-of-type(2) {
    margin-right: 5%;
    margin-left: 5%;
}

.blog-landing>a:nth-of-type(8n-7),
.blog-landing>a:nth-of-type(8n-6) {
    width: 47.50%;
}
.blog-landing>a:nth-of-type(8n-7) {
    margin-right: 5%;
}

.blog-related .blog-landing>a:nth-of-type(1),
.blog-related .blog-landing>a:nth-of-type(3) {
    margin-left: 0;
    margin-right: 0;
}

/*A row of dark boxes*/

@media (min-width: 768px) {

    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) .blog-landing-entry,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) .blog-landing-entry,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) .blog-landing-entry {
        background-color: #3a3a3a;
        -webkit-transition: background-color .25s; /* Safari */
        transition: background-color .25s;
        padding-bottom: 1.5em;
    }

    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) h4,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) p,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) .blog-date,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) h4,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) p,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) .blog-date,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) h4,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) p,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) .blog-date {
        padding-right: 1.5em;
        padding-left: 1.5em;
        color: #fff !important;
    }
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) p.umb_light,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) p.umb_light,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) p.umb_light {
        padding-left: 0px;
    }
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) h5,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) h5,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) h5 {
        padding-right: 1.5em;
        padding-left: 1.5em;
        color: #F8F8F8 !important;
    }

    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) .blog-landing-image {
        border: 1px solid #3a3a3a;
    }

}

/*Responsive sizing*/

@media (max-width: 767px) {
    .blog-landing>a {
        width: 100% !important;
    }
    .blog-landing>a {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .blog-landing>a .blog-landing-entry {
        min-height: auto !important;
    }
}

/*Hover states*/

.blog-landing a:hover,
.blog-landing a:focus {
    color: #007698;
}
.blog-landing a:hover .blog-date hr,
.blog-landing a:focus .blog-date hr {
    color: #007698;
    background-color: #007698;
}
.blog-landing a:hover .blog-landing-image,
.blog-landing a:focus .blog-landing-image {
    border: 1px solid #007698;
}
.blog-landing a:hover .blog-landing-image-overlay,
.blog-landing a:focus .blog-landing-image-overlay {
    opacity: .3;
}
.blog-landing a:hover h4,
.blog-landing a:focus h4,
.blog-landing a:hover p,
.blog-landing a:focus p,
.blog-landing a:hover .blog-date,
.blog-landing a:focus .blog-date {
    color: #007698;
}

.blog-landing a:hover h5,
.blog-landing a:hover h5 {
    color: #007698;
}

@media (min-width: 768px) {
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) .blog-landing-entry:focus,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) .blog-landing-entry:focus,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) .blog-landing-entry:focus,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5) .blog-landing-entry:hover,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4) .blog-landing-entry:hover,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3) .blog-landing-entry:hover {
        background-color: #007698;
    }
    
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5):hover .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4):hover .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3):hover .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-5):focus .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-4):focus .blog-landing-image,
    .blog-landing:not(.blog-related)>a:nth-of-type(8n-3):focus .blog-landing-image {
        border: 1px solid #007698;
    }
}


/*Slight customizations to the button in the Blog Feed content type*/

p.blog-feed-btn {
	text-align: right;  margin-top: -2em;
}




