.carousel {
    overflow: hidden;
    border-radius: 5px;
}

/*.image-carousel .show.template {
    height: 400px;
}*/

.carousel-item {
    height: 100%;
}

.carousel img {
    object-fit: cover;
    height: 100%;
    object-position: center;
}
.image-carousel .carousel-indicators [data-bs-target] {
    color: white;
    height: 30px;
    text-indent: unset;
    background-color: var(--portal-primary-color);
    opacity: 1;
}
.image-carousel .carousel-indicators .toggleCarousel {
    color: white;
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: unset;
    cursor: pointer;
    background-color: var(--portal-primary-color);
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 1;
    transition: opacity .6s ease;
}

.image-carousel .carousel-caption {
    text-align: left;
    right: 0;
    left: 0;
    padding: 10% 15% 5%;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, #222 100%);
    color: white;
}

.text-carousel-container {
    display: flex;
    align-items: center;
    margin: auto;
}

.text-carousel {
    border: 1px solid var(--portal-light-grey);
    padding: 10px;
}

    .text-carousel-template {
        height: 30px;
    }

    .text-carousel .carousel-caption {
        background: white;
        padding: 0%;
        text-align: left;
        right: 0;
        left: 0;
        bottom: 0;
        height: 100%;
    }

    .text-carousel .btn-primary {
        width: auto;
    }

    .text-carousel .carousel-control-next,
    .text-carousel .carousel-control-prev {
        width: 5%;
    }

@media only screen and (max-width: 600px) {
    .text-carousel-template {
        height: 80px;
    }

    .text-carousel .carousel-caption {
        padding: 0% 5%;
    }
}
