/* --- CAROUSEL COMPONENT --- */
.carousel-component {
    position: relative;
    width: 100%;
    max-width: var(--carousel-max-width, 800px);
    margin: 0 auto;
}

.carousel-track-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Tell the browser this element only needs vertical panning natively — frees
       up horizontal drags for our own swipe handler instead of the browser's
       gesture recognizer treating them ambiguously (or as an iOS Safari bounce). */
    touch-action: pan-y;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    /* Images are natively draggable — without this, a real mouse/touch drag on
       the image starts the browser's own "ghost image" drag instead of our
       swipe gesture. The draggable="false" attribute (below) is the primary
       fix; this is the CSS-only fallback some browsers also check. */
    -webkit-user-drag: none;
    user-drag: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: var(--carousel-dot-gap, 16px);
}

.carousel-indicator {
    border: var(--carousel-dot-border-width, 2px) solid var(--carousel-dot-color, var(--color-primary, #D6C485));
    background-color: transparent;
    border-radius: 50%;
    width: var(--carousel-dot-size, 12px);
    height: var(--carousel-dot-size, 12px);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-indicator.current-indicator {
    background-color: var(--color-primary, #D6C485);
}
