/* ============================================================================ *
        Post Styles
    ---------------------------------------------------------------------------
        These are the styles which build all the various post types and their templates.
*/

.tmf-post.post.medium .title {
    margin-bottom: 0;
}

.tmf-post.large:not(.attorney) img.primary {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

.tmf-post.small img.thumbnail {
    float: left;
    max-width: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.tmf-post.medium img.thumbnail {
    float: left;
    max-width: 150px;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-top: 7px;
}

.tmf-post.medium img.thumbnail.mobile {
    margin-top: 7px;
}

.tmf-post.large img.primary {
    float: left;
    margin-top: 5px;
    max-width: 350px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.children .tmf-post.medium img.thumbnail {
    max-width: 150px;
}

.tmf-post .excerpt a{
    text-decoration: underline;
}

.tmf-post .excerpt a:hover{
    text-decoration: none;
}

.tmf-post.large.attorney img.primary {
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.tmf-post.attorney.large h1#page-title {
    font-size: 30px;
}

.tmf-post.medium.practice-area .children .title, 
.tmf-post.large.practice-area .children .title {
    font-size: 34px;
}

.tmf-post.medium.practice-area .children .excerpt, 
.tmf-post.large.practice-area .children .excerpt {
    font-size: 20px;
}

.tmf-post.post.medium .read-more-button, 
.tmf-post.news.medium .read-more-button {
    display: none;
}


/*------Attorney Home-----*/
.tmf-post.attorney.home {}

.tmf-post.attorney.home img.home-image {
    max-height: 287px;
    max-width: 287px;
    display: block;
    margin-right: 30px;
    float: left;
}

.tmf-post.attorney.home .title{
    color: #ffffff;
    font-family: 'Crimson Text', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tmf-post.attorney.home .title a{
    color: #ffffff;
    text-decoration: none;
}

.tmf-post.attorney.home .title a:hover{
    text-decoration: underline;
}

.tmf-post.attorney.home .excerpt {
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    margin-top: 0px;
}

.tmf-post.attorney.home .attorney-buttons {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
}

.tmf-post.attorney.home .tmf-button {
    display: inline-block;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 25px;
    padding: 13px 15px 18px;
}

@media screen and (max-width: 980px) {
    .tmf-post.attorney.home{
        text-align: center;
    }

    .tmf-post.attorney.home img.home-image{
        float: none;
        margin: 0 auto 25px;
    }
}

/*------Attorney Small-----*/
.tmf-post.attorney.small {}

.tmf-post.attorney.small img.thumbnail {
    max-height: 187px;
    max-width: 140px;
    margin-right: 10px;
    margin-bottom: 0;
}

.tmf-post.attorney.small .excerpt {
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    margin-top: 0;
}

/*----------Practice Area Home----------*/
.tmf-post.practice-area.home-images,
.tmf-post.practice-area.home-excerpt {
    border-bottom: none;
    display: inline-block;
    line-height: 0;
    margin: 0;
    width: 255px;
    vertical-align: top;
    padding: 0;
    padding-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.practice-area-top {
    position: relative;
}

.tmf-post.practice-area.home-images img.home-thumbnail {
    max-width: 255px !important;
    width: 100%;
    height: 255px;
}

.tmf-post.practice-area.home-images .title {
    background: rgba(49, 69, 108, 0.7);
    bottom: 0;
    color: #fff;
    font-family: 'Crimson Text', serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 26px;
    padding: 15px 4px;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    height: 65px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.tmf-post.practice-area.home-images .title a {
    color: #fff;
    text-decoration: none;
}

.tmf-post.practice-area.home-images:hover .title,
.tmf-post.practice-area.home-images.active .title  {
    background: #31456c;
}

.tmf-post.practice-area.home-images.active:after {
    content: "";
    position: absolute;
    top: calc(100% - 10px);
    left: calc(50% - 10px);
    border-top: solid 10px #31456c;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
    width: 0;
    height: 0;
}

.tmf-post.practice-area.home-images:not(.active) a:before {
    content: "";
    background: rgba(255, 255, 255, 0.4);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tmf-post.practice-area.home-excerpt {
    width: 100%;
    max-width: 1300px;
    visibility: hidden;
    height: 0;
    opacity: 0;
    display: inherit;
}

.tmf-post.practice-area.home-excerpt.active {
    height: auto;
    visibility: visible;
    opacity: 1;
    display: inline-block;
}

.tmf-post.practice-area.home-excerpt .excerpt {
    color: #fff;
    text-align: justify;
    padding: 0 10px 20px;
    font-size: 0.8em;
    line-height: 1.5em;
}

@media screen and (max-width: 600px) {
    .tmf-post.practice-area.home-images {
        display: block;
        margin: 0 auto;
    }
}

/*----------Practice Area Small----------*/
.tmf-post.small.practice-area {}

.tmf-post.practice-area.small .title {
    font-size: 22px;
    color: #ffffff;
}

.tmf-post.practice-area.small .title a {
    color: #ffffff;
    text-decoration: none;
}

.tmf-post.practice-area.small .title a:hover {
    text-decoration: underline;
}

.tmf-post.practice-area.small .children {
    display: none;
}

/*------Post-----*/
.tmf-post.post.small {
    box-sizing: border-box;
    display: table-cell;
    width: 33.3333333%;
    vertical-align: top;
}

.tmf-post.post.small .small-inner{
    padding: 0 25px;
}

.tmf-post.small.post img.thumbnail {
    float: left;
    max-width: 118px;
    margin-right: 10px;
    margin-bottom: 0;
    margin-top: 7px;
}

.tmf-post.post.small .title.has-post-date, 
.tmf-post.news.small .title.has-post-date {
    color: #31456c;
    font-size: 24px;
    font-weight: 600;
    line-height: 19px;
    margin-left: 0;
    padding-top: 0;
}

.tmf-post.post.small .title.has-post-date a, 
.tmf-post.news.small .title.has-post-date a {
    text-decoration: none;
}

.tmf-post.post.small .title.has-post-date a:hover, 
.tmf-post.news.small .title.has-post-date a:hover {
    text-decoration: underline;
}

.tmf-post.post.small .date, 
.tmf-post.news.small .date {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    margin-top: 10px;
    font-style: italic;
}

.tmf-post.post.small .excerpt,
.tmf-post.news.small .excerpt {
    color: #000;
    font-size: 20px;
    line-height: 25px;
}

@media screen and (max-width: 850px) {
    .tmf-post.post.small {
        display: block;
        width: 100%;
    }
}

/*----------Testimonial Small----------*/
.tmf-post.testimonial.small{}

.tmf-post.testimonial.small .excerpt {
    color: #404040;
    font-size: 35px;
    line-height: 54px;
    font-weight: 400;
    font-style: italic;
}

.tmf-post.testimonial.small .testimonial-description {
    color: #404040;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
}

/*----------Locations Small----------*/
.tmf-post.small.location {
    color: #333333;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin-top: 10px;
}

.tmf-post.small.location .small-cell-1,
.tmf-post.small.location .small-cell-2{
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.tmf-post.small.location .small-cell-2{
    padding-left: 25px;
}

.tmf-post.small.location .business-name{
    font-weight: 600;
}

.tmf-post.small.location .static-map {
    margin-bottom: 0;
}

.tmf-post.small.location .static-map img {    
    border: 2px solid #fff;
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: block;
}

.tmf-post.small.location .phone-1 .label {
    background: rgba(0, 0, 0, 0) url(../images/icon_sprite_3x.png) no-repeat scroll 0px 0px;
    background-size: 462px;
    display: inline-block;
    font-size: 0;
    height: 20px;
    vertical-align: middle;
    width: 25px;
}

.tmf-post.small.location .fax .label {
    background: rgba(0, 0, 0, 0) url(../images/icon_sprite_3x.png) no-repeat scroll -32px 0px;
    background-size: 462px;
    display: inline-block;
    font-size: 0;
    height: 25px;
    vertical-align: middle;
    width: 25px;
}

.tmf-post.small.location .email .label {
    background: rgba(0, 0, 0, 0) url(../images/icon_sprite_3x.png) no-repeat scroll -68px 0px;
    background-size: 462px;
    display: inline-block;
    font-size: 0;
    height: 18px;
    vertical-align: middle;
    width: 25px;
}

.tmf-post.small.location a{
    color: #333333;
    text-decoration: none;
}

.tmf-post.small.location a:hover{
    text-decoration: underline;
}

@media screen and (max-width: 1070px) {
    .home .tmf-post.small.location .small-cell-1,
    .home .tmf-post.small.location .small-cell-2{
        display: block;
    }

    .home .tmf-post.small.location .small-cell-2{
        padding: 15px 0 0;
        text-align: center;
    }
}

@media screen and (max-width: 670px) {
    .tmf-post.small.location .small-cell-1,
    .tmf-post.small.location .small-cell-2{
        display: block;
    }

    .tmf-post.small.location .small-cell-2{
        padding: 15px 0 0;
        text-align: center;
    }
}

@media screen and (max-width: 650px) {
    .home .tmf-post.small.location {
        margin-top: 0;
    }

    .home .tmf-post.small.location .static-map img{
        margin: auto;
    }
}

/*----------Location Medium----------*/
.tmf-post.location.medium h2 {
    font-weight: 600;
    font-size: 30px;
}

.tmf-post.location .dynamic-map{
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.tmf-post.location .dynamic-map iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ======================================== *
        Responsive Posts
 * ======================================== */
@media screen and (min-width: 850px) and (max-width: 1000px), screen and (max-width: 600px) {
    .tmf-post.medium.post .taxonomy-container {
        clear: both;
    }

    .tmf-post.medium.post .read-more-button {
        margin-bottom: 25px;
    }

    .tmf-post.medium.event .taxonomy-container {
        clear: both;
    }

    .tmf-post.medium.event .read-more-button {
        margin-bottom: 25px;
    }


    .tmf-post.medium.post img.primary {
        max-width: 150px;
    }

    .tmf-post.medium img.thumbnail {
        max-width: 175px;
    }

    .children .tmf-post.medium img.thumbnail {
        max-width: 125px;
    }

    .tmf-post.medium.attorney .read-more-button.top,
    .tmf-post.medium.staff .read-more-button.top {
        display: none;
    }

    .tmf-post.medium.attorney .read-more-button.bottom,
    .tmf-post.medium.staff .read-more-button.bottom {
        display: block;
        text-align: center;
    }

    .tmf-post img.primary {
        max-width: 200px;
    }

    .tmf-post.large.attorney img.primary,
    .tmf-post.large.staff img.primary {
        max-width: 250px;
    }
}

@media screen and (max-width: 600px) {
    .tmf-post.large.attorney .primary,
    .tmf-post.large.staff .primary {
        float: none;
        margin-bottom: 15px;
    }

    .tmf-post.large:not(.attorney) img.primary {
        float: none;
        margin-right: auto;
        margin-left: 0;
    }
}


@media screen and (max-width: 400px) {
    .tmf-post.small img.thumbnail {
        max-width: 75px;
    }

    .tmf-post.attorney.small img.thumbnail, 
    .tmf-post.staff.small img.thumbnail {
        max-width: 75px;
    }

    .tmf-post.medium img.thumbnail {
        max-width: 125px;
    }

    .children .tmf-post.medium img.thumbnail {
        max-width: 100px;
    }

    .tmf-post.medium.post img.primary {
        max-width: 100px;
    }

    .tmf-post.attorney.medium img.thumbnail, 
    .tmf-post.staff.medium img.thumbnail {
        max-width: 75px;
    }

    .tmf-post img.primary {
        max-width: 150px;
    }
}
