.carousel {
    position: relative;
    width: min(90vw, 900px);
    aspect-ratio: 16/9;
    margin: 5px auto;
    overflow: hidden;
    border-radius: 12px;
    background: #ddd;
    user-select: none;
}

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

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.6);
    border: none;
    color: #fff;
    padding: 10px 16px;
    font-size: 26px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s;
}
.carousel-btn:hover { background: rgba(30, 30, 30, 0.9); }

.prev { left: 12px; }
.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #fff4;
    cursor: pointer;
    transition: background .2s;
}

.carousel-dots button.active {
    background: #fff;
}


.carousel-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #000;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-fullscreen img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}
