.slider-top {
    border: 1px solid rgb(214, 214, 214);
    filter: drop-shadow(2px 2px 3px rgb(214, 214, 214));
}

#carShow .carousel-item {
    max-width: 100vw;
    max-height: 90vh;
    overflow: hidden;
}

#carShow .carousel-caption {
    top: 20%;
    left: 10% !important;
    bottom: auto;
    right: auto;
    min-width: 250px;
    max-width: 260px;
    opacity: 0.9;
    color: grey;
    padding: 0;
    filter: drop-shadow(5px 5px 8px #a8a8a8);
}

#carShow .carousel-caption h5 {
    color: white;
    background-color: rgb(135, 0, 0);
    padding: 0.6rem;
    margin: 0;
}

#carShow .carousel-caption p {
    color: rgb(85, 85, 85);
    background: url("/assets/img/slider-01-slogon-box-2.png");
    background-repeat: no-repeat;
    background-position: top;
    height: 290px;
    padding: 0.8rem;
    margin: 0;
    padding: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2rem;
}

#carCaptions .carousel-caption {
    background-color: gray;
    opacity: 0.5;
}

#carShow .new-controller {
    position: fixed;
    display: flex;
    left: 1rem;
    bottom: 1rem;
    background-color: #e8e8e8;
    border-radius: 10px;
    border: 1px solid #cecece;
    opacity: 0.5;
    padding: 0.5rem;
}

#carShow .carousel-control-next,
#carShow .carousel-control-prev {
    position: relative;
    width: 3rem;
    opacity: 1;
}

#carShow .carousel-control-next-icon,
#carShow .carousel-control-prev-icon {
    border: 1px solid #b0b0b0 !important;
    background-color: #b0b0b0 !important;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    opacity: 1 !important;
}

#carShow .carousel-indicators {
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0rem;
}

#carShow > .new-controller > .carousel-indicators > button {
    background-color: red;
    border: 1px solid #333;
    border-radius: 50%;
    height: 1.5rem;
    width: 1.5rem;
    margin: auto 0.5rem;
}

@media only screen and (max-width: 430px) {
    #carShow .carousel-caption {
        top: 2%;
        left: 2% !important;
        bottom: auto;
        right: auto;
        min-width: 100px;
        max-width: 120px;
        opacity: 0.8;
        color: grey;
        padding: 0;
        /* border: 1px solid magenta; */
    }

    #carShow .carousel-caption h5 {
        color: white;
        background-color: rgb(135, 0, 0);
        padding: 0.6rem;
        font-size: 0.8rem;
        margin: 0;
    }

    #carShow .carousel-caption p {
        color: rgb(85, 85, 85);
        background: url("/assets/img/slider-01-slogon-box-31.png");
        background-repeat: no-repeat;
        background-position: top;
        height: 140px;
        padding: 0.8rem;
        margin: 0;
        padding: 0.8rem;
        font-size: 0.7rem;
        font-weight: 500;
        line-height: 1.2rem;
    }

    #carCaptions .carousel-caption {
        background-color: gray;
        opacity: 0.8;
    }

    #carShow .carousel-indicators {
        position: relative;
        margin-left: 0.6rem;
        margin-right: 0.6rem;
        margin-bottom: 0rem;
        display: none;
    }

    #carShow > .new-controller > .carousel-indicators > button {
        background-color: red;
        border: 1px solid #333;
        border-radius: 50%;
        height: 0.8rem;
        width: 0.8rem;
        margin: auto 0.3rem;
        display: none;
    }

    #carShow .new-controller {
        position: fixed;
        display: flex;
        left: 0.6rem;
        bottom: 0.5rem;
        background-color: #e8e8e8;
        border-radius: 10px;
        border: 1px solid #cecece;
        opacity: 0.5;
        padding: 0.5rem;
    }

    #carShow .carousel-control-next,
    #carShow .carousel-control-prev {
        position: relative;
        width: 3rem;
        opacity: 1;
    }

    #carShow .carousel-control-next-icon,
    #carShow .carousel-control-prev-icon {
        border: 1px solid #b0b0b0 !important;
        background-color: #b0b0b0 !important;
        border-radius: 50%;
        width: 1.2rem;
        height: 1.2rem;
        opacity: 1 !important;
    }
}

@media only screen and (min-width: 1600px) {
    .car-img {
        width: 80vw;
    }
}

/************ for SlideShow Test *************/

.carousel-inner > .carousel-item > img {
    width: 100%; /* Ensures image takes full width of its container */
    height: 100%; /* Ensures image takes full height of its container */
    object-fit: cover; /* Crops the image to fit the container while maintaining aspect ratio */
}

.carousel-item-temp {
    height: 50vh; /* Adjusts height to 50% of the viewport height */
    overflow: hidden; /* Hides any overflowing content if image is larger than container */
}

.carousel-inner > .carousel-item-temp > img {
    height: 100%; /* Ensures image takes full height of the carousel item */
    width: 100%; /* Ensures image takes full width of the carousel item */
    object-fit: cover; /* Crops the image to fit the container while maintaining aspect ratio */
}

.carousel-caption-temp {
    display: none;
}
