/* ============================================================================ *
        Post Styles
    ---------------------------------------------------------------------------
        These are the styles which build all the various post types and their templates.
*/

.tmf-post.large:not(.attorney) img.primary {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

.tmf-post.small img.thumbnail {
    max-width: 100px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.tmf-post.medium img.thumbnail {
    max-width: 250px;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-top: 7px;
}

.tmf-post.medium img.thumbnail.mobile {
    margin-top: 7px;
}

.tmf-post img.primary {
    float: left;
    margin-top: 5px;
    max-width: 250px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.children .tmf-post.medium img.thumbnail {
    max-width: 150px;
}

/*----------Attorney Large----------*/
.tmf-post.attorney.large{}

.tmf-post.attorney.large .person-information {
    float: left;
    margin: 0 25px 25px 0;
}

.tmf-post.attorney.large img.primary {
    float: none;
    margin-right: 0;
    margin-bottom: 10px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
    box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
    max-width: 250px;
}

.tmf-post.attorney.large .contact-information {
    font-size: 17px;
    margin-top: 5px;
}

.tmf-post.attorney.large .vcard .label {
    font-size: 17px;
}

.tmf-post.attorney.large #page-content {
    margin-top: 0;
}

/*----------Attorney Small----------*/
.tmf-post.attorney.small{}

.tmf-post.attorney.small img.thumbnail {
    max-height: 100%;
    max-width: 100%;
    margin-right: 15px;
    margin-bottom: 15px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
    box-shadow: 0 1px 2px rgba(0,0,0, 0.4);
}

.tmf-post.attorney.small .excerpt{
    color: #666666;
    font-size: 17px;
}


/*----------Practice Area Small----------*/
.tmf-post.practice-area.small .title {
    color: #666666;
    font-size: .9em;
}

.tmf-post.practice-area.small .title a {
    color: #666666;
    text-decoration: underline;
}

.tmf-post.practice-area.small .title a:hover {
    text-decoration: none;
}

.tmf-post.practice-area.small .children{
    display: none;
}

/*----------Tesimonials Small----------*/
.tmf-post.testimonial.small {}

.tmf-post.testimonial.small .excerpt {
    background: #f5f5f5 url(../images/testimonial-quote.png) no-repeat 15px 15px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    color: #666666;
    font-size: 1.5em;
    line-height: 1.5em;
    font-style: normal;
    font-weight: 300;
    padding: 15px;
}

.tmf-post.testimonial.small .excerpt:after {
    content: "";
    background: url(../images/testimonial-tail.png) no-repeat;
    width: 18px;
    height: 24px;
    display: block;
    position: absolute;
    margin-top: 15px;
    right: 50px;
}

.tmf-post.testimonial.small .testimonial-description {
    color: #666666;
    font-size: .9em;
    font-weight: 700;
    font-style: normal;
    margin-right: 70px;
}

@media screen and (max-width: 650px) {
    .tmf-post.testimonial.small {
        padding: 15px 25px 30px;
    }
}

/*----------Location Small----------*/
.tmf-post.small.location {
    color: #666666;
    font-size: 17px;
    line-height: 24px;
}

.tmf-post.small.location .business-name {
    font-weight: 700;
}

.tmf-post.small.location a {
    color: #666666;
    text-decoration: none;
}

.tmf-post.small.location a:hover {
    text-decoration: underline;
}

.tmf-post.location .phone-1 .label:before {
    content: '';
    background: rgba(0, 0, 0, 0) url(../images/icon-phone-small.png) no-repeat scroll 5px 0px;
    display: inline-block;
    height: 20px;
    vertical-align: middle;
    width: 30px;
}

.tmf-post.location .phone-2 .label:before {
    content: '';
    background: rgba(0, 0, 0, 0) url(../images/icon-mobile-small.png) no-repeat scroll 7px 0px;
    display: inline-block;
    height: 23px;
    vertical-align: middle;
    width: 30px;
}

.tmf-post.location .fax .label:before {
    content: '';
    background: rgba(0, 0, 0, 0) url(../images/icon-fax-small.png) no-repeat scroll 0px 0px;
    display: inline-block;
    height: 20px;
    vertical-align: middle;
    width: 30px;
}

.tmf-post.location .email .label:before {
    content: '';
    background: rgba(0, 0, 0, 0) url(../images/icon-email-small.png) no-repeat scroll 4px 0px;
    display: inline-block;
    height: 16px;
    vertical-align: middle;
    width: 30px;
}

@media screen and (max-width: 850px) {
    .tmf-post.small.location img{
        float: left;
        margin-right: 25px;
    }
}

@media screen and (max-width: 730px) {
    .tmf-post.small.location img{
        float: none;
        margin-right: 0;
    }  
}

/*---------Location Medium and Large----------*/
.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;
    }

    .tmf-post.attorney.large .person-information {
        float: none;
        margin: 0 0 25px 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;
    }
}
