﻿/*(https://miketricking.github.io/bootstrap-image-hover/)*/
.hovereffect {
    width: 100%;
    height: 100%;
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
    box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.1);
}

    .hovereffect .overlay {
        width: 100%;
        height: 100%;
        position: absolute;
        overflow: hidden;
        top: 0;
        left: 0;
        -webkit-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    .hovereffect:hover .overlay {
        background-color: rgba(170,170,170,0.3);
    }

    .hovereffect h2, .hovereffect img {
        -webkit-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    .hovereffect img {
        display: block;
        position: relative;
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }

    .hovereffect:hover img {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }

    .hovereffect h2 {
        text-transform: uppercase;
        /*color: #fff;*/
        text-align: center;
        position: relative;
        font-size: 14px;
        padding: 5px;
        /*bottom:-10px;*/
        /*background: rgba(54, 73, 90, 0.63);*/
    }

    .hovereffect a.info {
        display: inline-block;
        text-decoration: none;
        padding: 7px 14px;
        text-transform: uppercase;
        color: #fff;
        /*border: 1px solid #fff;*/
        margin: 90px 0 0 0;
        background-color: transparent;
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transform: scale(1.5);
        -ms-transform: scale(1.5);
        transform: scale(1.5);
        -webkit-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
        font-weight: normal;
        height: 85%;
        width: 85%;
        position: absolute;
        top: -20%;  
        left: 8%;
        padding: 70px;
    }

    .hovereffect:hover a.info {
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
        /*background-color: rgba(0,0,0,0.4);*/
    }

.ellipsis {
    position: relative;
    height: 2.7em;
    max-height: 3.7rem;
    overflow: hidden;
    word-wrap: break-word;
    /*line-height: 1.5;*/
}

.ellipsis-title {
    -webkit-line-clamp: 2 !important;
    overflow: hidden;
    word-wrap: break-word; 
    max-height: 2.7rem;
}
    /*p.ellipsis:after {
        background-color: transparent ;
        bottom: 0;
        position: absolute;
        right: 0;
        float: right;
        content: '\2026';
        margin-left: -3rem;
        width: 0.5rem;
    }*/

@supports (-webkit-line-clamp: 3) {
    .ellipsis {
        /*display: -webkit-box;
        margin: 0 auto;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 82px;
        width: fit-content;*/
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        /*line-height: 1.5;*/
        max-height: 3.7rem;
    }
    /*p.ellipsis:after {
            display: none;
        }*/
}


@supports (-webkit-line-clamp: 2) {
    .ellipsis-title {
        -webkit-line-clamp: 2 !important;
    }
}

