
/* Carousel base class */
.carousel {
    margin-bottom: 4rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

/* Default height for mobile (responsive) */
.carousel-item {
    height: 32rem; /* Default for smaller screens */
}

.carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 32rem; /* Default for smaller screens */
    object-fit: cover;
}

/* Adjust height for larger screens */
@media (min-width: 992px) { /* Bootstrap's lg breakpoint */
    .carousel-item {
        height: 40rem; /* 800px */
    }
    .carousel-item > img {
        height: 40rem; /* 800px */
    }
}
