
/* Fixed carousel height and full width */
#carouselExampleIndicators {
    height: 300px;
    width: 100%;
    overflow: hidden;
}

    #carouselExampleIndicators .carousel-item {
        height: 300px;
        width: 100%;
    }

        /* Stretch images to fill container fully */
        #carouselExampleIndicators .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: fill; /* stretches image to fill both width and height */
            display: block;
        }


/* Overlay styling */
.carousel-item {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid #6da0b5;
    pointer-events: none; /* don’t block clicks/swipes */
}

/* Captions */
.carousel-caption {
    bottom: 60%;
}

.caption-f-l {
    color: #222;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(255,255,255,0.7);
}

.caption-s-l {
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Small screens (phones) */
@media (max-width: 576px) {
    #carouselExampleIndicators {
        height: auto; /* let content decide height */
        max-height: none; /* remove restriction */
    }

        #carouselExampleIndicators .carousel-item img {
            height: auto; /* keep original ratio */
            max-height: 250px; /* prevent being too tall */
            object-fit: contain; /* show full image */
        }

    .carousel-caption {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        font-size: 0.9rem;
    }

    .caption-f-l {
        font-size: 1rem;
    }

    .caption-s-l {
        font-size: 0.75rem;
    }}

/* Custom nav arrows (if using images) */
#imgPrev, #imgNext {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6));
}

    /* Rotate effect on arrows */
    #imgPrev:hover, #imgNext:hover {
        transform: rotate(360deg);
        transition: transform .6s ease-in-out;
    }
