:root {
    --width: 0;
    --margin: 0;
}

.own-carousel__outer {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.own-carousel{
    display: flex;
}

.own-carousel__item {
    flex-shrink: 0;
    overflow: hidden;
    flex-basis: var(--width);
}

.own-carousel__item:not(:first-child) {
    margin-left: var(--margin);
}

/* Carousel item wrapper for positioning skeleton and image */
.carousel-item-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Carousel images - consistent sizing with object-fit */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Skeleton loader overlay */
.carousel-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}

/* Ensure links cover the full area */
.own-carousel__item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Navigation arrows styling */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #4375B6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow--left {
    left: 16px;
}

.carousel-arrow--right {
    right: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow--left {
        left: 8px;
    }
    
    .carousel-arrow--right {
        right: 8px;
    }
    
    .carousel-item-wrapper {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .carousel-item-wrapper {
        height: 250px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
}