.media {
    --media-intend-size: 100px;
    --media-intend-border-size: calc(var(--grid-gutter) * 2);
}

.media__item {
    position: relative;
}

.media__text,
.media__image {
    position: relative;
    z-index: 2;
}

.media__image.wow1 {
    visibility: hidden;
}

.media__image img {
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .media__image img {
        padding-bottom: calc(var(--grid-gutter) * 2);
        -o-object-fit: cover;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

.media__image .oembed_container {
    height: initial;
}

.media--intend {
    margin-top: calc(var(--media-intend-size) + var(--margin-top)) !important
}


.media--intend .media__image {
    position: relative;
    margin-top: calc((var(--padding-top) + var(--media-intend-size) + (var(--media-intend-border-size))) * -1);
    z-index: 2;
}

@media screen and (min-width: 768px) {
    .media--intend .media__image {
        margin-top: calc((var(--padding-top) + var(--media-intend-size)) * -1);
    }
}

.media--intend .tns-controls {
    top: calc(45% - var(--media-intend-size));
}


@media (max-width: 1199px) {
    .media--intend .tns-controls {
        top: auto;
        bottom: 40px;
    }
}



.media--carousel .slide__item .container-fluid {
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

{#
.media--carousel .slide__item.tns-slide-active .media__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 190, 130, 0.5);
    z-index: 3;
    opacity: 1;
    transition: all .3s linear;
}
.media--carousel .slide__item.tns-slide-active.slider__item--highlighted .media__item::before {
    display: none;
    opacity: 0;
}
#}    



.media__item--teaser .media__image {
    height: 100%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border: 0;
}

.media__item--teaser .media__image:before {
    content: "";
    position: absolute;
    top: 0;
    margin-top: calc(var(--media-intend-border-size) * -1);
    left: calc(var(--media-intend-border-size) * -1);
    right: auto;
    bottom: auto;
    height: 140px;
    width: 140px;
    background: transparent;
    border-top: var(--media-intend-border-size, 0) solid var(--primary);
    border-left: var(--media-intend-border-size, 0) solid var(--primary);
    z-index: 1;
}

.media__teaser {
    position: absolute;
    background: rgba(0, 0, 0, 1);
    bottom: 0;
    top: auto;
    right: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    color: #ffffff;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-height: 50%;
    padding: var(--grid-gutter);
    overflow: hidden;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(40, 50, 60, 0.8)), to(rgba(40, 50, 60, 0.8)));
    background: -o-linear-gradient(top, rgba(40, 50, 60, 0.8), rgba(40, 50, 60, 0.8));
    background: linear-gradient(180deg, rgba(40, 50, 60, 0.8), rgba(40, 50, 60, 0.8));
}

.media__teaser p:last-of-type{
    margin-bottom: 0;
}

.media--slider .tns-ovh {
    overflow: visible;
    overflow-x: clip;
}
