﻿
.carousel-container {
    position: relative;
    max-width: 80vw;
    height: 100%;
    max-height: fit-content;
    margin: auto;
    overflow-x: hidden;
    padding: 0 15px 0 15px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;

}

.carousel-slide {
    display: flex;
    gap: 1rem; /* spacing between cards */
    align-items: stretch;
    flex-wrap: nowrap; /* keep 3 in view */
    padding: 1rem;
    box-sizing: border-box;
    min-width: 100%;
    justify-content: center;
}
    /* each item slot inside the slide (your immediate wrapper around .card) */
    .carousel-slide > .d-flex {
        flex: 0 0 calc((100% - 2rem) / 3); /* 3 columns, subtract 2 gaps */
        max-width: calc((100% - 2rem) / 3);
    }

    /* make the card fill its slot */
    .carousel-slide .card {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;


    }

    /* optional: keep the media from exploding the layout */
    .carousel-slide img.img-fluid {
        max-height: 20vh;
        object-fit: contain; /* keep aspect ratio */
    }



.carousel-card-inner {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
    align-items: flex-start;
}

.carousel-image {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-image img {
        max-width: 100%;
        max-height: 80%;
        border-radius: 6px;
    }

.carousel-details {
    flex: 1;
}

    .carousel-details h6 {
        margin-bottom: 0.5rem;
    }

    .carousel-details p {
        margin: 0.25rem 0;
    }


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid black;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}


