﻿#carouselExampleControls .bf-hero-slide {
    min-height: 360px;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    position: relative;
    filter: brightness(1.05) contrast(1.1);
}
    #carouselExampleControls .bf-hero-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(231,77,60,0.15), rgba(0,0,0,0) 60%);
        pointer-events: none;
    }
#carouselExampleControls .bf-caption {
    position: relative;
    z-index: 2;
    padding: 44px 32px;
    max-width: 620px;
    margin-left: auto;
    color: #2b2b2b;
    background: #fff8f7;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    border-radius: 12px;
}
    #carouselExampleControls .bf-caption h2 {
        margin: 0 0 10px;
        font-weight: 800;
        line-height: 1.1;
        color: #1f1f1f;
        font-size: clamp(28px, 3.4vw, 44px);
    }
    #carouselExampleControls .bf-caption p {
        margin: 0;
        color: #3c4554;
        opacity: 1;
        font-size: clamp(14px, 1.25vw, 18px);
    }
    #carouselExampleControls .bf-caption .btn {
        display: none !important;
    }
.carousel-item {
    transition: transform .9s ease-in-out, opacity .8s ease-in-out;
}
#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
    background: none;
    opacity: .95;
    z-index: 5;
    pointer-events: auto;
    font-size: 0; 
    line-height: 0;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0);
    opacity: .8;
    transition: opacity .25s ease;
}
    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        opacity: 1;
    }
.carousel-control-prev .visually-hidden,
.carousel-control-next .visually-hidden,
.carousel-control-prev .sr-only,
.carousel-control-next .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.hero-laptop {
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    border-radius: 6px;
    transform: translateY(6px);
}
@media (min-width:992px) {
    .hero-laptop {
        max-width: 92%;
        transform: translateY(8px);
    }
}
@media (max-width: 767px) {
    #carouselExampleControls .bf-hero-slide {
        min-height: 260px;
        background-position: center;
       
        align-items: center;
        justify-content: center; /* centers caption */
        padding: 14px 0; /* breathing space */
    }
    #carouselExampleControls .bf-caption {
        margin: 37px 0px;
        background: #fff;
        border-radius: 12px;
        text-align: center;
        align-items: center;
        padding: 18px 16px;
        max-width: none;
    }
        #carouselExampleControls .bf-caption h2 {
            font-size: 26px;
        }

        #carouselExampleControls .bf-caption p {
            font-size: 14px;
        }
    #carouselExampleControls .carousel-control-prev,
    #carouselExampleControls .carousel-control-next {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 36px;
        height: 36px;
        z-index: 3;
    }
    #carouselExampleControls .carousel-control-prev-icon,
    #carouselExampleControls .carousel-control-next-icon {
        width: 12px;
        height: 12px;
        font-size: initial; /* keep icons normal */
        filter: invert(1) grayscale(100%) brightness(0); /* black icons */
        opacity: .8;
        transition: opacity .25s ease;
    }
    .hero-laptop {
        display: none;
    }}
@media (min-width: 992px) {
    #carouselExampleControls .carousel-inner .carousel-item:first-child .bf-caption h1 {
        font-size: 46px; /* adjust to taste */
    }
}
#carouselExampleControls .carousel-control-prev-icon:hover,
#carouselExampleControls .carousel-control-next-icon:hover {
    opacity: 1;
}
