/* =========================
   Carousel
   ========================= */

.carousel-section {
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 2.4 / 1;
    object-fit: cover;
}

/* Caption positioned toward the top */
.carousel-caption-top {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 60px 20px 30px;
    
    /* Dark gradient behind text */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0)
    );

    /* Initial animation state */
    opacity: 0;
    transform: translateY(-40px);
}


/* Animate caption when slide becomes active */
.carousel-item.active .carousel-caption-top {
    animation: captionFadeDown 1s ease forwards;
}


/* Caption animation */
@keyframes captionFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Caption text */
.carousel-caption-top h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption-top p {
    font-size: 20px;
    margin-bottom: 20px;
}


/* Mobile */
@media (max-width: 767px) {

    .carousel-item img {
        height: 400px;
    }

    .carousel-caption-top {
        padding: 35px 15px 20px;
    }

    .carousel-caption-top h2 {
        font-size: 28px;
    }

    .carousel-caption-top p {
        font-size: 16px;
    }
}

.jeff-photo {
    width: 250px;
    max-width: 100%;
    height: auto;
    float: left;
    margin: 0 30px 15px 0;
}

@media (max-width: 767px) {
    .jeff-photo {
        float: none;
        display: block;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 25px;
    }
}

@media (max-width: 767px) {
    .name-responsive {
        width: 100%;
        margin: 0 auto 25px;
		text-align: center;
    }
}