.igallery_wrapper{
    --color-h:darkorange;
    --color-h:var(--color-highlight, #e45825);
    --color-contrast:white;
    --color-contrast:var(--color-white, #fff);
    --color-dot-background:transparent;
}
img{
    max-width: 100%;
}
.tns-slider{
    width: 100%;
    height: 0;
    position: relative;
    padding-bottom: 45%;
    overflow: hidden;
}
.tns-item{
    position: absolute !important;
    height: 100%;
    width: 100% !important;
    display: block !important;
}
.item.tns-item.tns-slide-active>img {
    width: 100%;
    object-fit: contain;
    object-position: center;
    height: 100%;
}
.tns-outer.contain .item.tns-item.tns-slide-active>img{
    object-fit: contain;
}


.tpl-owl-carousel .igallery_wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    position: relative;
    overflow: hidden;
}
.tpl-owl-carousel .igallery_wrapper .owl-carousel-replace,
.tpl-owl-carousel .igallery_wrapper .owl-carousel-replace .item,
.tpl-owl-carousel .igallery_wrapper .tns-outer,
.tpl-owl-carousel .igallery_wrapper .tns-inner{
    height: 100%;
    width: 100%;
}
.tpl-owl-carousel .igallery_wrapper .tns-nav {
    bottom: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease-out;
    display: flex;
    flex-wrap: wrap;
    z-index: 5;
    justify-content: center;
    transform: translateY(100%);
}
.tpl-owl-carousel .igallery_wrapper:hover .tns-nav {
    transform: translateY(-5px);
}
.tpl-owl-carousel .igallery_wrapper .tns-nav button {
    border: 2px solid darkorange;
    border: 2px solid var(--color-h, #e45825);
    height: 16px;
    width: 16px;
    margin: 2px;
    transition: background-color 0.4s ease-out;
    border-radius: 50%;
    background-color: var(--color-dot-background, transparent);
}
.tpl-owl-carousel .igallery_wrapper .tns-nav button.tns-nav-active {
    background-color: darkorange;
    background-color: var(--color-h, #e45825);
}
.tpl-owl-carousel .igallery_wrapper .tns-controls button {
    position: absolute;
    top: 50%;
    height: 60px;
    border: 0px none transparent;
    transform: translateY(-50%);
    background: #00000070;
    background: transparent;
    color: darkorange;
    color: var(--color-h, #e45825);
    font-weight: bold;
    font-size: 40px;
    line-height: 45px;
    padding: 0 7px 5px;
    box-sizing: border-box;
    font-family: Lato;
}
.tpl-owl-carousel .igallery_wrapper .tns-controls button:hover{
    color:var(--color-contrast, white);
    background-color: var(--color-h, #e45825);
}
.tpl-owl-carousel .igallery_wrapper .tns-controls button[data-controls="prev"] {
    left: -50px;
    transition: left 0.2s ease-out;
    border-radius: 0 3px 3px 0;
}
.tpl-owl-carousel .igallery_wrapper .tns-controls button[data-controls="next"] {
    right: -50px;
    transition: right 0.2s ease-out;
    border-radius: 3px 0 0 3px;
}
.tpl-owl-carousel .igallery_wrapper:hover .tns-controls button[data-controls="prev"] {
    left: 0;
}
.tpl-owl-carousel .igallery_wrapper:hover .tns-controls button[data-controls="next"] {
    right: 0;
}
.tpl-owl-carousel .igallery_wrapper .tns-controls button[data-controls="prev"]:before { content:"\2039"; }
.tpl-owl-carousel .igallery_wrapper .tns-controls button[data-controls="next"]:before { content:"\203A"; }
.tpl-owl-carousel .igallery_wrapper .tns-inner > .owl-carousel-replace {
    height: 100%;
    width: 100%;
}
.tpl-owl-carousel .igallery-description-image-wrap .backendlink{
    display: inline-block;
    position: absolute;
    top: -32px;
    left: 5px;
}
.tpl-owl-carousel .igallery-description-image-wrap .mod_uploadigallery_owl-carousel{
    display: inline-block;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    background: #fff;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    position: absolute;
    top: -30px;
    left: 40px;
    cursor: pointer;
}
.tpl-owl-carousel .igallery-description-image-wrap .mod_uploadigallery_owl-carousel:hover  {
    background-color: #dec;
}
.tpl-owl-carousel .igallery-description-image-wrap{
    position: relative;
    display: flex;
    flex-direction: row;
}
.tpl-owl-carousel .igallery-description-image-wrap .igalery-description,
.tpl-owl-carousel .igallery-description-image-wrap .igallery_wrapper{
    flex-shrink: 1;
    flex-grow: 1;
    width: 100%;
}
.tpl-owl-carousel .igallery-description-image-wrap .igalery-description {
    width: 60%;
    padding: 20px;
    box-sizing: border-box;
    order: 0;
}
.tpl-owl-carousel .igallery_wrapper .owl-carousel-replace .item img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 100%;
}
.tpl-owl-carousel.top-center .igallery_wrapper .owl-carousel-replace .item img {
    object-position: top center;
}
.tpl-owl-carousel.contain .igallery_wrapper .owl-carousel-replace .item img {
    object-fit: contain;
}
.tpl-owl-carousel .igallery_wrapper .tns-inner > .owl-carousel-replace {
    padding-bottom: 0;
}
.igallery_container.tpl-owl-carousel.flip .igallery-description-image-wrap .igalery-description,
.igallery_container.tpl-owl-carousel.right .igallery-description-image-wrap .igalery-description,
.igallery_container.tpl-owl-carousel.rechts .igallery-description-image-wrap .igalery-description {
    order: -1;
}
.igallery_container.tpl-owl-carousel .igallery-headline {
    text-align: left;
    font-size: 1.8em;
    padding: 0 30px;
}
.igallery_container.tpl-owl-carousel.flip .igallery-headline,
.igallery_container.tpl-owl-carousel.right .igallery-headline,
.igallery_container.tpl-owl-carousel.rechts .igallery-headline {
    text-align: right;
}
.tpl-owl-carousel .igallery_wrapper .owl-carousel-replace .item {
    position: relative;
}
.tpl-owl-carousel .igallery_wrapper .owl-carousel-replace .item a{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    height: 60px;
    width: 60px;
    background-color: #0000004f;
    text-align: center;
    vertical-align: middle;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}
.tpl-owl-carousel .igallery_wrapper:hover .owl-carousel-replace .item a {
    opacity: 1;
}
.igallery_container.tpl-owl-carousel {
    margin-top: 50px;
}
.igallery_container.tpl-owl-carousel .item.tns-item:not(.tns-slide-active) img {
    display:none;
}
