.image-carousel {
    width: 100%;
    user-select: none;
    max-height: 352px;
}

/* ── Slide track ───────────────────────────────────────────────── */

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    background-color: #1e1e1e;
    border-radius: var(--bs-border-radius, 0.375rem);
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-img {
    height: 100%;
    object-fit: contain;
    display: block;
    aspect-ratio: 4 / 1;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Prev / next buttons ───────────────────────────────────────── */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #1e2226;
    padding: 0;
    transition: background-color 0.2s;
}

.carousel-btn:hover {
    background-color: #ffffff;
}

.carousel-btn-prev {
    left: 0.75rem;
}

.carousel-btn-next {
    right: 0.75rem;
}

/* ── Dot indicators ────────────────────────────────────────────── */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.6rem;
    padding-bottom: 0.25rem;
}

.carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #b8b8b8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-dot:hover,
.carousel-dot.is-active {
    background-color: rgb(var(--bs-primary-rgb, 30, 123, 148));
}

.carousel-dot.is-active {
    transform: scale(1.3);
}
