.ac-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.ac-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    will-change: transform;
}

.ac-carousel-item {
    flex: 0 0 auto;
    position: relative;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.ac-carousel-item a {
    display: block;
    height: 100%;
    width: 100%;
}

.ac-carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.ac-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ac-carousel-item:hover .ac-carousel-caption {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ac-carousel-container {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .ac-carousel-container {
        height: 200px;
    }
}