.stec-layout-boxgrid {

    float: left;
    width: 100%;
    position: relative;
    z-index: 0;

    .stec-layout-boxgrid-noevents {
        display: none;
        float: left;
        margin: 10px 0;
        font-family: Arial;
        font-weight: 700;
        font-size: 14px;
        color: #4d576c;
    }

    .stec-layout-boxgrid-event-status {
        width: 100%;
        margin:0 auto;
        text-align: center;
        float: left;
    }
    .stec-layout-boxgrid-event-status-expired,
    .stec-layout-boxgrid-event-status-progress {
        display: none;
        margin-top: 10px;
        color:#fff;
        padding: 10px 15px;
        border-radius: @borders-radius;
    }

    .stec-layout-boxgrid-event-status-expired {
        background: #f15e6e;
    }

    .stec-layout-boxgrid-event-status-progress {
        background: #80a733;
    }

    .stec-layout-boxgrid-event-ul {
        > span:not(.stec-layout-boxgrid-date) {
            display: none;
        }

        width: 100%;
        float: left;

        > span {

            width: 100%;
            float: left;
            padding: 15px 20px;
            border-top: 1px solid @border-color;
            .flexbox(flex-start);

            i {
                width: 30px;
                text-align: center;
                padding-right: 10px;
                float: left;
                font-size: 20px;
            }
        }
    }

    .stec-layout-boxgrid-events-all-control {
        width: 100%;
        float: left;
        clear:both;
    }
    
    .stec-layout-boxgrid-events {
        width: 100%;
        float: left;
        position: relative;
    }

    .stec-layout-boxgrid-event {
        background: #fff;
        overflow: hidden;
        position: relative;
        float: left;

        &.stec-event-cancelled {
            .stec-layout-boxgrid-event-title {
                text-decoration: line-through;
            }
        }

        .stec-layout-boxgrid-event-background {
            height: 350px;
            width: 100%;
            float: left;
        }

        .stec-layout-boxgrid-event-wrap {
            padding: 20px;
            position: relative;
            z-index: 3;
            color:#fff;
            height: 100%
        }

        &.stec-has-image {
            .stec-layout-boxgrid-images {
                display: block;
            }
        }

        .stec-layout-boxgrid-images {
            display: none;
            position: absolute;
            top:0;
            left:0;
            width: 100%;
            height: 100%;

            > div {

                width: 100%;
                height: 100%;
                position: absolute;
                top:0;
                left:0;
                background-size: cover;
                background-position: 50% 50%;
                z-index: 0;
                opacity: 0;
                transition: opacity 1s ease;

                &.active {
                    z-index: 1;
                    opacity: 1;
                    transition: none;
                }

                &.transition {
                    z-index: 2;
                    opacity: 1;
                }
            }

            &:after {
                position: absolute;
                top:0;
                left:0;
                background: rgba(0,0,0,0.3);
                width: 100%;
                height: 100%;
                content: '';
                z-index: 3;
            }
        }

        .stec-layout-boxgrid-hover-bg {
            position: absolute;
            top:0;
            left:0;
            background: rgba(0,0,0,0);
            width: 100%;
            height: 100%;
            content: '';
            z-index: 3;
            transition: all .25s ease;
        }

        &:hover {
            .stec-layout-boxgrid-hover-bg {
                background: rgba(0,0,0,0.7);
            }
        }
        .stec-layout-boxgrid-event-permalink {
            position: absolute;
            top:0;
            left:0;
            width: 100%;
            height: 100%;
            z-index: 4;
        }

        &.stec-has-tags {

            .stec-layout-boxgrid-event-tags {
                display: block;

                span {
                    margin-right: 5px;
                    margin-bottom: 5px;
                    padding: 5px 10px;
                    display: inline-block;
                    border-radius: 3px;
                    color:#fff;
                    font-family: Arial;
                    font-size: 10px;
                    text-transform: uppercase;

                    &.unapproved {
                        background: #ececec;
                        color:#333;
                    }

                    &.cancelled {
                        background-color:#f15e6e;
                    }

                    &.moved-online {
                        background-color:#32a852;
                    }

                    &.rescheduled,
                    &.postponed {
                        background-color:#ff9933;
                    }
                }
            }
        }

        .stec-layout-boxgrid-event-icon {
            float: left;
            text-align: center;
            line-height: 1;
            font-size: 28px;
            max-width: 45px;
            margin-right: 10px;
        }

        &.stec-no-icon .stec-layout-boxgrid-event-icon {
            display: none !important;
        }

        .stec-layout-event-preview-left-icon-images {
            position: relative;
            .box(45px);

            .stec-layout-event-preview-left-icon-image {
                width: 100%;
                height: 100%;
                position: absolute;
                top:0;
                left:0;
                background-size: cover;
                background-position: 50% 50%;
                z-index: 0;
                opacity: 0;
                transition: opacity 1s ease;

                &.active {
                    z-index: 1;
                    opacity: 1;
                    transition: none;
                }

                &.transition {
                    z-index: 2;
                    opacity: 1;
                }
            }
        }

        .stec-layout-boxgrid-event-timespan-big {
            font-size: 12px;
            line-height: 28px;
            text-transform: uppercase; 
            font-weight: bold;
            span {
                font-size: 28px;
            }
        }

        .stec-layout-boxgrid-event-timespan {
            font-size: 12px;
            line-height: 1;
        }

        .stec-layout-boxgrid-event-timespan-wrap {
            width: ~'calc(100% - 55px)';
            float: left;
        }

        .stec-layout-boxgrid-event-content-wrap {
            overflow: hidden;
            left: 0;
            position: absolute;
            width: 100%;
            bottom: 0;
            padding: 20px;
        }

        .stec-layout-boxgrid-event-title {
            font-size: 24px;
            margin: 10px 0;
        }

        .stec-layout-boxgrid-event-short-desc {
            line-height: 1.6;
            font-size: 14px;
        }
    }

    .stec-layout-boxgrid-event-placeholders-wrap {
        .flexbox;
        margin-bottom: 10px;
        float: left;
        width: 100%;

        .stec-layout-boxgrid-event-placeholder {
            @bg: #e5e8ed;
            border-radius: @borders-radius;
            border: 1px solid @bg;
            position: relative;

            width: 100%;
            height: 350px;
            background: #fff;
            &:not(:last-child) {
                margin-right: 10px;
            }

            > span:nth-child(1) {
                height: 54px;
                width: 54px;
                content: '';
                background:@bg;
                position: absolute;
                top: 15px;
                left:15px;
                background:@bg;
                border:2px solid #fff;
                border-radius: 3px;
                z-index: 1;
            }

            > span:nth-child(2) {
                position: absolute;
                width: 25%;
                height: 16px;
                background: @bg;
                top: 17px;
                left: 77px;
            }

            > span:nth-child(3) {
                position: absolute;
                width: 50%;
                height: 16px;
                background: @bg;
                top: 40px;
                left: 77px;
            }

            > span:nth-child(4) {
                position: absolute;
                width: 35%;
                height: 16px;
                background: #e5e8ed;
                left: 15px;
                bottom: 92px;
            }

            > div:first-of-type {
                position: absolute;
                width: 90%;
                height: 16px;
                top: 270px;
                left: 5%;

                span:first-child {
                    position: absolute;
                    left:0;
                    top:0;
                    height: 25px;
                    width:75%;
                    background: @bg;
                }

                span:last-child {
                    position: absolute;
                    right: 0;
                    top: 0;
                    height: 25px;
                    width: 20%;
                    background: @bg;
                }
            }

            > div:last-of-type {
                position: absolute;
                width: 90%;
                height: 16px;
                top: 309px;
                left: 5%;

                span:first-child {
                    position: absolute;
                    left:0;
                    top:0;
                    height: 16px;
                    width:35%;
                    background: @bg;
                }

                span:last-child {
                    position: absolute;
                    right: 0;
                    top: 0;
                    height: 16px;
                    width: 60%;
                    background: @bg;
                }
            }
        }

    }

}