/* =========================================================
   PROVIDENCE IMAGE CARD CAROUSEL
   ========================================================= */

.elementor-widget-providence-image-card-carousel,
.elementor-widget-providence-image-card-carousel > .elementor-widget-container,
.providence-image-card-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.providence-image-card-carousel {
    --picc-overlay-color: rgba(0, 0, 0, .58);
    --picc-overlay-height: 58%;
    --picc-hover-scale: 1.04;
    --picc-object-fit: cover;

    position: relative;
    overflow: visible;
}

.providence-image-card-carousel__eyebrow {
    margin: 0 0 20px;
    text-align: center;
    color: #B37836;
    font-size: 18px;
    line-height: 1.25;
    text-transform: uppercase;
}

.providence-image-card-carousel__viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.providence-image-card-carousel__track {
    align-items: stretch;
}

.providence-image-card-carousel__slide {
    min-width: 0;
    height: auto;
}

.providence-image-card {
    position: relative;
    display: block;
    width: 100%;
    height: 310px;
    overflow: hidden;
    border-radius: 32px;
    background: #ECE8DF;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
    transform: translateZ(0);
}

.providence-image-card__image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;

    object-fit: var(--picc-object-fit, cover) !important;
    object-position: var(--picc-focus-x, 50%) var(--picc-focus-y, 50%) !important;

    transform: scale(1);
    transform-origin: center;
    transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.providence-image-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: var(--picc-overlay-height);
    background: linear-gradient(
        to top,
        var(--picc-overlay-color) 0%,
        rgba(0, 0, 0, .22) 48%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.providence-image-card__title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    padding: 20px 22px;
    color: #FFF;
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    text-wrap: balance;
}

.providence-image-card--linked {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .providence-image-card--linked:hover .providence-image-card__image,
    .providence-image-card--linked:focus-visible .providence-image-card__image {
        transform: scale(var(--picc-hover-scale));
    }
}

.providence-image-card--linked:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Navigation */
.providence-image-card-carousel__arrow {
    position: absolute;
    top: calc(50% + 20px);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #FFF;
    color: #171F69;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
    cursor: pointer;
    transform: translateY(-50%);
}

.providence-image-card-carousel__arrow--prev {
    left: 16px;
}

.providence-image-card-carousel__arrow--next {
    right: 16px;
}

.providence-image-card-carousel__arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.providence-image-card-carousel__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.providence-image-card-carousel__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 50%;
    background: #D9D9D9;
    opacity: 1;
}

.providence-image-card-carousel__pagination .swiper-pagination-bullet-active {
    background: #B37836;
}

/* Non-Swiper fallback: still usable if Swiper isn't available yet. */
.providence-image-card-carousel.is-fallback .providence-image-card-carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.providence-image-card-carousel.is-fallback .providence-image-card-carousel__track::-webkit-scrollbar {
    display: none;
}

.providence-image-card-carousel.is-fallback .providence-image-card-carousel__slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

.providence-image-card-carousel.is-fallback .providence-image-card-carousel__arrow,
.providence-image-card-carousel.is-fallback .providence-image-card-carousel__pagination {
    display: none;
}

@media (max-width: 1024px) {
    .providence-image-card-carousel__eyebrow {
        margin-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .providence-image-card-carousel__eyebrow {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .providence-image-card {
        height: 270px;
        border-radius: 24px;
    }

    .providence-image-card__title {
        padding: 18px;
        font-size: 15px;
    }

    .providence-image-card-carousel__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .providence-image-card__image {
        transition: none;
    }
}

/* =========================================================
   CONTINUOUS MODE
   ========================================================= */

.providence-image-card-carousel--continuous .providence-image-card-carousel__viewport {
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-user-select: none;
    user-select: none;
}

.providence-image-card-carousel--continuous.is-draggable .providence-image-card-carousel__viewport {
    cursor: grab;
}

.providence-image-card-carousel--continuous.is-dragging .providence-image-card-carousel__viewport {
    cursor: grabbing;
}

.providence-image-card-carousel--continuous .providence-image-card,
.providence-image-card-carousel--continuous .providence-image-card__image {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.providence-image-card-carousel--continuous .providence-image-card-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--picc-gap, 24px);
    width: max-content;
    max-width: none;
    min-width: max-content;
    will-change: transform;
    transition: none !important;
}

.providence-image-card-carousel--continuous .providence-image-card-carousel__slide {
    flex: 0 0 var(--picc-slide-width, auto);
    width: var(--picc-slide-width, auto);
    max-width: none;
}

.providence-image-card-carousel--continuous .providence-image-card-carousel__slide[data-picc-clone="true"] {
    pointer-events: none;
}

.providence-image-card-carousel--continuous .providence-image-card-carousel__arrow,
.providence-image-card-carousel--continuous .providence-image-card-carousel__pagination {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .providence-image-card-carousel--continuous .providence-image-card-carousel__track {
        will-change: auto;
    }
}
