.carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background-color: #000; /* background for non-filled areas */
    margin-top: 2px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ Makes sure full image fits without cropping */
}

.carousel-slide.active {
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    z-index: 10;
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

/* ✅ Responsive Fixes */
@media (max-width: 768px) {
    .carousel {
        height: 60vh;
    }

    .carousel-arrow {
        font-size: 22px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 50vh;
    }

    .carousel-arrow {
        font-size: 20px;
        padding: 5px;
    }
}
