/* Alignment */
.center{text-align:center!important}

.bottommiddle{position:absolute;left:50%;bottom:0;transform:translate(-50%,0%);-ms-transform:translate(-50%,0%)}

/* colors */
.bg-white,.bg-hover-white:hover{color:#000; background-color:#fff;}

/* slide */
.slider-slide {
    display:none;
    border-radius: 0 0 40px 0;
    position: relative;

    background-size: cover;
    background-position: center;
    height: 39vw;
    min-height: 500px;      /* scripted */
    max-height: 700px;
}
.slider-slide-mobile {
    height: 42vh;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 20px;
    position: relative;
}

/* badge */
.slider-badge {color:#fff;display:inline-block;text-align:center;border-radius:50%;
              border:1px solid white; height:10px; width:10px; padding:0; 
              margin-right: 10px;
}
.slider-badge-active::after, .slider-badge.active::after {
    display: block;
    position: relative;
    top: 1px;
    left: 1px;
    content: '';
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: #e33c46;
}
.nav-left{
    padding-right: 15px !important;
    position: relative;
    left: 3px;
    top: 2px;
    font-size: 20px !important;
}
.nav-right{ 
    padding-left: 0px !important;
    position: relative;
    top: 2px;
    font-size: 20px !important;
}


/* slider container */
.slider-container{
    position:relative;
    width:300px;                    /* controls min-width (which fixes the height of the images as well from this point on) */
    z-index: 5;
    flex-grow: 1;
}
.slider-container > div {
    border-radius: 0 0 40px 0;
    overflow: hidden;
}
.slider-container-horizontal{
    position:relative;
    width:100%; 
    z-index: 5;
}
.nav-left, .nav-right, .slider-badge {cursor:pointer}



/* slider title */
.slider-caption {
    position: absolute;
    transform: translate(-50%, -100%);
    top: 80%;
    left: 50%;
    color: white;
    text-align: center;
    text-transform: uppercase;
}
.slider-caption div {
    border-top: 4px solid white;
    width: 50%;
    position: absolute;
    left: 25%;
    line-height: 1.2;
    padding-top: .4em;
    font-size: 1.4em;    
    font-weight: 500;
    letter-spacing: 0;
}

.slider-caption span {
    background-color: #e33c46;
    padding: 1px 5px 1px;
    top: -12px;
    position: relative;
    line-height: 1;
    font-size: 16px;
}
.slider-caption h1, .slider-caption h2 {
    text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 15px;
}


/* slider headlines */
.slider-headline-container {
    display: flex;
    flex-flow: row wrap;
    margin-left: -45px;

    flex: 0 0 460px;        /* 400 + 60 (red bar) */
}
.slider-headline {
    display: flex;
    /* box-shadow: 0px 1px 4px 0px #ccc; */
    box-shadow: 0px 5px 4px -4px #ccc;
    position: relative;
    /* height: 146px; */
    width: 100%;
}

.slider-headline .text-container {
    padding: 18px;
    padding-left: 78px;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 16px;
}
.slider-headline .text-container p {
    margin-bottom: 0;
}
.slider-headline a {
    /* font-family: 'Yantramanav'; */
}

/* first item */
.slider-headline-container div:first-child .text-container {
    padding-left: 33px;
}
.slider-headline .text-container .title{
    font-weight: normal;
    font-size: 20px;
    margin-top:0;
}
.slider-headline .text-container > div:last-child{
    text-align: right;
    flex: 0 0 100%;
}

.slider-headline .border {
    background-color: transparent;
    border-radius: 0 0 0 0;
    opacity: 0;
    position: absolute;
    width: 60px;
    height: 100%;
    left: -15px;
}
.slider-headline:last-child .border {
    border-radius: 0 0 40px 0;
}
.slider-headline:last-child .border.no-radius{
    border-radius:0!important;
}
.slider-headline.selected {
    box-shadow: none;
    box-shadow: 0 1px 10px 0 rgba(0,0,0,.4);
}
.slider-headline.selected .border {
    background-color: #e33c46;
    opacity: 1;         /* animated */
    left: 0;            /* animated */
}



/* slider headlines horizontal */
.slider-headline-container-horizontal {
    display: flex;
    width: 100%;
    font-size: 14px;
    margin-top: -35px;
}
.slider-headline-horizontal {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    box-shadow: 0px 1px 4px 0px #888;
    position: relative;
    background-color: white;
}
.slider-headline-horizontal .text-container {
    padding: 18px;
    /* height: 100%; */
    cursor: pointer;
    text-align: center;
}
.slider-headline-horizontal .text-container .title {
    margin-top:0;
    font-weight: normal;
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
}
.slider-headline-horizontal .border {
    width: 100%;
    background-color: transparent;
    height: 45px;
}
.slider-headline-horizontal:last-child .border {
    border-radius: 0 0 40px 0;
}
.slider-headline-horizontal:last-child .border.no-radius{
    border-radius:0!important;
}
.slider-headline-horizontal.selected .border {
    background-color: #e33c46;
}
.slider-container-horizontal .slider-slide {
    height: 31vw;
    min-height: 420px;
    max-height: 700px;
}

@media (max-width: 991px) {
    .slider-headline-horizontal .border {
        border-radius: 0 ;
    }
    .slider-headline-horizontal:last-child .border {
        border-radius: 0 ;
    }
    .slider-headline-horizontal:nth-child(2) .border {
        border-radius: 0 0 40px 0;
    }
    .slider-headline-horizontal:nth-child(3) .border, .slider-headline-horizontal:last-child .border {
        margin-top: -35px;
    }   
}
@media (min-width: 768px) {
    .slider-headline-container-horizontal {
        font-size: 16px;
    }
}
@media (max-width: 767px) {
    .slider-headline-horizontal .text-container .title {
        font-size: 16px;
    }
}



/* slider mobile */
.slider-container-mobile > div {
    margin-bottom: 26px;
    box-shadow: 0px 2px 4px 1px #888;
    position: absolute;
    background-color: white;
    top: 12px;
    overflow: hidden;
}
.slider-container-mobile .text-container {
    padding: 12px;
    text-align: center;
}
.slider-container-mobile .text-container .title {
    font-weight: bold;
    font-size: 20px;
}
.slider-container-mobile .slider-caption {
    top: 90%;
    width: 85%;
}
.slider-container-mobile .slider-caption a {
    word-wrap: break-word;
}
.slider-container-mobile .nav-right {
    z-index: 10;
    position: absolute;
    top: 50vh;
    right: 6.5%;
    padding: 0;
}
.slider-container-mobile .nav-left {
    z-index: 10;
    position: absolute;
    top: 50vh;
    left: 6.5%;
    padding: 0;
}
.slider-container-mobile .nav-left:before, .slider-container-mobile .nav-right:before {
    font-size: 54px;
    cursor: pointer;
}

.slider-headline-container-mobile {
    opacity: 0.8;
    transition: left .3s ease, opacity .3s ease, transform .3s ease, top .3s ease;
    width: 80%;
    height: 60vh;
    display: flex;
    flex-wrap: wrap;
}

/* selected */
.slider-headline-container-mobile.selected{
    opacity: 1;
}
.slider-container-mobile > div.selected {
    z-index: 5;
    transform: scale(1.05,1.05);
    top: 12px;
}
.slider-container-mobile > div.selected img {
    opacity: 1;
}


/* carousel-custom */
.carousel-custom .slider-container {
    width: 100%;
    z-index: 0;
    border-radius: 0 0 40px 0;
}
.carousel-custom .carousel-control-prev, 
.carousel-custom .carousel-control-next {
    font-size: 54px;
}

/* bootstrap overrides (otherwise animation is not working properly) */
.carousel-custom .slider-container .carousel-item-next,
.carousel-custom .slider-container .carousel-item-prev {
    position: absolute !important;
    top: 0 !important;
}
.carousel-custom .slider-container .carousel-item.active,
.carousel-custom .slider-container .carousel-item-next,
.carousel-custom .slider-container .carousel-item-prev {
  display: flex !important;
}


.carousel-custom .slider-caption.centered {
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}
.carousel-custom .slider-caption.center-top {
    transform: translate(-50%, 0%);
    top: 40px;
}
.carousel-custom .slider-caption.center-bottom {
    transform: translate(-50%, 0%);
    top: unset;
    bottom: 40px;
}
.carousel-custom .slider-caption.left {
    width: 50%;
    transform: translate(0%, -50%);
    top: 50%;
    left: 20px;
    text-align: left;
}
.carousel-custom .slider-caption.left .break {
    width: 30%;
}

.carousel-custom .slider-caption.right {
    width: 50%;
    transform: translate(0%, -50%);
    top: 50%;
    left: unset;
    right: 20px;
    text-align: right;
}
.carousel-custom .slider-caption.right .break {
    width: 30%;
    left: unset;
    right: 0;
}

.no-radius{
    border-radius:0 !important;
}