.image-carousel-section {
    margin: 1em 0;
}

.image-carousel-section>.header {
    margin-bottom: 0.75em;
    font-size: 1.5em;
    text-align: center;
}

.image-carousel {
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    height: 460px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 10px 10px 10px gray;
    border: 8px solid white;
}

.carousel-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
}

.carousel-slide a img {
    max-height: 100%;
}

.carousel-caption {
    margin: 8px 0 0 0;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    user-select: none;
}

.carousel-prev {
    left: 4px;
}

.carousel-next {
    right: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #555;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 260px;
    }

    .carousel-btn {
        font-size: 1.8rem;
        padding: 0 8px;
    }
}