/*****
zacks.com
Bio CSS
June, 2014
*****/

/*****************************/
#bio{
    margin-top: 0;
}
#bio img{
    border: none;
    margin: 0!important;
}
#bio iframe{
    margin: 0!important;
}
#bio > section{
    width: 165px;
    float: left;
    border-top: none;
}
#bio > section + section{
    width: 440px;
    float: left;
    border-top: none;
    display: block;
    padding-left: 16px;
    border-left: 1px solid #cccccc;
}

.bio_left header.mugshot_huge{
    text-align: center;
}
.bio_left header.mugshot_huge span{
    margin: -1px auto 0;
    float: none;
    height: 183px;
    overflow: hidden;
    display: block;
    width: 129px;
    cursor: pointer;
}
.bio_left header.mugshot_huge img{
    position: inherit;
}
span#bio_pop, span#pop{
    height: 21px;
}
.bio_left > div{
    clear: both;
    overflow: hidden;
    margin-top: 15px !important;
    margin-left: 16px !important;
}

/* new styles for bio page */
.bio_left .mugshot_huge span + h2{
    margin-top: 5px;
}

.bio_left .add_follow_author{
    line-height: 15px;
}

.bio_left button.add_follow_author i:before {
    top: 1px;
}

/* only for firefox */
@-moz-document url-prefix() {
    .bio_left .add_follow_author i:before {
        font-size: 16pt;
    }

    .bio_left a.add_follow_author {
        height: 14px;
    }
}

@media(max-width:1023px){
    /* upto 1023px */
    #bio{
        padding-right: 10px;
    }
    #bio > section.bio_left{
        width: 100%;
    }

    .bio_left header.mugshot_huge{
        float: left;
        width: 130px;
    }
    .bio_left header.mugshot_huge span{
        margin: -1px 0 0;
    }
    .bio_left > div{
        float: left;
        clear: none;
    }
    .bio_left > div.bulleted{
        margin-top:0 !important;
    }
    #bio > section + section{
        border-left: 0;
        padding-left: 0;
        margin-top: 15px;
        width: auto;
    }
}

@media (max-width: 575px) {
    /* upto 275px */
    #bio > section.bio_left{
        margin-top: 90px;
    }
}

@media (min-width: 576px) and (max-width:1023px) {
    /* from 576 px to 1023 px */
    #bio > section.bio_left{
        margin-top: 110px;
    }
}

/**** Bio Commentary *****/
.author_commentary{
    position: relative;
}
.author_commentary header h1{
    font-size: 13.5pt !important;
}
.author_commentary .social_media_row{
    width: 175px;
    border-bottom: none;
    position: absolute;
    top: 6px;
    right: 0;
}

.author_commentary > div > h1{
    border-bottom: 1px solid #CACACA;
    padding: 10px 0 2px 0;
    margin-bottom: 10px;
}
#bio h1{
    font-size: 10pt;
}
#bio div article p{
    padding: 6px 0 0 0;
}

#bio .social_media_row div{
    margin: inherit;
}
#bio .fb,
#bio .twt,
#bio .share{
    float: left;
    padding-left: 10px;
}
#bio .fb{
    width: 50px;
}
#bio .twt{
    width: 59px;
}
#bio .share{
    width: 35px;
}
.author_commentary .latest_comments p{
    margin-left: 12px;
}

#related_posts > div article{
    padding-bottom: 3px;
}
#related_posts > div{
    margin-bottom: 18px;
}


/***** Overlay Popup ******/
#overlay_form {
    background: white;
    box-shadow: 1px 1px 0 #FFFFFF;
    position: absolute;
    width: 433px;

    -moz-box-shadow: 1px 1px 0 #fff;
    -webkit-box-shadow: 1px 1px 0 #fff;
    box-shadow: 1px 1px 0 #fff;

    z-index: 1000;
}

#overlay_form img{border: none;}
#overlay_form .center{text-align: center;}
.green_head{
    background: url('/National_Library/oe_/https://staticx.zacks.com/images/zacks/pop_green_header.png');
    height: 26px;
    }
.green_head img{
    width: 20px;
    margin: 3px 3px 0 0;
}
.bio_pop_body{
    border: 1px solid #aaaaaa;
    background: #fff;
    padding: 10px 10px 15px;
}

#bio_pop, #pop{
    display: block;
    text-align: center;
}
#pop{
    margin-top: 0 !important;
}
#bio_pop{
    padding: 0 5px;
}

/* Bio list Page */

#bio_container h2{
    margin-top: 8px;
}

#bio_container ul {
    padding-left: 0;
}

#bio_container ul li {
    list-style: none;
    width: 128px;
    display: inline-block;
    margin-right: 18%;
}

#bio_container .thumbnail_large {
    text-align: center;
}

#bio_container .thumbnail_large > span {
    position: relative;
    float: left;
    margin: -1px auto 5px;
    width: 128px;
    border: 1px solid #cacaca;
}

#bio_container .thumbnail_large .author-img {
    display: block;
    overflow: hidden;
    height: 193px;
}

#bio_container .thumbnail_large .author-img img {
    position: inherit;
}

#bio_container ul li h3 {
    margin-bottom: 5px;
    font-size: 10pt;
    text-align: center;
    width: 128px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

}

#bio_container ul li h3 + p {
    margin-bottom: 46px;
}

.add_follow_author {
    position: relative;
    cursor: pointer;
    min-width: 120px;
    height: 23px;
    background: #cacaca;
    padding: 4px 4px 4px 14px;
    border: 1px solid #b5b5b5;
    border-radius: 2px;
    color: #4b4b4b;
    font-size: 10pt;
    font-weight: bold;
    line-height: 14px;
    z-index: 9;
}

a.add_follow_author {
    display:inline-block;
	height: 15px;
    min-width: 104px;
}

a.following_btn:hover, 
a.add_follow_author:hover{
    color: #4b4b4b !important;
}

.add_follow_author i {
    position: relative;
}

.add_follow_author i:before {
    content: "\002b";
    position: absolute;
    left: -13px;
    top: 0;
    font-size: 16pt;
    color: #4b4b4b;
    font-style: normal;
}

.following_btn{
    position: relative;
    color: #4b4b4b;
    font-size: 9pt;
    font-weight: bold;
}

.following_btn i{
    position: relative;
    top: 1px;
    border: 3px solid #4b4b4b;
    display: inline-block;
    margin-right: 6px;
    width: 10px;
    height: 10px;
}

.following_btn i:before{
    content: "";
    position: absolute;
    right: -3px;
    top: -4px;
    background-color: #fafafa;
    width: 6px;
    height: 9px;
}

.following_btn:after{
    content: "";
    position: absolute;
    left: 8px;
    top: -5px;
    display: inline-block;
    transform: rotate(45deg);
    height: 12px;
    width: 3px;
    border-bottom: 3px solid #4b4b4b;
    border-right: 3px solid #4b4b4b;
}

/* modal */
.bio-modal-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgb(0 0 0 / 80%);
}

.bio-modal-wrapper .modal-content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 600px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}

.bio-modal-wrapper .modal-header{
    position: relative;
    display: flex;
    width: 99%;
    padding: 10px 0px 10px 10px;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
    background: linear-gradient(to bottom, #7ecd40 0, #61bf35 4%, #5eaf39 7%, #59a42e 11%, #50a331 14%, #4da324 18%, #54a131 21%, #4e9e2d 29%, #489128 39%, #468c29 43%, #408322 50%, #3e7c24 54%, #37761e 57%, #346f1c 61%, #306419 71%, #32651a 79%, #2f6818 82%, #366d1d 86%, #376d1f 89%, #387621 93%, #377d1a 96%, #437f25 100%);
}

.bio-modal-wrapper .modal-header h4{
    margin: 0;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 -1px #000;
}

.bio-modal-wrapper .modal-header button.close{
    position: absolute;
    right: 10px;
    top: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 0;
    border-radius: 3px;
}

.bio-modal-wrapper .modal-header button.close i{
    color: #000;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
}

.bio-modal-wrapper .modal-body{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.bio-modal-wrapper .modal-body p:last-child {
    width: 100%;
    margin-top: 10px !important;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.bio-modal-wrapper .modal-body p:last-child button {
    padding: 10px 10px;
    width: 120px;
    margin: 0 auto;
    cursor: pointer;
    background: linear-gradient(to bottom, #7ecd40 0, #61bf35 4%, #5eaf39 7%, #59a42e 11%, #50a331 14%, #4da324 18%, #54a131 21%, #4e9e2d 29%, #489128 39%, #468c29 43%, #408322 50%, #3e7c24 54%, #37761e 57%, #346f1c 61%, #306419 71%, #32651a 79%, #2f6818 82%, #366d1d 86%, #376d1f 89%, #387621 93%, #377d1a 96%, #437f25 100%);
    border-radius: .3rem;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    border: 0;
}

.showSubscriptionExists .modal-body {
    font-size: 24px;
    text-align: center;
}

.showSubscriptionExists .modal-body p:first-child{
    font-size: 24px;
}

/* only for firefox */
@-moz-document url-prefix() {
	button.add_follow_author {
        line-height: 14px;
    }
	
    button.add_follow_author i:before {
        font-size: 13pt;
        top: -1px;
    }

    a.add_follow_author i:before {
        top: 1px;
    }

    .bio-modal-wrapper .modal-header button.close i {
        font-size: 11pt;
        padding-left: 2px;
    }
}
  
/* Media Query for Bio List Page */
@media (max-width: 575px) {
    #main_content .main_body>section#bio_container{
        margin-left: 2%;
        margin-right: 2%;
    }

    #bio_container h2{
        margin-top: 90px;
    }

    #bio_container ul {
        gap: 0 5px;
      }

      #bio_container ul li {
        margin: 0 auto;
    }
}

@media (max-width: 767px){
    .bio-modal-wrapper .modal-content{
        width: 80%;
    }
}

@media (min-width: 576px) and (max-width:1023px) {
    /* from 576 px to 1023 px */
    #bio_container h2{
        margin-top: 100px;
    }
    
    #bio_container ul {
      gap: 0 60px;
    }
}

@media (max-width: 1023px) {
    /* upto 1023 px */
    #bio_container ul {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    }

    #bio_container ul li h3 + p {
        margin-bottom: 20px;
    }

    #bio_container ul li h3 + p button.modal_external {
        display: block !important;
    }
    
    #bio_container ul li h3 + p button.modal_external.hide {
        display: none !important;
    }


    #bio_container ul li h3 + p .following_btn:after{
        left: 7px;
        top: -4px;
        height: 11px;
        width: 3px;
        border-bottom: 2px solid #333;
        border-right: 2px solid #333;
    }
}

@media (min-width: 1024px) {
    /* from 1024 px */
    #bio_container ul {
        margin-top: 20px;
    }

    #bio_container ul li:nth-child(3n) {
    /* third child in a row */
      margin-right: 0;
    }

    #bio_container ul li:nth-last-child(-n+3) h3 + p {
        /* last three childs of last row */
        margin-bottom: 0;
    }
}
/* EOF */
