@charset "utf-8";
/* CSS Document */

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding-top: 40px;
}

.carousel {
    position: relative;
    margin: 0 auto;
    overflow: visible; /* set to hidden or visible to show one slide at a time or more slides */
}

.carousel.image-gallery { max-width: 80%; }
.carousel.testimonials { max-width: 800px; }
.carousel.tiles-text { max-width: 500px; }

@media only screen and (max-width: 993px) {
    .carousel.image-gallery { max-width: 100%; }
}

.carousel-inner {
    display: flex;
    transition: transform 1s ease-in-out;
}

.carousel-inner.testimonials { height: 500px; }

.carousel-item {
    min-width: 100%;
    padding: 0 20px 30px 20px;
    opacity: 0.3; /* Default opacity for out-of-view slides */
    transition: opacity 1s ease-in-out; /* Smooth opacity transition */
    position: relative;
}

.carousel-item.active {
    opacity: 1; /* Full opacity for the active slide */
}

.now-then-border{border-bottom:3px solid white;}
@media only screen and (min-width: 993px){
	.now-then-border {border-bottom:none; border-right:3px solid white;}
}

.carousel-item-caption {
    position: absolute;
    bottom: 10%;
    left: 10%;
    color: white;
    padding: 5px 20px;
    opacity: 0;
    transform: translateY(50px) translateX(10px); /* Slide from below and slightly from the left */
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.carousel-item.active .carousel-item-caption {
    opacity: 1; /* Fade in */
    transform: translateY(0) translateX(0); /* Move to the final position */
    transition-delay: 0.6s; /* Start the caption animation slightly after the slide is in view */
}

.slide {
    min-height: 430px;
    position: relative;
    background-color:#E7E7E5 ;
    border-top: 1px solid #D55140;
	border-radius:0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 10px 40px 10px;
	color:black;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
    padding: 10px 10px;
}

.carousel-control {
    font-size: 1.2em;
    color: #D55140;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;    
}

.carousel-indicators {
    text-align: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    background-color: grey;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, width 0.3s ease-in-out, border-radius 0.3s;
}

.dot.active {
  background: #D55140;
  width: 34px;
  border-radius: 10px;
}