.image-carousel {
    position: relative;
    padding-bottom: 2.5rem;
}

.image-carousel figure img {
    margin: auto;
}

.image-carousel figcaption {
    max-width: 100%;
    margin-left: 4px;
    margin-right: 4px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    white-space: normal;
}

.image-carousel .glide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-carousel .glide__slide img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Arrows */
.image-carousel .glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: white;

    font-size: 28px;
    cursor: pointer;
}

.image-carousel .glide__arrow--left {
    left: 40px;
}

.image-carousel .glide__arrow--right {
     right: -18px;
}

/* Navigation dots */
.image-carousel .glide__bullets {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    gap: 8px;
}

.image-carousel .glide__bullet {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
}

.image-carousel .glide__bullet--active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Image counter */
.image-carousel__counter {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.85rem;
    color: var(--text);
}
