.custom-carousel-container {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    margin-top: 2rem;
    padding-left: 10rem;
    padding-right: 10rem;
}

.custom-image-carousel-container {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
    margin-top: 2rem;
    padding-left: 10rem;
    padding-right: 10rem;
}

.custom-carousel {
    display: flex;
    min-width: fit-content;
    transition: transform 0.5s ease-in-out;
    height: fit-content;
}

.custom-image-carousel {
    display: flex;
    min-width: fit-content;
    transition: transform 0.5s ease-in-out;
    height: fit-content;
}

.custom-carousel-item {
    width: 35vw;
    height: 55vh;
    margin-left: 1rem;
    margin-right: 1rem;
    box-sizing: border-box;
    position: relative;
}

.custom-image-carousel-item {
    width: 35vw;
    height: 45vh;
    margin-left: 1rem;
    margin-right: 1rem;
    box-sizing: border-box;
    position: relative;
}

.square {
    width: 25vw !important;
    height: 25vw !important;
}

.square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.custom-carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.caption {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10%;
    color: white;
    z-index: 2; /* Ensure caption is on top of the image */
    text-align: left;
    width: 35vw;
    height: 55vh;
}

.caption h6 {
    position: absolute;
    top: 10%;
    left: 10%;
}

.caption h3 {
    position: absolute;
    top: 40%;
    left: 10%;
}

.caption h5 {
    position: absolute;
    top: 40%;
    left: 10%;
}

.caption a {
    position: absolute;
    bottom: 10%;
    left: 10%;
}

.carousel-arrow-prev,
.carousel-arrow-next {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 50;
}

.carousel-arrow-prev {
    left: 2rem;
}

.carousel-arrow-next {
    right: 2rem;
}

.custom-carousel-indicators,
.custom-carousel-indicators-light {
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.custom-carousel-indicators .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.custom-carousel-indicators .dot.active {
    background-color: #717171;
}

.custom-carousel-indicators-light .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.custom-carousel-indicators-light .dot.active {
    background-color: #ffffff;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .custom-carousel-container {
        height: 45vh;
        overflow: hidden;
        margin-top: 1rem;
    }

    .custom-image-carousel-container {
        height: 45vh;
        overflow: hidden;
        margin-top: 1rem;
    }

    .custom-carousel-item {
        width: 80vw;
        height: 45vh;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .custom-image-carousel-item {
        width: 80vw;
        height: 45vh;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .custom-carousel-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .custom-image-carousel-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carousel-arrow-prev,
    .carousel-arrow-next {
        display: block;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-arrow-prev {
        left: 0.5rem;
    }
    
    .carousel-arrow-next {
        right: 0.5rem;
    }

    .caption {
        width: 80vw;
        height: 30vh;
    }

    .square {
        width: 70vw !important;
        height: 70vw !important;
    }
}
