/* ─── Image Carousel ────────────────────────────────────── */

.section-image-carousel {
    padding: var(--space-lg) 0;
}

/* ── Container grid ───────────────────────────────────── */
.section-image-carousel .container {
    display: grid;
    grid-template-areas:
        "header button"
        "carousel carousel";
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: var(--space-md);
}

/* ── Header ───────────────────────────────────────────── */
.icar__header {
    grid-area: header;
}

.icar__heading {
    margin: 0;
}

.icar__button {
    grid-area: button;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-text);
    font-family: 'Neue Regrade', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.icar__button:hover {
    opacity: 0.85;
}

/* ── Wrapper ──────────────────────────────────────────── */
.icar__wrapper {
    grid-area: carousel;
    position: relative;
    margin-right: calc(-1 * var(--space-md));
}

/* ── Track ────────────────────────────────────────────── */
.icar__track {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.icar__track::-webkit-scrollbar {
    display: none;
}

/* ── Item ─────────────────────────────────────────────── */
.icar__item {
    flex: 0 0 calc((100% - 3.3 * var(--space-sm)) / 4.3);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    --clip: 22px;
    clip-path: polygon(
        var(--clip) 0,
        100% 0,
        100% calc(100% - var(--clip)),
        calc(100% - var(--clip)) 100%,
        0 100%,
        0 var(--clip)
    );
}

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

/* ── Arrows ───────────────────────────────────────────── */
.icar__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.icar__arrow svg {
    width: 14px;
    height: 24px;
}

.icar__wrapper:hover .icar__arrow:not(.is-disabled) {
    opacity: 1;
}

.icar__arrow.is-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.icar__arrow--prev {
    left: 0;
}

.icar__arrow--next {
    right: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media ( max-width: 1200px ) {
    .icar__item {
        flex: 0 0 calc((100% - 2.3 * var(--space-sm)) / 3.3);
    }
}

@media ( max-width: 768px ) {
    .section-image-carousel .container {
        display: block;
    }

    .icar__wrapper {
        margin-right: calc(-1 * var(--space-sm));
    }

    .icar__header {
        margin-bottom: var(--space-md);
    }

    .icar__item {
        flex: 0 0 calc((100% - 1.3 * var(--space-sm)) / 2.3);
    }

    .icar__button {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: var(--space-md);
    }

}

@media ( min-width: 1600px ) {
    .icar__arrow--prev {
        left: -72px;
    }

    .icar__arrow--next {
        right: -72px;
    }
}
