﻿.carousel-inner {
    display: flex;
}

    .carousel-inner .carousel-item {
        opacity: 0;
        top: 0;
        left: 0;
        width: 100%;
        position: absolute;
        min-height: auto;
        display: flex;
        flex-flow: column;
    }

.carousel-item img,
.carousel-item video {
    object-fit: cover;
    position: absolute;
    aspect-ratio: 16 / 9 !important;
    vertical-align: middle;
}

.carousel-inner .carousel-item:first-of-type {
    position: relative;
}

.carousel-inner .active {
    opacity: 1;
}



.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.6;
}

.carousel-indicators {
    bottom: 15px;
}

    .carousel-indicators > .carousel-indicator {
        position: relative;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
        width: 30px;
        height: 30px;
        margin-right: 3px;
        margin-left: 3px;
        text-indent: -999px;
        cursor: pointer;
        background-color: #000;
        padding: 1px;
        border: 2px solid #666;
        border-radius: 50%;
        opacity: 50%;
    }

        .carousel-indicators > .carousel-indicator.active {
            background-color: #cf7019;
            opacity: 1;
            transition: .1s linear;
            border: 2px solid #cf7019;
        }

.carousel-indicator:not(.active):hover {
    opacity: .9;
    transition: .1s linear;
}

button.carousel-control-next, button.carousel-control-prev {
    vertical-align: middle;
    height: auto;
    display: inline-block;
    border: 0;
    width: auto;
    padding: 0 40px !important;
    z-index: 20;
}

.carousel-control-prev-icon:before, .carousel-control-next-icon:before {
    position: absolute;
    background-color: black;
    content: '';
    height: 60px;
    width: 60px;
    z-index: -1;
    right: 20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 2px solid #666;
}

.carousel-control-prev:hover > span:before, .carousel-control-next:hover > span:before {
    background-color: #cf7019;
    border: 2px solid #cf7019;
}

button.carousel-control-next:hover, button.carousel-control-prev:hover {
    background: none;
    border: 0px;
}

.carousel-inner .carousel-caption {
    display: flex;
    flex-flow: column;
    justify-content: center;
    width: 100%;
    right: 0;
    left: 0;
    height: 100%;
    padding: 4rem 0;
    position: relative;
}

@media only screen and (min-width: 768px) {

    .carousel-inner .carousel-caption {
        top: 0;
        bottom: 0;
    }
}

@media only screen and (min-width: 1001px) and (max-width:1366px ) {
    .carousel-caption .master-wrapper-content {
        width: calc(100vw - 240px) !important;
    }
}

@media only screen and (max-width: 1000px) {
    .carousel-control-prev, .carousel-control-next {
        position: absolute;
        bottom: 0 !important;
        top: auto;
        margin: 1rem auto;
    }

    .carousel-indicators {
        position: relative;
        bottom: 0;
        margin: 1rem 100px;
        height: 60px;
        display: flex;
        align-items: center;
    }
}


@media only screen and (max-width: 767px) {
    .carousel-item img, .carousel-item video {
        position: relative;
    }

    .carousel-inner .carousel-caption {
        background-color: #252525;
        min-height: fit-content;
        bottom: 0;
        padding: 1rem 0 !important;
    }
}
