.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
}

.clearfix:after {
    clear: both;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* Carousel Loop
  *------------------------------------------------------------*/

.loop-container--style-carousel {
    margin-left: 0;
    margin-right: 0;
}

.loop-container--style-carousel article {
    position: relative;
    overflow: hidden;
}

.loop-container--style-carousel article.horizon-carousel__item--prev {
    cursor: w-resize;
}

.loop-container--style-carousel article.horizon-carousel__item--next {
    cursor: e-resize;
}

.loop-container--style-carousel .post__media {
    height: 270px;
    overflow: hidden;
    pointer-events: none;
}

.loop-container--style-carousel .post__media .horizon-media-gradient-hover {
    height: 100%;
}

.loop-container--style-carousel .post__text {
    position: relative;
}

.loop-container--style-carousel .post__text__inwrap {
    text-align: left;
}

.loop-container--style-carousel .post__text__inwrap p {
    margin: 0;
}

.loop-container--style-carousel .post__category {
    margin-bottom: 1em;
}

.loop-container--style-carousel .post__category .items {
    text-align: left;
}

.loop-container--style-carousel .post__meta {
    float: left;
}

.loop-container--style-carousel .post__share {
    float: right;
    padding: 15px 0 0;
    border: none;
    margin: 0;
}

@media only screen and (max-width: 599px) {
    .loop-container--style-carousel {
        margin-left: -30px;
    }
    .loop-container--style-carousel .post__title {
        margin: -10px 0 10px 0;
    }
}

@media only screen and (max-width: 599px),
only screen and (min-width: 600px) and (max-width: 960px) {
    .loop-container--style-carousel article {
        padding-left: 30px;
    }
    .loop-container--style-carousel .post__text__inwrap {
        line-height: 1.6;
        padding-right: 20px;
    }
    .loop-container--style-carousel .post__category {
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
        margin-bottom: 0;
    }
    .loop-container--style-carousel .post__category .item {
        vertical-align: bottom;
    }
    .loop-container--style-carousel .excerpt {
        display: block;
    }
}

@media only screen and (min-width: 600px) and (max-width: 960px) {
    .loop-container--style-carousel .post__title {
        font-size: 1.8em;
        margin: -5px 0 15px 0;
    }
    .loop-container--style-carousel .post__media {
        height: 400px;
        max-width: 400px;
    }
    .loop-container--style-carousel .post__text__inwrap {
        max-width: 400px;
    }
}


@media only screen and (min-width: 961px) and (max-width: 1170px),
only screen and (min-width: 1171px) {
    .loop-container--style-carousel article {
        padding-left: 40px;
		display:flex !important;	
    }
    .loop-container--style-carousel .post__media {
        float: left;
        height: 100%;
        max-width: 350px;
    }
    .loop-container--style-carousel .post__text {
        height: 100%;
        overflow: hidden;
        width: 0;
        -webkit-transition: width 0.3s ease-in-out;
        transition: width 0.3s ease-in-out;
    }
    .loop-container--style-carousel .post__text__inwrap {
        width: 400px;
        height: 90%;
        margin: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0px 0 0px 60px;
    }
    .loop-container--style-carousel .horizon-carousel__item--active .post__media {
        pointer-events: auto;
    }
    .loop-container--style-carousel .horizon-carousel__item--active .post__text {
        width: 400px;
		min-height: 437px;
    }
	.label--small {
		margin-bottom: 5px;
	}
	
}

@media only screen and (min-width: 1171px) {
    .loop-container--style-carousel article {
        padding-left: 80px;
    }
    .loop-container--style-carousel .post__media {
        max-width: 425px;
    }
    .loop-container--style-carousel .horizon-carousel__item--active .post__text,
    .loop-container--style-carousel .post__text__inwrap {
        width: 450px;
		float:left;
    }
    .loop-container--style-carousel .post__text__inwrap {
        padding: 2em 0 2em 60px;
    }
}


/*------------------------------------------------------------
  * Carousel
  *------------------------------------------------------------*/

.horizon-blog--style-carousel {
    position: relative;
    min-height: 350px;
}

.horizon-carousel {
    position: relative;
    -webkit-transition: opacity 0.7s cubic-bezier(0.7, 0, 0.3, 1);
    transition: opacity 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

.js .horizon-carousel {
    opacity: 0;
    overflow: hidden;
    min-height: 100px;
    max-height: 200px;
}

.horizon-carousel+.horizon-loader--carousel {
    opacity: 1;
    position: absolute;
    top: 100px;
    left: 50%;
    margin: 0px 0 0 -15px;
}

.processed.horizon-carousel {
    opacity: 1;
    min-height: 0;
    max-height: none;
}

.processed.horizon-carousel+.horizon-loader--carousel {
    opacity: 0;
    visibility: hidden;
}

.horizon-carousel .horizon-carousel__items {
    margin: auto;
}

.horizon-carousel .horizon-carousel__inwrap {
    overflow: hidden;
}

@media only screen and (min-width: 1171px) {
    .horizon-carousel .horizon-carousel__inwrap {
        overflow: hidden;
    }
}

.horizon-carousel__items {
    position: relative;
    overflow: hidden;
}

.horizon-carousel__items:before,
.horizon-carousel__items:after {
    display: table;
    content: "";
}

.horizon-carousel__items:after {
    clear: both;
}

.horizon-carousel .horizon-carousel__item {
    position: relative;
    float: left;
}


/* horizon UI: Dashed Pager
  *------------------------------------------------------------*/

.horizon-ui-pager {
    position: relative;
    text-align: center;
    padding: 10px 0 0 !important;
    margin: 0;
}

.horizon-ui-pager .horizon-ui-pager__item {
    display: inline-block;
    margin-bottom: 0;
    width: 45px;
    height: 23px;
    padding: 10px 5px !important;
    cursor: pointer;
}

.horizon-slider--images .horizon-ui-pager .horizon-ui-pager__item {
    width: 32px;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.horizon-ui-pager .horizon-ui-pager__item:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #eeeeee;
    -webkit-transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
    transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
}

.horizon-ui-pager .horizon-ui-pager__item:hover:after {
    background: #777777;
}

.horizon-ui-pager .horizon-ui-pager__item.active {
    pointer-events: none;
}

.horizon-ui-pager .horizon-ui-pager__active-marker {
    position: absolute;
    left: 45%;
    top: 10px;
    opacity: 0;
}

.horizon-ui-pager .horizon-ui-pager__active-marker:after {
    background-position: 50% 50% !important;
    background-color: #72e9c6 !important;
    background-image: linear-gradient(160deg, #72e9c6 0%, #bfcfff 100%) !important;
}

@media only screen and (min-width: 961px) and (max-width: 1170px) {
    .horizon-ui-pager {
        padding: 30px 0 0 !important;
    }
    .horizon-ui-pager .horizon-ui-pager__active-marker {
        top: 30px;
    }
}

@media only screen and (max-width: 990px) {
	.horizon-carousel__item--activ{
		display:block;	
	}
}
@media only screen and (min-width: 1171px) {
    .horizon-ui-pager {
        padding: 50px 0 0 !important;
    }
    .horizon-ui-pager .horizon-ui-pager__active-marker {
        top: 50px;
    }
}


/* Image with gradient X hover
  *-------------------------------------------------------------*/

.horizon-media-gradient-hover {
    position: relative;
    overflow: hidden;
}

.horizon-media-gradient-hover .horizon-media-gradient-hover__hover {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    bottom: -1px;
    background-position: 50% 50%;
    background-color: #72e9c6;
    background-image: linear-gradient(-20deg, #72e9c6 0%, #bfcfff 100%);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
    transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
}

.horizon-media-gradient-hover .horizon-x {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 36px;
    margin: auto;
    opacity: 0;
    -webkit-transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
    transition: all 0.25s cubic-bezier( 0.5, 0.2, 0.5, 1);
}

.horizon-media-gradient-hover .horizon-x:before,
.horizon-media-gradient-hover .horizon-x:after {
    background: #ffffff;
}

.horizon-media-gradient-hover:hover .horizon-media-gradient-hover__hover {
    visibility: visible;
    opacity: 0.7;
}

.horizon-media-gradient-hover:hover .horizon-x {
    opacity: 1;
}

.horizon-media-gradient-hover:hover .horizon-x:before {
    height: auto;
    -webkit-animation: preloader-height-appear 0.4s 1 ease-in-out forwards;
    animation: preloader-height-appear 0.4s 1 ease-in-out forwards;
}

.horizon-media-gradient-hover:hover .horizon-x:after {
    width: auto;
    -webkit-animation: preloader-width-appear 0.4s 1 ease-in-out forwards;
    animation: preloader-width-appear 0.4s 1 ease-in-out forwards;
}