/* Version: 2.35.11 */
* {
    box-sizing: border-box;
}

.elcfc-carousel {
    position: relative;
    width: 100%;
    margin: 0 0 10px 0;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    --elcfc-columns: 6;
}

.elcfc-carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-style: preserve-3d;
    gap: 5px;
    background: transparent;
    border-radius: 12px;
}

.elcfc-carousel-item {
    flex: 0 0 calc((100% - (var(--elcfc-columns) - 1) * 5px) / var(--elcfc-columns));
    min-width: 175px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.elcfc-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: calc(300px / var(--elcfc-columns));
}

.elcfc-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.elcfc-image-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.elcfc-carousel-image,
.elcfc-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elcfc-carousel-item:hover .elcfc-carousel-image,
.elcfc-carousel-item:hover .elcfc-placeholder {
    transform: scale(1.10);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.elcfc-placeholder {
    background-color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elcfc-placeholder-text {
    color: #333;
    font-size: clamp(0.8em, 1vw, 0.9em);
    font-weight: bold;
    text-align: center;
    max-width: 90%;
    line-height: 1;
}

.elcfc-overlay {
    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.4) 50%,
        transparent 100%
    );
    color: white;
    padding: 0 8px 5px 8px;
    max-height: 60%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.elcfc-title {
    color: white;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 1;
}

.elcfc-long-caption {
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.elcfc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.elcfc-carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.elcfc-carousel-nav:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.elcfc-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.elcfc-carousel-nav svg {
    width: 32px;
    height: 32px;
    stroke: #333333;
    transition: stroke 0.3s ease;
}

.elcfc-carousel-nav:hover svg {
    stroke: #007cba;
}

.elcfc-carousel-nav.prev { left: 20px; }
.elcfc-carousel-nav.next { right: 20px; }

.elcfc-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: ;
    padding: 8px 16px;
    z-index: 1000;
    position: relative;
}

.elcfc-carousel-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, scale 0.2s;
}

.elcfc-carousel-dot.active {
    background: #007cba;
    transform: scale(1.3);
}

.elcfc-carousel[data-total-slides="1"] .elcfc-carousel-nav,
.elcfc-carousel[data-total-slides="1"] .elcfc-carousel-dots {
    display: none;
}

/* Fallback breakpoints for non-JS environments */
@media (max-width: 1050px) {
    .elcfc-carousel {
        --elcfc-columns: 5;
    }
    .elcfc-overlay {
        padding: 0 7px 5px 7px;
    }
}

@media (max-width: 875px) {
    .elcfc-carousel {
        --elcfc-columns: 4;
    }
    .elcfc-overlay {
        padding: 0 6px 5px 6px;
    }
    .elcfc-carousel-dot {
        display: none;;
    }
}

@media (max-width: 700px) {
    .elcfc-carousel {
        --elcfc-columns: 3;
        margin: 0 0 8px 0;
        border-radius: 8px;
    }
    .elcfc-image-wrapper { 
        width: 100%;
        aspect-ratio: 4 / 3;
        font-size: calc(300px / var(--elcfc-columns));
    }
    .elcfc-overlay {
        padding: 0 5px 5px 5px;
        max-height: 50%;
    }
    .elcfc-carousel-nav {
        width: 44px;
        height: 44px;
        opacity: 0.9;
        top: 50%;
        transform: translateY(-50%);
    }
    .elcfc-carousel-nav svg {
        width: 24px;
        height: 24px;
    }
    .elcfc-carousel-nav.prev { left: 12px; }
    .elcfc-carousel-nav.next { right: 12px; }
    .elcfc-carousel-dot { width: 8px; height: 8px; }
    .elcfc-placeholder-text { font-size: clamp(0.7em, 3.5vw, 0.8em); }
    .elcfc-carousel-dot {
        display: none;;
    }
}

@media (max-width: 525px) {
    .elcfc-carousel {
        --elcfc-columns: 2;
    }
    .elcfc-overlay {
        padding: 0 4px 5px 4px;
    }
    .elcfc-carousel-dot {
        display: none;;
    }
}

@media (max-width: 350px) {
    .elcfc-carousel { 
        --elcfc-columns: 1; 
    }
    .elcfc-carousel-inner { gap: 0; }
    .elcfc-carousel-item { 
        flex: 0 0 100%;
        min-width: 175px;
    }
    .elcfc-image-wrapper { 
        width: 100%;
        aspect-ratio: 4 / 3;
        font-size: 16px;
    }
    .elcfc-overlay {
        padding: 0 3px 5px 3px;
        max-height: 50%;
    }
    .elcfc-carousel-nav {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
    .elcfc-carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    .elcfc-carousel-dot { width: 8px; height: 8px; }
    .elcfc-placeholder-text { font-size: clamp(0.6em, 3vw, 0.7em); }
    .elcfc-carousel-dot {
        display: none;;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elcfc-carousel-inner {
        transition: none;
    }
    .elcfc-carousel-image,
    .elcfc-placeholder {
        transition: none;
    }
    .elcfc-overlay {
        transition: none;
    }
    .elcfc-title {
        opacity: 1;
    }
}