﻿.col-item {
    border: 1px solid #E1E1E1;
    border-radius: 5px;
    background: #FFF;
}

.controls {
    margin-top: 20px;
}

[data-slide="prev"] {
    margin-right: 10px;
}

.textCenter {
    text-align: center;
}

.pBackgroundEvent {
    opacity:1;
    display: block; /* Fallback for non-webkit */
    display: -webkit-box;
    max-width: 500px;
    margin: 0 auto;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 3 times the line-height to show 3 lines */
    /* Fallback for non-webkit */
    height: 7.2em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.buttonContainer {
    height: 100%;
    display: flex;
    align-items: center; /* vertically aligned! */
    justify-content: center;
}

.btnControls {
    text-align: center;
}

.btnAdjustment {
    bottom: 5px;
    right: 5px;
}

.pBackgroundEvent.module {
    max-width: 350px;
    margin: 0 0 1em 0;
    overflow: hidden;
}

.pBackgroundEvent.module p {
    margin: 0;
}

.pBackgroundEvent.fade {
    position: relative;
    height: 7.2em; /* exactly three lines */
    display:block;
}

.pBackgroundEvent.fade:after {
    content: "";
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 1.8em;
    background: linear-gradient(to right, rgba(242, 0, 47, 0), rgba(242, 0, 47, 1) 50%);
}

@media (max-width:500px) {
    .pBackgroundEvent {
        display: none;
    }

    .btnAdjustment {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        max-width: 80%;
    }
}

@media (max-width:768px) {
    .pBackgroundEvent {
        -webkit-line-clamp: 3;
        /* 3 times the line-height to show 3 lines */
        /* Fallback for non-webkit */
        height: 5.5em;
    }

    .btnAdjustment {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        max-width: 90%;
        font-size: 0.8em;
        text-align: center;
    }

    .pBackgroundEvent.module {
        max-width: 350px;
        margin: 0 0 1em 0;
        overflow: hidden;
    }

    .pBackgroundEvent.module p {
        margin: 0;
    }

    .pBackgroundEvent.fade {
        position: relative;
        height: 7.2em; /* exactly three lines */
    }

    .pBackgroundEvent.fade:after {
        content: "";
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.8em;
        background: linear-gradient(to right, rgba(242, 0, 47, 0), rgba(242, 0, 47, 1) 50%);
    }
}

@media (max-width:1700px) and (min-width:800px) {
    .pBackgroundEvent {
        /* 3 times the line-height to show 3 lines */
        /* Browser fallback for non-webkit*/
        height: 3.6em;
    }

    .pBackgroundEvent.fade {
        display:none;
    }

    .module {
        max-width: 350px;
        margin: 0 0 1em 0;
        overflow: hidden;
    }

    .module p {
        margin: 0;
    }

    .fade {
        position: relative;
        height: 3.6em; /* exactly two lines */
    }

    .fade:after {
        content: "";
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.8em;
        background: linear-gradient(to right, rgba(242, 0, 47, 0), rgba(242, 0, 47, 1) 50%);
    }
}

@media (max-width:1849px) and (min-width:992px) {
    .pBackgroundEvent {
        display: none;
    }

    .EventCarouselContainer {
        display: block;
    }
}

@media (max-width:1850px) and (min-width:1701px) {
    .pBackgroundEvent {
        -webkit-line-clamp: 3;
        /* 3 times the line-height to show 3 lines */
        /* Browser fallback for non-webkit*/
        height: 5.4em;
    }

    .module {
        max-width: 350px;
        margin: 0 0 1em 0;
        overflow: hidden;
    }

    .module p {
        margin: 0;
    }

    .fade {
        position: relative;
        height: 5.4em; /* exactly three lines */
    }

    .fade:after {
        content: "";
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.8em;
        background: linear-gradient(to right, rgba(242, 0, 47, 0), rgba(242, 0, 47, 1) 50%);
    }
}


#EventCarouselContainer > h2 {
    font-size: 14px !important;
}

#EventCarouselContainer > h3 {
    font-size: 14px !important;
}
