.stec-layout-grid {

    float: left;
    width: 100%;

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

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

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

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

    .stec-layout-grid-event-ul {
        > span:not(.stec-layout-grid-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-grid-events-all-control {
        width: 100%;
        float: left;
        clear:both;
    }

    .stec-layout-grid-events {
        width: 100%;
        float: left;
        position: relative;
    }

    .stec-layout-grid-event {
        border-radius: @borders-radius;
        border: 1px solid @border-color;
        overflow: hidden;
        position: absolute;

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

        .stec-layout-grid-event-wrap {
            padding: 20px;
            float: left;
            width: 100%;
            position: relative;
        }

        .stec-layout-grid-event-image {
            display: none;
            width: 100%;
            padding-top: ~'calc(100% / 1.6180)';
            background-size: cover;
            background-position: center center;
        }

        .stec-layout-grid-icon {
            i {
                color:#fff;
            }
        }
        .stec-layout-event-preview-left-icon-images {
            position: relative;
            width: 100%;
            height: 100%;

            .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-event-preview-left-icon-date {

            width: 100%;
            margin-top: 8px;
            float: left;
            text-align: center;

            .stec-layout-event-preview-left-icon-date-number {
                font-size: 28px;
                font-weight: bold;
            }
            .stec-layout-event-preview-left-icon-date-month {
                font-size: 10px;
                font-weight: normal;
                text-transform: uppercase;
            }

            span {
                width: 100%;
                float: left;
                line-height: 1;
                color:#fff;
            }
        }


        &.stec-expired {
            .stec-layout-grid-event-status-expired {
                display: inline-block;
                font-size: 10px;
                text-transform: uppercase;
            }
        }

        &.stec-in-progress {
            .stec-layout-grid-event-status-progress {
                display: inline-block;
                font-size: 10px;
                text-transform: uppercase;
                line-height: 1;
            }
        }

        &.stec-has-image {
            .stec-layout-grid-event-image {
                .flexbox(flex-start);
            }

            .stec-layout-grid-icon {
                border: 2px solid #fff;
                position: absolute;
                top: -27px;
                left: ~'calc(50% - 27px)';
            }
        }

        .stec-layout-grid-invited {
            display: none;
        }

        &.stec-user-invited {
            .stec-layout-grid-invited {
                position: absolute;
                top:20px;
                right: 0;
                display: block;
                background: #ff9933;
                color:#fff;
                padding: 5px 10px;
                border-radius: 3px 0 0 3px;
                font-size: 10px;
                text-transform: uppercase;
            }

        }

        &.stec-has-products {
            .stec-layout-grid-has-products {
                .flexbox(flex-start);
            }
        }

        &.stec-can-rsvp {
            .stec-layout-grid-can-rsvp {
                .flexbox(flex-start);

                .stec-layout-grid-rsvp {
                    margin:0 auto;
                }
            }
        }

        &.stec-has-location {
            .stec-layout-grid-has-location {
                .flexbox(flex-start);

                i {
                    line-height: 1.2;
                }
            }
        }

        &.stec-has-organizers {
            .stec-layout-grid-has-organizers {
                .flexbox(flex-start);

                .stec-layout-grid-organizer-name {
                    margin-left: 10px;
                }
            }
        }

        .stec-layout-grid-has-organizers {
            float: left;
            width: 100%;
            padding: 10px 20px;

            .stec-layout-grid-organizer {
                width: 35px;
                height: 35px;
                float: left;
                border-radius: 100%;
                background-size: cover;
                background-position: center center;
            }
        }

        .stec-layout-grid-icon {
            width: 54px;
            height: 54px;
            border-radius: @borders-radius;
            margin:0 auto;
            overflow: hidden;

            i {
                width: 100%;
                line-height: 54px;
                text-align: center;
                font-size: 25px
            }
        }

        .stec-layout-grid-event-title {
            width: 100%;
            text-align: center;
            float: left;
            margin-top: 30px;
        }
        .stec-layout-grid-event-short-desc {
            width: 100%;
            text-align: center;
            float: left;
            margin-top: 10px;
        }

        .stec-layout-grid-event-tags {
            float: left;
            padding: 10px;
            width: 100%;
            display: none;
        }

        &.stec-has-tags {
            .stec-layout-grid-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-has-image {
                .stec-layout-grid-event-tags {
                    padding: 5px;
                    position: absolute;
                    top: 5px;
                    left: 5px;
                }
            }
        }
    }

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

        .stec-layout-grid-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;
            }

            &:before {
                height: 175px;
                width: 100%;
                float: left;
                content: '';
                background:@bg;
            }


            > span:first-of-type {
                height: 54px;
                width: 54px;
                content: '';
                background:@bg;
                position: absolute;
                top:148px;
                left: ~'calc(50% - 27px)';
                background:@bg;
                border:2px solid #fff;
                border-radius: 3px;
                z-index: 1;
            }

            > span:last-of-type {
                position: absolute;
                width: 50%;
                height: 25px;
                background: @bg;
                top: 225px;
                left: 25%;
            }

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

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

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

            > div:last-of-type {
                position: absolute;
                width: 90%;
                height: 16px;
                top: 300px;
                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;
                }
            }
        }

    }

}