/*
 * page_family.css
*/


/* ------------------------ */
/* @FAMILY */


#page .family_list {
    position: relative;
    display: block;
    margin-right: -3%;
    background: var(--bg-light);
}

#page .family_list .item {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 46%;
    margin: 0 3% 3em 0;
    box-sizing: border-box;
}

#page .family_list .item:before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    left: 12.5em;
    background: #fff;
    border-radius: 1em;
    /*box-shadow: 0 0 2em 0 rgba(0,0,0,0.1);*/
}

#page .family_list .item .image {
    z-index: 10;
    position: relative;
    display: inline-block;
    float: left;
    width: 25em;
    height: 0;
    margin: 0 5% 0 0;
    padding: 25em 0 0 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

#page .family_list .item .image .img {
    position: absolute;
    display: block;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover !important;
    overflow: hidden;
    transition: transform 1s ease;
    transform: scale(1.000);
}

#page .family_list .item .image:hover .img {
    transform: scale(1.05);
    transition: transform .5s ease;
}

#page .family_list .item .text {
    position: relative;
    display: block;
    vertical-align: top;
    margin: 2.5em 0 0 0;
    padding: 0 3em 0 0;
    text-align: left;
}

#page .family_list .item .text .textcrop {
    position: relative;
    display: block;
    max-height: 15em;
    margin: 0 0 .8em 0;
    overflow: hidden;
}

#page .family_list .item .text .textcrop:after {
    content: "";
    position: absolute;
    bottom: -.7em;
    right: 0;
    width: 50%;
    height: 2.5em;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

#page .family_list .item h3 {
    display: block;
    margin: 0 0 .2em 0;
    font-size: 2.4em;
    line-height: 1.2em;
    font-weight: 600;
    color: var(--color-text);
}

#page .family_list .item p {
    display: block;
    margin: 0 0 1em 0;
    padding: 0.5em 0 0 0;
    font-size: 1.6em;
    line-height: 1.8em;
    font-weight: normal;
    color: var(--color-text);
}

#page .family_list .item .linkblock {
    position: relative;
    display: block;
    height: 3.5em;
    overflow: hidden;
}

#page .family_list .item .link {
    display: inline-block;
    margin: 0 2em 0 0;
    font-size: 1.6em;
    line-height: 2.4em;
    font-weight: 700;
    text-transform: uppercase;
}

#page .family_list .item a.more_link {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-size: 1.6em;
    line-height: 1em;
    font-weight: 700;
    text-transform: uppercase;
}

@media screen and (max-width: 1300px){
    
    #page .family_list {
        margin-right: 0;
    }
    
    #page .family_list .item {
        width: 100%;
    }
    
}

@media screen and (max-width: 600px){
    
    #page .family_list .item {
        padding-left: 2%;
        padding-right: 2%;
        padding-bottom: 4%;
        margin-bottom: 3%;
    }
    
    #page .family_list .item:before {
        left: 0;
    }
    
    #page .family_list .item .image {
        width: 30%;
        height: 0;
        margin: 5% 4% 5% 0;
        padding: 30% 0 0 0;
    }
    
    #page .family_list .item .text {
        padding-right: 0;
    }
    
}
