.mi-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
}

input[name="mi-carousel"] {
    display: none;
}

.mi-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222;
}

.mi-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.mi-slide a,
.mi-slide picture,
.mi-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.mi-slide img {
    object-fit: contain;
    object-position: center;
}

.mi-nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.mi-nav-set {
    display: none;
    justify-content: space-between;
    padding: 0 1rem;
}

.mi-nav-set label {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
}

.mi-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.mi-dots label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mi-slides {
        aspect-ratio: 3 / 4;
    }
}