﻿.carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: auto; /* Fixed height */
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover; /* Fill the area */
    object-position: top; /* Align image to bottom edge */
    background-color: #000; /* Optional fallback */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

    .carousel-dots button {
        height: 10px;
        width: 10px;
        margin: 0 4px;
        background-color: rgba(255, 255, 255, 0.7);
        border: none;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
    }

        .carousel-dots button.active {
            background-color: white;
        }
