/* ─── dr Image Carousel ───────────────────────────────────────────────────── */

/*
 * Wrapper produced by the <image-carousel> tag helper.
 * This is a self-contained implementation — Bootstrap's carousel JS is NOT
 * used, removing the source of all height/centering conflicts.
 */

/* Outer block: fixed height reserves space so surrounding content never jumps */
.dr-image-carousel {
    position: relative;
    width: 100%;
    height: 480px;          /* default; overridden by inline style from tag helper */
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background-color: #ccc;
}

/* Every slide is stacked on top of each other, all filling the container */
.dr-image-carousel__slide {
    position: absolute;
    inset: 0;               /* top/right/bottom/left: 0  –  fills container exactly */
    display: flex;
    align-items: center;    /* vertical centre */
    justify-content: center; /* horizontal centre */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

/* Only the active slide is visible */
.dr-image-carousel__slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Image: natural ratio, never stretched, never overflows the slide */
.dr-image-carousel__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Caption panel – centred beneath the image, sits at the bottom of the slide */
.dr-image-carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Dot indicators – raised above the caption panel */
.dr-image-carousel__indicators {
    position: absolute;
    bottom: 2.5rem;       /* sits above the ~2rem caption bar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dr-image-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.dr-image-carousel__dot.active {
    background: #fff;
}

/* Prev / Next controls */
.dr-image-carousel__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.dr-image-carousel__control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.dr-image-carousel__control--prev { left:  0.75rem; }
.dr-image-carousel__control--next { right: 0.75rem; }
.dr-image-carousel__inner .carousel-indicators [data-bs-slide-to] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
 