/**
 * Operator Images Carousel Styles
 */

.operator-images-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.operator-images-carousel {
    width: 100%;
    height: auto;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 14px;
    line-height: 1.4;
}

/* Navigation buttons */
.operator-images-carousel .swiper-button-next,
.operator-images-carousel .swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.operator-images-carousel .swiper-button-next:hover,
.operator-images-carousel .swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
}

.operator-images-carousel .swiper-button-next:after,
.operator-images-carousel .swiper-button-prev:after {
    font-size: 20px;
}

/* Adjust button position on mobile */
@media (max-width: 640px) {
    .operator-images-carousel .swiper-button-next,
    .operator-images-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .operator-images-carousel .swiper-button-next:after,
    .operator-images-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Pagination */
.operator-images-carousel .swiper-pagination {
    bottom: 10px;
}

.operator-images-carousel .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.operator-images-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Optional: Add loading spinner via JavaScript if needed */

/* Accessibility improvements */
.operator-images-carousel .swiper-button-next:focus,
.operator-images-carousel .swiper-button-prev:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .operator-images-carousel .swiper-button-next {
    left: 10px;
    right: auto;
}

[dir="rtl"] .operator-images-carousel .swiper-button-prev {
    right: 10px;
    left: auto;
}
